[MIRROR] Fixes secure briefcase and wall safes not sending icon update signals properly [MDB IGNORE] (#18238)

* Fixes secure briefcase and wall safes not sending icon update signals properly (#72081)

#71788 used the wrong procs.

🆑 ShizCalev
fix: Fixed secure briefcase and wall safes not sending icon update
signals properly
/🆑

* Fixes secure briefcase and wall safes not sending icon update signals properly

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-12-25 18:00:57 -08:00
committed by GitHub
co-authored by ShizCalev
parent 6ddf11b8ca
commit c699ea6f1f
2 changed files with 4 additions and 9 deletions
+3 -8
View File
@@ -36,14 +36,9 @@
if(can_hack_open)
. += "The service panel is currently <b>[panel_open ? "unscrewed" : "screwed shut"]</b>."
/obj/item/storage/secure/update_icon()
..()
if(!atom_storage)
return
if(atom_storage.locked)
icon_state = "[initial(icon_state)]_locked"
else
icon_state = "[initial(icon_state)]"
/obj/item/storage/secure/update_icon_state()
. = ..()
icon_state = "[initial(icon_state)][atom_storage?.locked ? "_locked" : null]"
/obj/item/storage/secure/tool_act(mob/living/user, obj/item/tool)
if(can_hack_open && atom_storage.locked)
+1 -1
View File
@@ -677,7 +677,7 @@
icon_state = "wall_safe_locked"
var/unlocked = FALSE
/obj/item/storage/pod/update_icon()
/obj/item/storage/pod/update_icon_state()
. = ..()
icon_state = "wall_safe[unlocked ? "" : "_locked"]"