Files
Bubberstation/code/game/objects/structures/crates_lockers/crates/critter.dm
SkyratBot 957e6e8bda [MIRROR] makes it so lockers/crates can have access electronics removed/inserted [MDB IGNORE] (#8968)
* makes it so lockers/crates can have access electronics removed/inserted (#62022)

They can only have electronics inserted if they

are welded shut (if they can be welded)
don't have electronics already and aren't secure
They can only have electronics removed if they

are welded shut (if they can be welded)
are unlocked
are secure (even if they don't have electronics, then it'll create them)

* makes it so lockers/crates can have access electronics removed/inserted

Co-authored-by: Seris02 <49109742+Seris02@users.noreply.github.com>
2021-10-23 00:24:29 +01:00

56 lines
1.3 KiB
Plaintext

/obj/structure/closet/crate/critter
name = "critter crate"
desc = "A crate designed for safe transport of animals. It has an oxygen tank for safe transport in space."
icon_state = "crittercrate"
horizontal = FALSE
allow_objects = FALSE
breakout_time = 600
material_drop = /obj/item/stack/sheet/mineral/wood
material_drop_amount = 4
delivery_icon = "deliverybox"
open_sound = 'sound/machines/wooden_closet_open.ogg'
close_sound = 'sound/machines/wooden_closet_close.ogg'
open_sound_volume = 25
close_sound_volume = 50
contents_pressure_protection = 0.8
var/obj/item/tank/internals/emergency_oxygen/tank
can_install_electronics = FALSE
/obj/structure/closet/crate/critter/Initialize(mapload)
. = ..()
tank = new
/obj/structure/closet/crate/critter/Destroy()
var/turf/T = get_turf(src)
if(tank)
tank.forceMove(T)
tank = null
return ..()
/obj/structure/closet/crate/critter/update_icon_state()
SHOULD_CALL_PARENT(FALSE)
return
/obj/structure/closet/crate/critter/update_overlays()
. = ..()
if(opened)
. += "crittercrate_door_open"
return
. += "crittercrate_door"
if(manifest)
. += "manifest"
/obj/structure/closet/crate/critter/return_air()
if(tank)
return tank.return_air()
else
return loc.return_air()
/obj/structure/closet/crate/critter/return_analyzable_air()
if(tank)
return tank.return_analyzable_air()
else
return null