Skip to content

Commit

Permalink
убрал вакантный. Эйлонг - ты наше будущее
Browse files Browse the repository at this point in the history
  • Loading branch information
Kar4es committed Nov 17, 2023
1 parent 2e646ee commit c7e2123
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions modular_ss220/objects/code/key.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,36 +90,6 @@
icon_state = "com"
additional_access = list(ACCESS_HEADS)

/obj/item/door_remote/key/vacant
name = "\proper ключ от свободного офиса"
desc = "Выкидной ключ темно-синего цвета."
icon_state = "closed"
/// key ready to use?
var/ready = FALSE
additional_access = list (ACCESS_VACANT_STORE)

/obj/item/door_remote/key/vacant/attack_self(mob/user)
if(cooldown > world.time)
return
if(!ready)
to_chat(user, span_warning ("Ты вытаскиваешь ключ!"))
flick("opens", src)
icon_state = "open"
ready = TRUE
cooldown = world.time + 2 SECONDS
else
to_chat(user, span_warning ("Ты складываешь ключ!"))
flick("closes", src)
icon_state = "closed"
ready = FALSE
cooldown = world.time + 2 SECONDS

/obj/item/door_remote/key/vacant/afterattack(obj/machinery/door/airlock/attacked_airlock, mob/user)
if(!ready)
to_chat(user, span_danger ("Сперва нужно вытащить ключ!"))
return
. = ..()

/obj/item/storage/box/keys
name = "коробка с ключами"
desc = "Коробка с ключами к отделам. Имеют неполный доступ к шлюзам."
Expand Down

0 comments on commit c7e2123

Please sign in to comment.