[logic]
active = ph_door@close

[ph_door@standart]
snd_open_start = trader_door_open_start
snd_close_start = trader_door_close_start
snd_close_stop = trader_door_close_stop

[ph_door@close]:ph_door@standart
locked = false
closed = true
on_use = ph_door@open
on_info = {+bar_rus_all_retrib_dialog_end} ph_door@locked

[ph_door@open]:ph_door@standart
locked = false
closed = false
on_use = ph_door@close
on_info = {+bar_rus_all_retrib_dialog_end} ph_door@locked

[ph_door@locked]:ph_door@standart
locked = true
closed = true
tip_open = tip_need_tonnel_key
on_info = {+actor_has_jup_shtern_key} ph_door@locked_1

[ph_door@locked_1]:ph_door@standart
locked = true
closed = true
tip_open = tip_door_need_key
on_use = ph_door@close_1 %=remove_item_no_news(jup_shtern_key) +jup_shtern_key_done%
on_info = {+jup_shtern_key_done} ph_door@close_1

[ph_door@close_1]:ph_door@standart
locked = false
closed = true
on_use = ph_door@open_1

[ph_door@open_1]:ph_door@standart
locked = false
closed = false
on_use = ph_door@close_1
