mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user