Merge pull request #3207 from jack-fractal/bleeding-edge-freeze

Bodybag -> Cryobag (tiny re-factoring)
This commit is contained in:
Zuhayr
2013-06-29 14:43:35 -07:00
+3 -9
View File
@@ -34,6 +34,7 @@
icon_state = "bodybag_closed"
icon_closed = "bodybag_closed"
icon_opened = "bodybag_open"
var/item_path = /obj/item/bodybag
density = 0
@@ -74,10 +75,7 @@
if(opened) return 0
if(contents.len) return 0
visible_message("[usr] folds up the [src.name]")
if(istype(src,/obj/structure/closet/body_bag/cryobag))
new/obj/item/bodybag/cryobag(get_turf(src))
else
new/obj/item/bodybag(get_turf(src))
new item_path(get_turf(src))
spawn(0)
del(src)
return
@@ -106,11 +104,7 @@
name = "stasis bag"
desc = "A non-reusable plastic bag designed for the preservation of an occupant's brain by stasis."
icon = 'icons/obj/cryobag.dmi'
icon_state = "bodybag_closed"
icon_closed = "bodybag_closed"
icon_opened = "bodybag_open"
density = 0
item_path = /obj/item/bodybag/cryobag
var/used = 0
open()