mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 16:38:22 +01:00
fixes cryobags deploying (#12892)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
w_class = ITEMSIZE_SMALL
|
||||
drop_sound = 'sound/items/drop/cloth.ogg'
|
||||
pickup_sound = 'sound/items/pickup/cloth.ogg'
|
||||
var/deploy_type = /obj/structure/closet/body_bag
|
||||
|
||||
/obj/item/bodybag/attack_self(mob/user)
|
||||
deploy_bag(user, user.loc)
|
||||
@@ -21,11 +22,15 @@
|
||||
deploy_bag(user, target)
|
||||
|
||||
/obj/item/bodybag/proc/deploy_bag(mob/user, atom/location)
|
||||
var/obj/structure/closet/body_bag/R = new /obj/structure/closet/body_bag(location)
|
||||
var/obj/structure/closet/body_bag/R = new deploy_type(location)
|
||||
R.add_fingerprint(user)
|
||||
tweak_bag(R)
|
||||
playsound(src, 'sound/items/drop/cloth.ogg', 30)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/bodybag/proc/tweak_bag(var/obj/structure/closet/body_bag/BB)
|
||||
return
|
||||
|
||||
/obj/item/storage/box/bodybags
|
||||
name = "body bags"
|
||||
desc = "This box contains body bags."
|
||||
@@ -156,15 +161,12 @@
|
||||
icon = 'icons/obj/cryobag.dmi'
|
||||
icon_state = "bodybag_folded"
|
||||
origin_tech = list(TECH_BIO = 4)
|
||||
deploy_type = /obj/structure/closet/body_bag/cryobag
|
||||
var/stasis_power
|
||||
|
||||
/obj/item/bodybag/cryobag/attack_self(mob/user)
|
||||
var/obj/structure/closet/body_bag/cryobag/R = new /obj/structure/closet/body_bag/cryobag(user.loc)
|
||||
/obj/item/bodybag/cryobag/tweak_bag(var/obj/structure/closet/body_bag/cryobag/C)
|
||||
if(stasis_power)
|
||||
R.stasis_power = stasis_power
|
||||
R.update_icon()
|
||||
R.add_fingerprint(user)
|
||||
qdel(src)
|
||||
C.stasis_power = stasis_power
|
||||
|
||||
/obj/structure/closet/body_bag/cryobag
|
||||
name = "stasis bag"
|
||||
|
||||
Reference in New Issue
Block a user