[PORT/FEATURE] Animated closet doors (#26832)

* Adds animated closets

* Remove unecessary icon states and fixes secure closets

* Actually fixes secure closets

* Please our linting overlords.

* Fixes non-crate subtypes

* Update code/game/objects/structures/crates_lockers/closets.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Chap <erwin@lombok.demon.nl>

* Moved legacy closet icons to seperate file

* Remove some unused variables

* GC

* Moved to proper destroy

* It's good when code compiles

---------

Signed-off-by: Chap <erwin@lombok.demon.nl>
Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Chap
2024-10-14 16:05:16 +02:00
committed by GitHub
parent cd14b6114c
commit b51cc0f31c
34 changed files with 248 additions and 226 deletions
+4 -5
View File
@@ -16,9 +16,9 @@
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"
enable_door_overlay = FALSE
door_anim_time = 0
density = FALSE
integrity_failure = 0
open_sound = 'sound/items/zip.ogg'
@@ -27,7 +27,6 @@
close_sound_volume = 15
var/item_path = /obj/item/bodybag
/obj/structure/closet/body_bag/attackby(obj/item/I, mob/user, params)
if(is_pen(I))
var/t = rename_interactive(user, I)
@@ -54,7 +53,7 @@
return FALSE
/obj/structure/closet/body_bag/update_overlays()
..()
. = ..()
if(name != initial(name))
. += "bodybag_label"