## Runs when a dummy is interacted with
## Runs from controller.animation.fares_portal_dummy.interact
## @s = ldz:fares_portal_dummy

event entity @s remove_interact_toggle

execute as @s[family=fares_portal_beast] run event entity @e[type=ldz:fares_portal] set_beast_to_true
execute as @s[family=fares_portal_charger] run event entity @e[type=ldz:fares_portal] set_charger_to_true
execute as @s[family=fares_portal_chef] run event entity @e[type=ldz:fares_portal] set_chef_to_true
execute as @s[family=fares_portal_chiller] run event entity @e[type=ldz:fares_portal] set_chiller_to_true
execute as @s[family=fares_portal_gardener] run event entity @e[type=ldz:fares_portal] set_gardener_to_true
execute as @s[family=fares_portal_hydro] run event entity @e[type=ldz:fares_portal] set_hydro_to_true
execute as @s[family=fares_portal_mystic] run event entity @e[type=ldz:fares_portal] set_mystic_to_true
execute as @s[family=fares_portal_scorcher] run event entity @e[type=ldz:fares_portal] set_scorcher_to_true
execute as @s[family=fares_portal_scourge] run event entity @e[type=ldz:fares_portal] set_scourge_to_true
execute as @s[family=fares_portal_troll] run event entity @e[type=ldz:fares_portal] set_troll_to_true
execute as @s[family=fares_portal_vanilla] run event entity @e[type=ldz:fares_portal] set_vanilla_to_true
execute as @s[family=fares_portal_wraith] run event entity @e[type=ldz:fares_portal] set_wraith_to_true

event entity @e[type=ldz:bob_arrow] despawn

execute as @s[family=fares_portal_vanilla] if score .current TutorialStage matches 6 as @p run function tutorial/stage_7

execute as @s[tag=interacted] run playsound entity.fares_portal.monitor_press @a ~ ~ ~

event entity @s add_sfx_toggle