[logic]
active = ph_button@init

[ph_button@init]
on_info = {+yan_labx16_switcher_primary_on} ph_idle@nil
anim = off
on_timer = 1 | ph_button@no_energy %=turn_off(lab_x16_lamp_number_912:lab_x16_lamp_number_908:lab_x16_lamp_number_914:lab_x16_lamp_number_909:lab_x16_lamp_number_911:lab_x16_lamp_number_913:lab_x16_lamp_number_915:lab_x16_lamp_number_910:lab_x16_lamp_number_916)%

[ph_button@no_energy]
anim = off
tooltip = tips_labx16switcher_press_no_energy
on_press = ph_button@no_energy
on_info  = {+yan_labx16_switcher_primary_on} ph_idle@nil
on_info2 = {+yan_labx16_switcher_1_on +yan_labx16_switcher_2_on +yan_labx16_switcher_3_on} ph_button@active

[ph_button@active]
on_info = {+yan_labx16_switcher_primary_on} ph_idle@nil
anim = off
tooltip = tips_labx16switcher_press
on_press = ph_button@deactivate %=remove_squads(labx6_a6_killer_squad)%

[ph_button@deactivate]
anim = idle
on_timer = 500 | {-yan_labx16_switcher_primary_on} sr_idle@end %+yan_labx16_switcher_primary_on =turn_off(lab_x16_lamp_number_911) =turn_off(lab_x16_lamp_number_913) =turn_off(lab_x16_lamp_number_915) =play_sound(lab_x16_swither_on)%

[sr_idle@end]
on_timer = 1000 | ph_idle@nil %=play_sound(x16_brain_death) +laba_x16_start_psy_antenna%

[ph_idle@nil]
