obj_seridia_shrine.gml
object_create(
"obj_seridia_shrine",
object_reserve("par_interactable"),
{
sprite_index: spr_dungeon_mines_dragonstatue_biome_1_broken_spring,
create: function() {
event_inherit(ObjectEvent.Create);
depth = get_instance_depth(y);
self.register_interaction(
InputId.SecondaryInteract,
"misc_local/use_shrine",
function() {
ANCHOR.spawn_menu(Menu.DragonShrine, ShrineMenuVariant.Seridia);
},
);
self.register_interaction(
InputId.Interact,
"misc_local/inspect",
function() {
//
obj_ari.face_dir(point_direction(obj_ari.x, obj_ari.y, self.x, self.y));
obj_ari.set_idle_simple();
play_conversation(NpcId.Caldarus, GAMEPLAY_CONVERSATIONS[GpTriggeredConversation.InspectSeridiaStatue]);
},
function() {
//
return SCREEN_FADER.is_in();
}
);
mask_index = spr_farm_dragonstatue_broken_spring;
var fiddle_data = fiddle_get("interaction/dragon_shrine_offset");
self.bounce_x_offset = fiddle_data[0];
self.bounce_y_offset = fiddle_data[1];
self.use_interact_bubble(spr_ui_bark_icon_essence, spr_ui_bark_icon_essence_small);
function bubble_should_update() {
if menu_or_cutscene_pause() {
return;
}
self.bouncer.status = InteractBounceStatus.Distant;
self.bouncer.alpha = approach(self.bouncer.alpha, BARK_MIN_ALPHA, BARK_FADE_SPEED);
}
//
SHADOW_GRID.caster_create(self);
},
}
);