mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 06:27:26 +01:00
HERE COME THE CLOSETS
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
/obj/structure/closet/secure_closet/bar
|
||||
name = "Booze cabinet"
|
||||
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"
|
||||
icon_state = "cabinet"
|
||||
resistance_flags = FLAMMABLE
|
||||
max_integrity = 70
|
||||
open_sound = 'sound/machines/wooden_closet_open.ogg'
|
||||
@@ -27,13 +22,8 @@
|
||||
new /obj/item/reagent_containers/food/drinks/cans/beer(src)
|
||||
|
||||
/obj/structure/closet/secure_closet/bar/update_icon()
|
||||
if(broken)
|
||||
icon_state = icon_broken
|
||||
if(!opened)
|
||||
icon_state = icon_closed
|
||||
else
|
||||
if(!opened)
|
||||
if(locked)
|
||||
icon_state = icon_locked
|
||||
else
|
||||
icon_state = icon_closed
|
||||
else
|
||||
icon_state = icon_opened
|
||||
icon_state = icon_opened
|
||||
update_overlays()
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
/obj/structure/closet/secure_closet/cargotech
|
||||
name = "cargo technician's locker"
|
||||
req_access = list(ACCESS_CARGO)
|
||||
icon_state = "securecargo1"
|
||||
icon_closed = "securecargo"
|
||||
icon_locked = "securecargo1"
|
||||
icon_opened = "securecargoopen"
|
||||
icon_broken = "securecargobroken"
|
||||
icon_off = "securecargooff"
|
||||
icon_state = "cargo"
|
||||
|
||||
/obj/structure/closet/secure_closet/cargotech/populate_contents()
|
||||
new /obj/item/clothing/under/rank/cargotech(src)
|
||||
@@ -21,12 +16,7 @@
|
||||
/obj/structure/closet/secure_closet/quartermaster
|
||||
name = "quartermaster's locker"
|
||||
req_access = list(ACCESS_QM)
|
||||
icon_state = "secureqm1"
|
||||
icon_closed = "secureqm"
|
||||
icon_locked = "secureqm1"
|
||||
icon_opened = "secureqmopen"
|
||||
icon_broken = "secureqmbroken"
|
||||
icon_off = "secureqmoff"
|
||||
icon_state = "qm"
|
||||
|
||||
/obj/structure/closet/secure_closet/quartermaster/populate_contents()
|
||||
new /obj/item/clothing/under/rank/cargo(src)
|
||||
|
||||
@@ -2,12 +2,7 @@
|
||||
name = "chapel wardrobe"
|
||||
desc = "A lockable storage unit for Nanotrasen-approved religious attire."
|
||||
req_access = list(ACCESS_CHAPEL_OFFICE)
|
||||
icon_state = "chaplainsecure1"
|
||||
icon_closed = "chaplainsecure"
|
||||
icon_locked = "chaplainsecure1"
|
||||
icon_opened = "chaplainsecureopen"
|
||||
icon_broken = "chaplainsecurebroken"
|
||||
icon_off = "chaplainsecureoff"
|
||||
icon_state = "chaplain"
|
||||
|
||||
/obj/structure/closet/secure_closet/chaplain/populate_contents()
|
||||
new /obj/item/clothing/under/rank/chaplain(src)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/obj/structure/closet/secure_closet/syndicate/depot
|
||||
name = "depot supply closet"
|
||||
desc = ""
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
/obj/structure/closet/secure_closet/engineering_chief
|
||||
name = "chief engineer's locker"
|
||||
req_access = list(ACCESS_CE)
|
||||
icon_state = "securece1"
|
||||
icon_closed = "securece"
|
||||
icon_locked = "securece1"
|
||||
icon_opened = "secureceopen"
|
||||
icon_broken = "securecebroken"
|
||||
icon_off = "secureceoff"
|
||||
icon_state = "ce"
|
||||
|
||||
/obj/structure/closet/secure_closet/engineering_chief/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -46,12 +41,7 @@
|
||||
/obj/structure/closet/secure_closet/engineering_electrical
|
||||
name = "electrical supplies locker"
|
||||
req_access = list(ACCESS_ENGINE_EQUIP)
|
||||
icon_state = "secureengelec1"
|
||||
icon_closed = "secureengelec"
|
||||
icon_locked = "secureengelec1"
|
||||
icon_opened = "toolclosetopen"
|
||||
icon_broken = "secureengelecbroken"
|
||||
icon_off = "secureengelecoff"
|
||||
icon_state = "eng_elec"
|
||||
|
||||
/obj/structure/closet/secure_closet/engineering_electrical/populate_contents()
|
||||
new /obj/item/clothing/gloves/color/yellow(src)
|
||||
@@ -71,12 +61,7 @@
|
||||
/obj/structure/closet/secure_closet/engineering_welding
|
||||
name = "welding supplies locker"
|
||||
req_access = list(ACCESS_ENGINE_EQUIP)
|
||||
icon_state = "secureengweld1"
|
||||
icon_closed = "secureengweld"
|
||||
icon_locked = "secureengweld1"
|
||||
icon_opened = "toolclosetopen"
|
||||
icon_broken = "secureengweldbroken"
|
||||
icon_off = "secureengweldoff"
|
||||
icon_state = "eng_weld"
|
||||
|
||||
/obj/structure/closet/secure_closet/engineering_welding/populate_contents()
|
||||
new /obj/item/clothing/head/welding(src)
|
||||
@@ -90,12 +75,7 @@
|
||||
/obj/structure/closet/secure_closet/engineering_personal
|
||||
name = "engineer's locker"
|
||||
req_access = list(ACCESS_ENGINE_EQUIP)
|
||||
icon_state = "secureeng1"
|
||||
icon_closed = "secureeng"
|
||||
icon_locked = "secureeng1"
|
||||
icon_opened = "secureengopen"
|
||||
icon_broken = "secureengbroken"
|
||||
icon_off = "secureengoff"
|
||||
icon_state = "eng_secure"
|
||||
|
||||
/obj/structure/closet/secure_closet/engineering_personal/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -118,12 +98,7 @@
|
||||
/obj/structure/closet/secure_closet/atmos_personal
|
||||
name = "technician's locker"
|
||||
req_access = list(ACCESS_ATMOSPHERICS)
|
||||
icon_state = "secureatm1"
|
||||
icon_closed = "secureatm"
|
||||
icon_locked = "secureatm1"
|
||||
icon_opened = "secureatmopen"
|
||||
icon_broken = "secureatmbroken"
|
||||
icon_off = "secureatmoff"
|
||||
icon_state = "atmos"
|
||||
|
||||
/obj/structure/closet/secure_closet/atmos_personal/populate_contents()
|
||||
new /obj/item/radio/headset/headset_eng(src)
|
||||
|
||||
@@ -2,19 +2,11 @@
|
||||
desc = "It's a card-locked refrigerative storage unit. This one is lead-lined."
|
||||
|
||||
/obj/structure/closet/secure_closet/freezer/update_icon()
|
||||
if(broken)
|
||||
icon_state = icon_broken
|
||||
if(!opened)
|
||||
icon_state = icon_closed
|
||||
else
|
||||
if(!opened)
|
||||
if(locked)
|
||||
icon_state = icon_locked
|
||||
else
|
||||
icon_state = icon_closed
|
||||
if(welded)
|
||||
overlays += "welded"
|
||||
else
|
||||
icon_state = icon_opened
|
||||
|
||||
icon_state = icon_opened
|
||||
update_overlays()
|
||||
/obj/structure/closet/secure_closet/freezer/ex_act(severity)
|
||||
// IF INDIANA JONES CAN DO IT SO CAN YOU
|
||||
|
||||
@@ -23,7 +15,6 @@
|
||||
if(!isemptylist(bombs)) // You're fucked.
|
||||
..(severity)
|
||||
|
||||
|
||||
/obj/structure/closet/secure_closet/freezer/kitchen
|
||||
name = "kitchen cabinet"
|
||||
req_access = list(ACCESS_KITCHEN)
|
||||
@@ -53,12 +44,7 @@
|
||||
|
||||
/obj/structure/closet/secure_closet/freezer/meat
|
||||
name = "meat fridge"
|
||||
icon_state = "fridge1"
|
||||
icon_closed = "fridge"
|
||||
icon_locked = "fridge1"
|
||||
icon_opened = "fridgeopen"
|
||||
icon_broken = "fridgebroken"
|
||||
icon_off = "fridge1"
|
||||
icon_state = "freezer"
|
||||
|
||||
/obj/structure/closet/secure_closet/freezer/meat/populate_contents()
|
||||
for(var/i in 1 to 4)
|
||||
@@ -70,12 +56,7 @@
|
||||
|
||||
/obj/structure/closet/secure_closet/freezer/fridge
|
||||
name = "refrigerator"
|
||||
icon_state = "fridge1"
|
||||
icon_closed = "fridge"
|
||||
icon_locked = "fridge1"
|
||||
icon_opened = "fridgeopen"
|
||||
icon_broken = "fridgebroken"
|
||||
icon_off = "fridge1"
|
||||
icon_state = "freezer"
|
||||
|
||||
/obj/structure/closet/secure_closet/freezer/fridge/populate_contents()
|
||||
for(var/i in 1 to 5)
|
||||
@@ -90,12 +71,7 @@
|
||||
|
||||
/obj/structure/closet/secure_closet/freezer/money
|
||||
name = "freezer"
|
||||
icon_state = "fridge1"
|
||||
icon_closed = "fridge"
|
||||
icon_locked = "fridge1"
|
||||
icon_opened = "fridgeopen"
|
||||
icon_broken = "fridgebroken"
|
||||
icon_off = "fridge1"
|
||||
icon_state = "freezer"
|
||||
req_access = list(ACCESS_HEADS_VAULT)
|
||||
|
||||
/obj/structure/closet/secure_closet/freezer/money/populate_contents()
|
||||
|
||||
@@ -3,21 +3,22 @@
|
||||
req_access = list(ACCESS_ARMORY)
|
||||
icon = 'icons/obj/guncabinet.dmi'
|
||||
icon_state = "base"
|
||||
icon_closed = "base"
|
||||
icon_opened = "base"
|
||||
icon_locked = "base"
|
||||
icon_broken = "base"
|
||||
icon_off = "base"
|
||||
anchored = TRUE
|
||||
|
||||
/obj/structure/closet/secure_closet/guncabinet/toggle()
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
/obj/structure/closet/secure_closet/guncabinet/update_icon()
|
||||
/obj/structure/closet/secure_closet/guncabinet/emag_act(mob/user)
|
||||
if(!broken)
|
||||
broken = TRUE
|
||||
locked = FALSE
|
||||
to_chat(user, "<span class='notice'>You break the lock on [src].</span>")
|
||||
update_icon()
|
||||
|
||||
/obj/structure/closet/secure_closet/guncabinet/update_overlays()
|
||||
overlays.Cut()
|
||||
if(opened)
|
||||
overlays += icon(icon,"door_open")
|
||||
else
|
||||
if(!opened)
|
||||
var/lazors = 0
|
||||
var/shottas = 0
|
||||
for(var/obj/item/gun/G in contents)
|
||||
@@ -27,7 +28,7 @@
|
||||
shottas++
|
||||
if(lazors || shottas)
|
||||
for(var/i = 0 to 2)
|
||||
var/image/gun = image(icon(src.icon))
|
||||
var/image/gun = image(icon(icon))
|
||||
|
||||
if(lazors > 0 && (shottas <= 0 || prob(50)))
|
||||
lazors--
|
||||
@@ -39,11 +40,9 @@
|
||||
gun.pixel_x = i*4
|
||||
overlays += gun
|
||||
|
||||
overlays += icon(src.icon,"door")
|
||||
overlays += "door"
|
||||
|
||||
if(broken)
|
||||
overlays += icon(src.icon,"broken")
|
||||
overlays += "off"
|
||||
else if(locked)
|
||||
overlays += icon(src.icon,"locked")
|
||||
else
|
||||
overlays += icon(src.icon,"open")
|
||||
overlays += "locked"
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
/obj/structure/closet/secure_closet/hydroponics
|
||||
name = "botanist's locker"
|
||||
req_access = list(ACCESS_HYDROPONICS)
|
||||
icon_state = "hydrosecure1"
|
||||
icon_closed = "hydrosecure"
|
||||
icon_locked = "hydrosecure1"
|
||||
icon_opened = "hydrosecureopen"
|
||||
icon_broken = "hydrosecurebroken"
|
||||
icon_off = "hydrosecureoff"
|
||||
|
||||
icon_state = "hydro"
|
||||
|
||||
/obj/structure/closet/secure_closet/hydroponics/populate_contents()
|
||||
switch(rand(1,2))
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
/obj/structure/closet/secure_closet/medical1
|
||||
name = "medicine closet"
|
||||
desc = "Filled with medical junk."
|
||||
icon_state = "medical1"
|
||||
icon_closed = "medical"
|
||||
icon_locked = "medical1"
|
||||
icon_opened = "medicalopen"
|
||||
icon_broken = "medicalbroken"
|
||||
icon_off = "medicaloff"
|
||||
icon_state = "med"
|
||||
req_access = list(ACCESS_MEDICAL)
|
||||
|
||||
/obj/structure/closet/secure_closet/medical1/populate_contents()
|
||||
@@ -28,12 +23,7 @@
|
||||
/obj/structure/closet/secure_closet/medical2
|
||||
name = "anesthetic locker"
|
||||
desc = "Used to knock people out."
|
||||
icon_state = "medical1"
|
||||
icon_closed = "medical"
|
||||
icon_locked = "medical1"
|
||||
icon_opened = "medicalopen"
|
||||
icon_broken = "medicalbroken"
|
||||
icon_off = "medicaloff"
|
||||
icon_state = "med"
|
||||
req_access = list(ACCESS_SURGERY)
|
||||
|
||||
/obj/structure/closet/secure_closet/medical2/populate_contents()
|
||||
@@ -48,12 +38,7 @@
|
||||
/obj/structure/closet/secure_closet/medical3
|
||||
name = "medical doctor's locker"
|
||||
req_access = list(ACCESS_SURGERY)
|
||||
icon_state = "securemed1"
|
||||
icon_closed = "securemed"
|
||||
icon_locked = "securemed1"
|
||||
icon_opened = "securemedopen"
|
||||
icon_broken = "securemedbroken"
|
||||
icon_off = "securemedoff"
|
||||
icon_state = "med_secure"
|
||||
|
||||
/obj/structure/closet/secure_closet/medical3/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -78,12 +63,7 @@
|
||||
/obj/structure/closet/secure_closet/exam
|
||||
name = "exam room closet"
|
||||
desc = "Filled with exam room materials."
|
||||
icon_state = "medical1"
|
||||
icon_closed = "medical"
|
||||
icon_locked = "medical1"
|
||||
icon_opened = "medicalopen"
|
||||
icon_broken = "medicalbroken"
|
||||
icon_off = "medicaloff"
|
||||
icon_state = "med"
|
||||
req_access = list(ACCESS_MEDICAL)
|
||||
|
||||
/obj/structure/closet/secure_closet/exam/populate_contents()
|
||||
@@ -127,12 +107,7 @@
|
||||
/obj/structure/closet/secure_closet/psychiatrist
|
||||
name = "psychiatrist's locker"
|
||||
req_access = list(ACCESS_PSYCHIATRIST)
|
||||
icon_state = "securemed1"
|
||||
icon_closed = "securemed"
|
||||
icon_locked = "securemed1"
|
||||
icon_opened = "securemedopen"
|
||||
icon_broken = "securemedbroken"
|
||||
icon_off = "securemedoff"
|
||||
icon_state = "med_secure"
|
||||
|
||||
/obj/structure/closet/secure_closet/psychiatrist/populate_contents()
|
||||
new /obj/item/clothing/suit/straight_jacket(src)
|
||||
@@ -150,12 +125,7 @@
|
||||
/obj/structure/closet/secure_closet/CMO
|
||||
name = "chief medical officer's locker"
|
||||
req_access = list(ACCESS_CMO)
|
||||
icon_state = "cmosecure1"
|
||||
icon_closed = "cmosecure"
|
||||
icon_locked = "cmosecure1"
|
||||
icon_opened = "cmosecureopen"
|
||||
icon_broken = "cmosecurebroken"
|
||||
icon_off = "cmosecureoff"
|
||||
icon_state = "cmo"
|
||||
|
||||
/obj/structure/closet/secure_closet/CMO/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -207,12 +177,7 @@
|
||||
/obj/structure/closet/secure_closet/chemical
|
||||
name = "chemical closet"
|
||||
desc = "Store dangerous chemicals in here."
|
||||
icon_state = "medical1"
|
||||
icon_closed = "medical"
|
||||
icon_locked = "medical1"
|
||||
icon_opened = "medicalopen"
|
||||
icon_broken = "medicalbroken"
|
||||
icon_off = "medicaloff"
|
||||
icon_state = "chemical"
|
||||
req_access = list(ACCESS_CHEMISTRY)
|
||||
|
||||
/obj/structure/closet/secure_closet/chemical/populate_contents()
|
||||
@@ -221,42 +186,10 @@
|
||||
new /obj/item/storage/box/patch_packs(src)
|
||||
new /obj/item/storage/box/patch_packs(src)
|
||||
|
||||
|
||||
/obj/structure/closet/secure_closet/medical_wall
|
||||
name = "first aid closet"
|
||||
desc = "It's a secure wall-mounted storage unit for first aid supplies."
|
||||
icon_state = "medical_wall_locked"
|
||||
icon_closed = "medical_wall_unlocked"
|
||||
icon_locked = "medical_wall_locked"
|
||||
icon_opened = "medical_wall_open"
|
||||
icon_broken = "medical_wall_spark"
|
||||
icon_off = "medical_wall_off"
|
||||
anchored = 1
|
||||
density = 0
|
||||
wall_mounted = 1
|
||||
req_access = list(ACCESS_MEDICAL)
|
||||
|
||||
/obj/structure/closet/secure_closet/medical_wall/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
|
||||
|
||||
/obj/structure/closet/secure_closet/paramedic
|
||||
name = "paramedic EVA gear"
|
||||
desc = "A locker with a Paramedic EVA suit."
|
||||
icon_state = "medical1"
|
||||
icon_closed = "medical"
|
||||
icon_locked = "medical1"
|
||||
icon_opened = "medicalopen"
|
||||
icon_broken = "medicalbroken"
|
||||
icon_off = "medicaloff"
|
||||
icon_state = "med"
|
||||
req_access = list(ACCESS_PARAMEDIC)
|
||||
|
||||
/obj/structure/closet/secure_closet/paramedic/populate_contents()
|
||||
@@ -270,12 +203,7 @@
|
||||
/obj/structure/closet/secure_closet/reagents
|
||||
name = "chemical storage closet"
|
||||
desc = "Store dangerous chemicals in here."
|
||||
icon_state = "chemical1"
|
||||
icon_closed = "chemical"
|
||||
icon_locked = "chemical1"
|
||||
icon_opened = "medicalopen"
|
||||
icon_broken = "chemicalbroken"
|
||||
icon_off = "chemicaloff"
|
||||
icon_state = "chemical"
|
||||
req_access = list(ACCESS_CHEMISTRY)
|
||||
|
||||
/obj/structure/closet/secure_closet/reagents/populate_contents()
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
/obj/structure/closet/secure_closet/clown
|
||||
name = "clown's locker"
|
||||
req_access = list(ACCESS_CLOWN)
|
||||
icon_state = "clownsecure1"
|
||||
icon_closed = "clownsecure"
|
||||
icon_locked = "clownsecure1"
|
||||
icon_opened = "clownsecureopen"
|
||||
icon_broken = "clownsecurebroken"
|
||||
icon_off = "clownsecureoff"
|
||||
icon_state = "clown"
|
||||
|
||||
/obj/structure/closet/secure_closet/clown/populate_contents()
|
||||
new /obj/item/storage/backpack/clown(src)
|
||||
@@ -26,12 +21,7 @@
|
||||
/obj/structure/closet/secure_closet/mime
|
||||
name = "mime's locker"
|
||||
req_access = list(ACCESS_MIME)
|
||||
icon_state = "mimesecure1"
|
||||
icon_closed = "mimesecure"
|
||||
icon_locked = "mimesecure1"
|
||||
icon_opened = "mimesecureopen"
|
||||
icon_broken = "mimesecurebroken"
|
||||
icon_off = "mimesecureoff"
|
||||
icon_state = "mime"
|
||||
|
||||
/obj/structure/closet/secure_closet/mime/populate_contents()
|
||||
new /obj/item/clothing/head/beret(src)
|
||||
|
||||
@@ -24,12 +24,7 @@
|
||||
|
||||
|
||||
/obj/structure/closet/secure_closet/personal/cabinet
|
||||
icon_state = "cabinetdetective_locked"
|
||||
icon_closed = "cabinetdetective"
|
||||
icon_locked = "cabinetdetective_locked"
|
||||
icon_opened = "cabinetdetective_open"
|
||||
icon_broken = "cabinetdetective_broken"
|
||||
icon_off = "cabinetdetective_broken"
|
||||
icon_state = "cabinet"
|
||||
resistance_flags = FLAMMABLE
|
||||
max_integrity = 70
|
||||
open_sound = 'sound/machines/wooden_closet_open.ogg'
|
||||
@@ -38,16 +33,11 @@
|
||||
close_sound_volume = 50
|
||||
|
||||
/obj/structure/closet/secure_closet/personal/cabinet/update_icon()
|
||||
if(broken)
|
||||
icon_state = icon_broken
|
||||
if(!opened)
|
||||
icon_state = icon_closed
|
||||
else
|
||||
if(!opened)
|
||||
if(locked)
|
||||
icon_state = icon_locked
|
||||
else
|
||||
icon_state = icon_closed
|
||||
else
|
||||
icon_state = icon_opened
|
||||
icon_state = icon_opened
|
||||
update_overlays()
|
||||
|
||||
/obj/structure/closet/secure_closet/personal/cabinet/populate_contents()
|
||||
new /obj/item/storage/backpack/satchel/withwallet( src )
|
||||
@@ -72,8 +62,9 @@
|
||||
//they can open all lockers, or nobody owns this, or they own this locker
|
||||
locked = !locked
|
||||
if(locked)
|
||||
icon_state = icon_locked
|
||||
overlays += "locked"
|
||||
else
|
||||
overlays += "unlocked"
|
||||
icon_state = icon_closed
|
||||
registered_name = null
|
||||
desc = initial(desc)
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
/obj/structure/closet/secure_closet/scientist
|
||||
name = "scientist's locker"
|
||||
req_access = list(ACCESS_TOX_STORAGE)
|
||||
icon_state = "secureres1"
|
||||
icon_closed = "secureres"
|
||||
icon_locked = "secureres1"
|
||||
icon_opened = "secureresopen"
|
||||
icon_broken = "secureresbroken"
|
||||
icon_off = "secureresoff"
|
||||
icon_state = "science"
|
||||
|
||||
/obj/structure/closet/secure_closet/scientist/populate_contents()
|
||||
new /obj/item/storage/backpack/science(src)
|
||||
@@ -25,12 +20,7 @@
|
||||
/obj/structure/closet/secure_closet/roboticist
|
||||
name = "roboticist's locker"
|
||||
req_access = list(ACCESS_ROBOTICS)
|
||||
icon_state = "secureres1"
|
||||
icon_closed = "secureres"
|
||||
icon_locked = "secureres1"
|
||||
icon_opened = "secureresopen"
|
||||
icon_broken = "secureresbroken"
|
||||
icon_off = "secureresoff"
|
||||
icon_state = "science"
|
||||
|
||||
/obj/structure/closet/secure_closet/roboticist/populate_contents()
|
||||
new /obj/item/storage/backpack(src)
|
||||
@@ -47,12 +37,7 @@
|
||||
/obj/structure/closet/secure_closet/RD
|
||||
name = "research director's locker"
|
||||
req_access = list(ACCESS_RD)
|
||||
icon_state = "rdsecure1"
|
||||
icon_closed = "rdsecure"
|
||||
icon_locked = "rdsecure1"
|
||||
icon_opened = "rdsecureopen"
|
||||
icon_broken = "rdsecurebroken"
|
||||
icon_off = "rdsecureoff"
|
||||
icon_state = "rd"
|
||||
|
||||
/obj/structure/closet/secure_closet/RD/populate_contents()
|
||||
new /obj/item/clothing/suit/bio_suit/scientist(src)
|
||||
@@ -77,12 +62,7 @@
|
||||
/obj/structure/closet/secure_closet/research_reagents
|
||||
name = "research chemical storage closet"
|
||||
desc = "Store dangerous chemicals in here."
|
||||
icon_state = "rchemical1"
|
||||
icon_closed = "rchemical"
|
||||
icon_locked = "rchemical1"
|
||||
icon_opened = "medicalopen"
|
||||
icon_broken = "rchemicalbroken"
|
||||
icon_off = "rchemicaloff"
|
||||
icon_state = "rchemical"
|
||||
req_access = list(ACCESS_TOX_STORAGE)
|
||||
|
||||
/obj/structure/closet/secure_closet/research_reagents/populate_contents()
|
||||
|
||||
@@ -2,36 +2,30 @@
|
||||
name = "secure locker"
|
||||
desc = "It's an immobile card-locked storage unit."
|
||||
icon = 'icons/obj/closet.dmi'
|
||||
icon_state = "secure1"
|
||||
density = 1
|
||||
opened = 0
|
||||
locked = 1
|
||||
broken = 0
|
||||
icon_state = "secure"
|
||||
density = TRUE
|
||||
opened = FALSE
|
||||
locked = TRUE
|
||||
broken = FALSE
|
||||
can_be_emaged = TRUE
|
||||
max_integrity = 250
|
||||
armor = list(MELEE = 30, BULLET = 50, LASER = 50, ENERGY = 100, BOMB = 0, BIO = 0, RAD = 0, FIRE = 80, ACID = 80)
|
||||
damage_deflection = 20
|
||||
icon_closed = "secure"
|
||||
var/icon_locked = "secure1"
|
||||
icon_opened = "secureopen"
|
||||
var/icon_broken = "securebroken"
|
||||
var/icon_off = "secureoff"
|
||||
wall_mounted = 0 //never solid (You can always pass over it)
|
||||
|
||||
/obj/structure/closet/secure_closet/can_open()
|
||||
if(!..())
|
||||
return 0
|
||||
return FALSE
|
||||
if(locked)
|
||||
return 0
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
/obj/structure/closet/secure_closet/close()
|
||||
if(..())
|
||||
if(broken)
|
||||
icon_state = icon_off
|
||||
return 1
|
||||
update_icon()
|
||||
return TRUE
|
||||
else
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
/obj/structure/closet/secure_closet/emp_act(severity)
|
||||
for(var/obj/O in src)
|
||||
@@ -78,9 +72,9 @@
|
||||
if(!broken)
|
||||
broken = TRUE
|
||||
locked = FALSE
|
||||
icon_state = icon_off
|
||||
flick(icon_broken, src)
|
||||
overlays += "sparking"
|
||||
to_chat(user, "<span class='notice'>You break the lock on [src].</span>")
|
||||
addtimer(CALLBACK(src, .proc/update_icon), 1 SECONDS)
|
||||
|
||||
/obj/structure/closet/secure_closet/attack_hand(mob/user)
|
||||
add_fingerprint(user)
|
||||
@@ -103,17 +97,26 @@
|
||||
else
|
||||
to_chat(usr, "<span class='warning'>This mob type can't use this verb.</span>")
|
||||
|
||||
/obj/structure/closet/secure_closet/update_icon()//Putting the welded stuff in updateicon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot)
|
||||
overlays.Cut()
|
||||
/obj/structure/closet/secure_closet/update_icon()
|
||||
if(!opened)
|
||||
if(locked)
|
||||
icon_state = icon_locked
|
||||
else
|
||||
icon_state = icon_closed
|
||||
if(welded)
|
||||
overlays += "welded"
|
||||
icon_state = icon_closed
|
||||
update_overlays()
|
||||
return
|
||||
icon_state = icon_opened
|
||||
update_overlays()
|
||||
|
||||
/obj/structure/closet/secure_closet/update_overlays() //Putting the welded stuff in update_overlays() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot)
|
||||
overlays.Cut()
|
||||
if(opened)
|
||||
return
|
||||
if(welded)
|
||||
overlays += "welded"
|
||||
if(broken)
|
||||
return
|
||||
if(locked)
|
||||
overlays += "locked"
|
||||
else
|
||||
icon_state = icon_opened
|
||||
overlays += "unlocked"
|
||||
|
||||
/obj/structure/closet/secure_closet/container_resist(mob/living/L)
|
||||
var/breakout_time = 2 //2 minutes by default
|
||||
@@ -141,14 +144,9 @@
|
||||
|
||||
//Well then break it!
|
||||
desc = "It appears to be broken."
|
||||
icon_state = icon_off
|
||||
flick(icon_broken, src)
|
||||
sleep(10)
|
||||
flick(icon_broken, src)
|
||||
sleep(10)
|
||||
broken = 1
|
||||
locked = 0
|
||||
welded = 0
|
||||
broken = TRUE
|
||||
locked = FALSE
|
||||
welded = FALSE
|
||||
update_icon()
|
||||
to_chat(usr, "<span class='warning'>You successfully break out!</span>")
|
||||
for(var/mob/O in viewers(L.loc))
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
/obj/structure/closet/secure_closet/captains
|
||||
name = "captain's locker"
|
||||
req_access = list(ACCESS_CAPTAIN)
|
||||
icon_state = "capsecure1"
|
||||
icon_closed = "capsecure"
|
||||
icon_locked = "capsecure1"
|
||||
icon_opened = "capsecureopen"
|
||||
icon_broken = "capsecurebroken"
|
||||
icon_off = "capsecureoff"
|
||||
icon_state = "cap"
|
||||
|
||||
/obj/structure/closet/secure_closet/captains/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -39,12 +34,7 @@
|
||||
/obj/structure/closet/secure_closet/hop
|
||||
name = "head of personnel's locker"
|
||||
req_access = list(ACCESS_HOP)
|
||||
icon_state = "hopsecure1"
|
||||
icon_closed = "hopsecure"
|
||||
icon_locked = "hopsecure1"
|
||||
icon_opened = "hopsecureopen"
|
||||
icon_broken = "hopsecurebroken"
|
||||
icon_off = "hopsecureoff"
|
||||
icon_state = "hop"
|
||||
|
||||
/obj/structure/closet/secure_closet/hop/populate_contents()
|
||||
new /obj/item/clothing/glasses/hud/skills/sunglasses(src)
|
||||
@@ -65,12 +55,7 @@
|
||||
/obj/structure/closet/secure_closet/hop2
|
||||
name = "head of personnel's attire"
|
||||
req_access = list(ACCESS_HOP)
|
||||
icon_state = "hopsecure1"
|
||||
icon_closed = "hopsecure"
|
||||
icon_locked = "hopsecure1"
|
||||
icon_opened = "hopsecureopen"
|
||||
icon_broken = "hopsecurebroken"
|
||||
icon_off = "hopsecureoff"
|
||||
icon_state = "hop"
|
||||
|
||||
/obj/structure/closet/secure_closet/hop2/populate_contents()
|
||||
new /obj/item/clothing/under/rank/head_of_personnel(src)
|
||||
@@ -91,12 +76,7 @@
|
||||
/obj/structure/closet/secure_closet/hos
|
||||
name = "head of security's locker"
|
||||
req_access = list(ACCESS_HOS)
|
||||
icon_state = "hossecure1"
|
||||
icon_closed = "hossecure"
|
||||
icon_locked = "hossecure1"
|
||||
icon_opened = "hossecureopen"
|
||||
icon_broken = "hossecurebroken"
|
||||
icon_off = "hossecureoff"
|
||||
icon_state = "hos"
|
||||
|
||||
/obj/structure/closet/secure_closet/hos/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -130,12 +110,7 @@
|
||||
/obj/structure/closet/secure_closet/warden
|
||||
name = "warden's locker"
|
||||
req_access = list(ACCESS_ARMORY)
|
||||
icon_state = "wardensecure1"
|
||||
icon_closed = "wardensecure"
|
||||
icon_locked = "wardensecure1"
|
||||
icon_opened = "wardensecureopen"
|
||||
icon_broken = "wardensecurebroken"
|
||||
icon_off = "wardensecureoff"
|
||||
icon_state = "warden"
|
||||
|
||||
/obj/structure/closet/secure_closet/warden/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -167,12 +142,7 @@
|
||||
/obj/structure/closet/secure_closet/security
|
||||
name = "security officer's locker"
|
||||
req_access = list(ACCESS_SECURITY)
|
||||
icon_state = "sec1"
|
||||
icon_closed = "sec"
|
||||
icon_locked = "sec1"
|
||||
icon_opened = "secopen"
|
||||
icon_broken = "secbroken"
|
||||
icon_off = "secoff"
|
||||
icon_state = "sec"
|
||||
|
||||
/obj/structure/closet/secure_closet/security/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -197,12 +167,7 @@
|
||||
/obj/structure/closet/secure_closet/brigdoc
|
||||
name = "brig physician's locker"
|
||||
req_access = list(ACCESS_SECURITY)
|
||||
icon_state = "securemed1"
|
||||
icon_closed = "securemed"
|
||||
icon_locked = "securemed1"
|
||||
icon_opened = "securemedopen"
|
||||
icon_broken = "securemedbroken"
|
||||
icon_off = "securemedoff"
|
||||
icon_state = "med"
|
||||
|
||||
/obj/structure/closet/secure_closet/brigdoc/populate_contents()
|
||||
if(prob(50))
|
||||
@@ -226,12 +191,7 @@
|
||||
/obj/structure/closet/secure_closet/blueshield
|
||||
name = "blueshield's locker"
|
||||
req_access = list(ACCESS_BLUESHIELD)
|
||||
icon_state = "bssecure1"
|
||||
icon_closed = "bssecure"
|
||||
icon_locked = "bssecure1"
|
||||
icon_opened = "bssecureopen"
|
||||
icon_broken = "bssecurebroken"
|
||||
icon_off = "bssecureoff"
|
||||
icon_state = "bs"
|
||||
|
||||
/obj/structure/closet/secure_closet/blueshield/populate_contents()
|
||||
new /obj/item/storage/briefcase(src)
|
||||
@@ -260,12 +220,7 @@
|
||||
/obj/structure/closet/secure_closet/ntrep
|
||||
name = "\improper Nanotrasen Representative's locker"
|
||||
req_access = list(ACCESS_NTREP)
|
||||
icon_state = "ntsecure1"
|
||||
icon_closed = "ntsecure"
|
||||
icon_locked = "ntsecure1"
|
||||
icon_opened = "ntsecureopen"
|
||||
icon_broken = "ntsecurebroken"
|
||||
icon_off = "ntsecureoff"
|
||||
icon_state = "ntr"
|
||||
|
||||
/obj/structure/closet/secure_closet/ntrep/populate_contents()
|
||||
new /obj/item/book/manual/faxes(src)
|
||||
@@ -317,12 +272,7 @@
|
||||
/obj/structure/closet/secure_closet/detective
|
||||
name = "detective's cabinet"
|
||||
req_access = list(ACCESS_FORENSICS_LOCKERS)
|
||||
icon_state = "cabinetdetective_locked"
|
||||
icon_closed = "cabinetdetective"
|
||||
icon_locked = "cabinetdetective_locked"
|
||||
icon_opened = "cabinetdetective_open"
|
||||
icon_broken = "cabinetdetective_broken"
|
||||
icon_off = "cabinetdetective_broken"
|
||||
icon_state = "cabinet"
|
||||
resistance_flags = FLAMMABLE
|
||||
max_integrity = 70
|
||||
open_sound = 'sound/machines/wooden_closet_open.ogg'
|
||||
@@ -352,19 +302,6 @@
|
||||
new /obj/item/taperecorder(src)
|
||||
new /obj/item/storage/box/tapes(src)
|
||||
|
||||
/obj/structure/closet/secure_closet/detective/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
|
||||
|
||||
|
||||
/obj/structure/closet/secure_closet/injection
|
||||
name = "lethal injections locker"
|
||||
req_access = list(ACCESS_SECURITY)
|
||||
@@ -401,42 +338,10 @@
|
||||
new /obj/item/clothing/head/powdered_wig (src)
|
||||
new /obj/item/storage/briefcase(src)
|
||||
|
||||
|
||||
/obj/structure/closet/secure_closet/wall
|
||||
name = "wall locker"
|
||||
req_access = list(ACCESS_SECURITY)
|
||||
icon_state = "wall-locker1"
|
||||
density = 1
|
||||
icon_closed = "wall-locker"
|
||||
icon_locked = "wall-locker1"
|
||||
icon_opened = "wall-lockeropen"
|
||||
icon_broken = "wall-lockerbroken"
|
||||
icon_off = "wall-lockeroff"
|
||||
|
||||
//too small to put a man in
|
||||
large = FALSE
|
||||
|
||||
/obj/structure/closet/secure_closet/wall/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
|
||||
|
||||
/obj/structure/closet/secure_closet/magistrate
|
||||
name = "\improper Magistrate's locker"
|
||||
req_access = list(ACCESS_MAGISTRATE)
|
||||
icon_state = "magistratesecure1"
|
||||
icon_closed = "magistratesecure"
|
||||
icon_locked = "magistratesecure1"
|
||||
icon_opened = "magistratesecureopen"
|
||||
icon_broken = "magistratesecurebroken"
|
||||
icon_off = "magistratesecureoff"
|
||||
icon_state = "magi"
|
||||
|
||||
/obj/structure/closet/secure_closet/magistrate/populate_contents()
|
||||
new /obj/item/book/manual/faxes(src)
|
||||
|
||||
Reference in New Issue
Block a user