mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
[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:
@@ -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)
|
||||
|
||||
@@ -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"]"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user