[logic]
active = ph_door@locked

[ph_door@locked]
locked = true
closed = true
on_info  = {+jup_b205_pass_code_valide -actor_rukzak_shtern_explode} ph_door@closed
on_info2 = {+jup_b205_pass_code_valide +actor_rukzak_shtern_explode} ph_door@open
snd_open_start = metal_small_open
snd_close_start = metal_small_close_start
snd_close_stop = metal_small_close_stop
tip_open = tip_door_blocked

[ph_door@closed]
locked = false
closed = true
snd_open_start = metal_small_open
snd_close_start = metal_small_close_start
snd_close_stop = metal_small_close_stop
on_use = ph_door@open
on_info = {-jup_b205_pass_code_valide} ph_door@locked

[ph_door@open]
locked = false
closed = false
snd_open_start = metal_small_open
snd_close_start = metal_small_close_start
snd_close_stop = metal_small_close_stop
on_use = ph_door@closed
show_tips = false
on_info = {-jup_b205_pass_code_valide} ph_door@locked
