mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-17 13:12:37 +00:00
52 lines
1.2 KiB
Plaintext
52 lines
1.2 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
|
|
var/obj/item/tank/internals/emergency_oxygen/tank
|
|
|
|
/obj/structure/closet/crate/critter/Initialize()
|
|
. = ..()
|
|
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()
|
|
return
|
|
|
|
/obj/structure/closet/crate/critter/update_overlays()
|
|
. = ..()
|
|
if(opened)
|
|
. += "crittercrate_door_open"
|
|
else
|
|
. += "crittercrate_door"
|
|
if(manifest)
|
|
. += "manifest"
|
|
|
|
/obj/structure/closet/crate/critter/return_air()
|
|
if(tank)
|
|
return tank.air_contents
|
|
else
|
|
return loc.return_air()
|
|
|
|
/obj/structure/closet/crate/critter/return_analyzable_air()
|
|
if(tank)
|
|
return tank.return_analyzable_air()
|
|
else
|
|
return null
|