mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 21:40:55 +01:00
Ports funky closet animations from Yog (#12989)
This commit is contained in:
@@ -57,8 +57,6 @@
|
||||
desc = "Special air bubble designed to protect people inside of it from decompressed environments. Has an integrated cooling unit to preserve a stable temperature inside. Requires a power cell to operate."
|
||||
icon = 'icons/obj/airbubble.dmi'
|
||||
icon_state = "airbubble"
|
||||
icon_closed = "airbubble"
|
||||
icon_opened = "airbubble_open"
|
||||
open_sound = 'sound/items/zip.ogg'
|
||||
close_sound = 'sound/items/zip.ogg'
|
||||
var/item_path = /obj/item/airbubble
|
||||
@@ -157,7 +155,7 @@
|
||||
|
||||
dump_contents()
|
||||
|
||||
icon_state = icon_opened
|
||||
update_icon()
|
||||
opened = 1
|
||||
playsound(loc, open_sound, 15, 1, -3)
|
||||
density = 0
|
||||
@@ -178,7 +176,7 @@
|
||||
if(store_mobs)
|
||||
stored_units += store_mobs(stored_units)
|
||||
|
||||
icon_state = icon_closed
|
||||
update_icon()
|
||||
opened = 0
|
||||
|
||||
playsound(loc, close_sound, 25, 0, -3)
|
||||
@@ -225,10 +223,10 @@
|
||||
bag.desc += " <span class='notice'>It appears to be poorly hand folded.</span>"
|
||||
|
||||
if(ripped)
|
||||
bag.icon_state = "[icon_closed]_man_folded_ripped"
|
||||
bag.icon_state = "[icon_state]_man_folded_ripped"
|
||||
bag.desc += " <span class='danger'>It has hole in it! Maybe you shouldn't use it!</span>"
|
||||
else
|
||||
bag.icon_state = "[icon_closed]_man_folded"
|
||||
bag.icon_state = "[icon_state]_man_folded"
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
@@ -489,15 +487,13 @@
|
||||
|
||||
/obj/structure/closet/airbubble/update_icon()
|
||||
cut_overlays()
|
||||
if(opened)
|
||||
icon_state = icon_opened
|
||||
else if(ripped)
|
||||
if(ripped)
|
||||
name = "ripped air bubble"
|
||||
icon_state = "[icon_closed]_ripped"
|
||||
icon_state = "[icon_state]_ripped"
|
||||
else
|
||||
icon_state = icon_closed
|
||||
icon_state = "[initial(icon_state)][opened ? "_open" : ""]"
|
||||
if(zipped)
|
||||
add_overlay("[icon_closed]_restrained")
|
||||
add_overlay("[icon_state]_restrained")
|
||||
add_overlay("pressure_[(use_internal_tank) ?("on") : ("off") ]")
|
||||
|
||||
// Process transfer of air from the tank. Handle if it is ripped open.
|
||||
@@ -626,8 +622,5 @@
|
||||
name = "air bubble"
|
||||
desc = "Special air bubble designed to protect people inside of it from decompressed environments. Has an integrated cooling unit to preserve a stable temperature inside. Requires a power cell to operate. This does not seem like a regular color scheme."
|
||||
icon_state = "airbubble_syndie"
|
||||
icon_closed = "airbubble_syndie"
|
||||
icon_closed = "airbubble_syndie"
|
||||
icon_opened = "airbubble_syndie_open"
|
||||
item_path = /obj/item/airbubble/syndie
|
||||
syndie = TRUE
|
||||
|
||||
@@ -50,16 +50,13 @@
|
||||
name = "body bag"
|
||||
desc = "A plastic bag designed for the storage and transportation of cadavers."
|
||||
icon = 'icons/obj/bodybag.dmi'
|
||||
icon_state = "bodybag_closed"
|
||||
icon_closed = "bodybag_closed"
|
||||
icon_opened = "bodybag_open"
|
||||
icon_state = "bodybag"
|
||||
open_sound = 'sound/items/zip.ogg'
|
||||
close_sound = 'sound/items/zip.ogg'
|
||||
density = 0
|
||||
storage_capacity = 30
|
||||
var/item_path = /obj/item/bodybag
|
||||
var/contains_body = 0
|
||||
var/shapely = TRUE
|
||||
var/contains_body = FALSE
|
||||
can_be_buckled = TRUE
|
||||
|
||||
/obj/structure/closet/body_bag/content_info(mob/user, content_size)
|
||||
@@ -146,20 +143,16 @@
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/closet/body_bag/update_icon()
|
||||
if(opened)
|
||||
icon_state = icon_opened
|
||||
else
|
||||
if(contains_body > 0 && shapely)
|
||||
icon_state = "bodybag_closed1"
|
||||
else
|
||||
icon_state = icon_closed
|
||||
icon_state = "[initial(icon_state)][opened ? "_open" : "[contains_body ? "_occupied" : ""]"]"
|
||||
|
||||
/obj/structure/closet/body_bag/animate_door()
|
||||
flick("[initial(icon_state)]_anim_[opened ? "open" : "close"]", src)
|
||||
|
||||
/obj/item/bodybag/cryobag
|
||||
name = "stasis bag"
|
||||
desc = "A folded, reusable bag designed to prevent additional damage to an occupant, especially useful if short on time or in \
|
||||
a hostile enviroment."
|
||||
icon = 'icons/obj/cryobag.dmi'
|
||||
icon_state = "bodybag_folded"
|
||||
icon_state = "stasis_folded"
|
||||
origin_tech = list(TECH_BIO = 4)
|
||||
deploy_type = /obj/structure/closet/body_bag/cryobag
|
||||
var/stasis_power
|
||||
@@ -172,11 +165,8 @@
|
||||
name = "stasis bag"
|
||||
desc = "A reusable plastic bag designed to prevent additional damage to an occupant, especially useful if short on time or in \
|
||||
a hostile enviroment."
|
||||
icon = 'icons/obj/cryobag.dmi'
|
||||
icon_opened = "stasis_open"
|
||||
icon_closed = "stasis_closed"
|
||||
icon_state = "stasis"
|
||||
item_path = /obj/item/bodybag/cryobag
|
||||
shapely = FALSE
|
||||
var/datum/gas_mixture/airtank
|
||||
|
||||
var/stasis_power = 20
|
||||
@@ -208,7 +198,7 @@
|
||||
/obj/structure/closet/body_bag/cryobag/update_icon()
|
||||
..()
|
||||
overlays.Cut()
|
||||
var/image/I = image(icon, "indicator[opened]")
|
||||
var/image/I = image(icon, "indicator")
|
||||
I.appearance_flags = RESET_COLOR
|
||||
var/maxstasis = initial(stasis_power)
|
||||
if(stasis_power > 0.5 * maxstasis)
|
||||
@@ -260,6 +250,6 @@
|
||||
|
||||
/obj/item/usedcryobag
|
||||
name = "used stasis bag"
|
||||
desc = "Pretty useless now.."
|
||||
icon_state = "bodybag_used"
|
||||
icon = 'icons/obj/cryobag.dmi'
|
||||
desc = "Pretty useless now."
|
||||
icon_state = "cryobag_used"
|
||||
icon = 'icons/obj/bodybag.dmi'
|
||||
|
||||
Reference in New Issue
Block a user