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".
This commit is contained in:
phil235
2016-10-14 17:47:16 +02:00
committed by phil235
parent 53bcc3a60a
commit 64c528e115
5 changed files with 55 additions and 36 deletions

View File

@@ -6,6 +6,7 @@
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()
@@ -14,11 +15,9 @@
/obj/structure/closet/crate/critter/Destroy()
var/turf/T = get_turf(src)
tank.loc = T
tank = null
for(var/i in 1 to rand(2, 5))
new material_drop(T)
if(tank)
tank.forceMove(T)
tank = null
return ..()