This submission modifies the bodybag.dm file to prevent the parent class (bodybag) from having to know about it's child class (cryobag).

This also removes redundant defines from cryobag class.
This commit is contained in:
jack-fractal
2013-06-29 16:49:48 -04:00
parent ce0d3ea68f
commit 00db60fa95

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()