obj_stillwell_challenge_board.gml
object_create(
"obj_stillwell_challenge_board",
object_reserve("par_interactable"),
{
sprite_index: spr_town_stall_plaza_challenge_board_main,
create: function() {
event_inherit(ObjectEvent.Create);
self.mask_index = spr_mask_requestboard;
if SATURDAY_MARKET.stalls[NpcId.Stillwell] == false {
instance_destroy();
return;
}
//
SHADOW_GRID.caster_create(self);
self.register_interaction(
InputId.Interact,
"misc_local/use",
spawn_stillwell_challenge_menu,
);
depth = get_instance_depth(y);
var fiddle_data = fiddle_get("interaction/challenge_board_offset");
self.bounce_x_offset = fiddle_data[0];
self.bounce_y_offset = fiddle_data[1];
self.use_interact_bubble(spr_ui_bark_icon_exclamation_mark, spr_ui_bark_icon_exclamation_small);
function bubble_should_update() {
if available_stillwell_challenge() == undefined || MIST.running {
return;
}
self.bouncer.status = InteractBounceStatus.Distant;
self.bouncer.alpha = BARK_MIN_ALPHA;
}
},
}
);