mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Adds new helper, DisplayTimeText * Removed unused define Thought it would've been nice to have for the future, but I guess it's fine to go without it. * CBB * Revamp * Early returns * More cleanup * Proc cleanup * Makes fraction only show if seconds is < 1 * Last cleanup * Revert * Corrected incorrect round time. Dunno how nobody ever caught that it was incorrect on live servers, gg.
38 lines
973 B
Plaintext
38 lines
973 B
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"
|
|
var/obj/item/tank/internals/emergency_oxygen/tank
|
|
|
|
/obj/structure/closet/crate/critter/New()
|
|
..()
|
|
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()
|
|
cut_overlays()
|
|
if(opened)
|
|
add_overlay("crittercrate_door_open")
|
|
else
|
|
add_overlay("crittercrate_door")
|
|
if(manifest)
|
|
add_overlay("manifest")
|
|
|
|
/obj/structure/closet/crate/critter/return_air()
|
|
if(tank)
|
|
return tank.air_contents
|
|
else
|
|
return loc.return_air() |