[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 = {+lock_all_doors_in_laba} ph_door@locked

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

[ph_door@locked]:ph_door@standart
locked = true
closed = true
tip_open = tip_need_laba_open_key_one
on_info  = {=actor_has_item(lab_cell_key_one) -actor_has_lab_cell_key_one} %+actor_has_lab_cell_key_one%
on_info2 = {+actor_has_lab_cell_key_one} ph_door@locked_1

[ph_door@locked_1]:ph_door@standart
locked = true
closed = true
tip_open = tip_use_laba_open_key_one
on_use = ph_door@close_1 %=remove_item_no_news(lab_cell_key_one)% 
on_info  = {+laba_key_number_one_done} ph_door@close_1
on_info2 = {!actor_has_item(lab_cell_key_one)} ph_door@locked %-actor_has_lab_cell_key_one%


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

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