Files
Yogstation/code/game/objects/structures/crates_lockers/crates/critter.dm
phil235 64c528e115 Clicking a floor with a bodybag or roller bed now deploys them directly.
When deployed, the bodybag automatically starts "open" now.
Tweaked the amount of metal dropped by destroyed closets.
Bodybag structures no longer drop metal on destruction.
Admin deleting a critter crate no longer drops wood, but it still does when destroyed and the wood it drops is now all in a single stack.
Added a drop_material_amount var to closets to make the amount of material dropped vary for different closet types.
Click dragging a roller bed now puts it in your hand after being folded (for consistency with bodybag)
Cardboard box closets no longer have an integrity failure level (there's no opening mechanism to break in a cardboard box...). Same for bodybag "closets".
2016-10-14 17:47:16 +02:00

37 lines
946 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 = 1
material_drop = /obj/item/stack/sheet/mineral/wood
material_drop_amount = 4
var/obj/item/weapon/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()