[logic]
active = ph_door@close

[ph_door@close]
locked = false
closed = true
snd_open_start = trader_door_open_start
snd_close_start = trader_door_close_start
snd_close_stop = trader_door_close_stop
on_use = ph_door@open %+jup_a9_base_second_door_open%
on_info = {+jup_a9_base_second_door_open} ph_door@open
on_info2 = {+close_all_jup_a6_doors} ph_door@locked

[ph_door@open]
locked = false
closed = false
snd_open_start = trader_door_open_start
snd_close_start = trader_door_close_start
snd_close_stop = trader_door_close_stop
on_use = ph_door@close %-jup_a9_base_second_door_open%
on_info = {-jup_a9_base_second_door_open} ph_door@close
on_info2 = {+close_all_jup_a6_doors} ph_door@locked
on_game_timer = 40 | ph_door@close %-jup_a9_base_second_door_open%

[ph_door@locked]
locked = true
closed = true
snd_open_start = trader_door_open_start
snd_close_start = trader_door_close_start
snd_close_stop = trader_door_close_stop
on_info = {-close_all_jup_a6_doors} ph_door@close