[logic]
active = ph_door@locked

[ph_door@locked]
locked = true
closed = true
snd_init = trader_door_close_start
snd_open_start = trader_door_locked
snd_close_start = trader_door_close_start
snd_close_stop = trader_door_close_stop
on_info = {+val_prisoner_door_unlocked} ph_door@unlocked ;%+val_prisoner_free%

[ph_door@unlocked]
locked = false
closed = false
snd_init = trader_door_open_start
snd_open_start = trader_door_open_start
snd_close_start = trader_door_close_start
snd_close_stop = trader_door_close_stop
on_info = {-val_prisoner_door_unlocked} ph_door@locked ;%-val_prisoner_free%
;on_info2 = {-val_prisoner_door_unlocked_demo -val_prisoner_free} ;%+val_prisoner_free%
