mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-07-17 10:02:41 +01:00
f9b409549e
Gives them a 'starts_with' (well, renames the existing one. Someone ported it but never actually applied it anywhere).
25 lines
652 B
Plaintext
25 lines
652 B
Plaintext
/obj/structure/closet/secure_closet/bar
|
|
name = "booze closet"
|
|
req_access = list(access_bar)
|
|
icon_state = "cabinetdetective_locked"
|
|
icon_closed = "cabinetdetective"
|
|
icon_locked = "cabinetdetective_locked"
|
|
icon_opened = "cabinetdetective_open"
|
|
icon_broken = "cabinetdetective_broken"
|
|
icon_off = "cabinetdetective_broken"
|
|
|
|
starts_with = list(
|
|
/obj/item/weapon/reagent_containers/food/drinks/bottle/small/beer = 10)
|
|
|
|
/obj/structure/closet/secure_closet/bar/update_icon()
|
|
if(broken)
|
|
icon_state = icon_broken
|
|
else
|
|
if(!opened)
|
|
if(locked)
|
|
icon_state = icon_locked
|
|
else
|
|
icon_state = icon_closed
|
|
else
|
|
icon_state = icon_opened
|