Safes now eat their cheerios in Late Initialize.

This commit is contained in:
Mechoid
2023-02-22 14:22:03 -08:00
parent 90901ef3a8
commit 876a07c3b5
+5 -2
View File
@@ -29,7 +29,10 @@ FLOOR SAFES
tumbler_2_pos = rand(0, 72)
tumbler_2_open = rand(0, 72)
/obj/structure/safe/Initialize()
if(. != INITIALIZE_HINT_QDEL)
return INITIALIZE_HINT_LATELOAD
/obj/structure/safe/LateInitialize()
. = ..()
for(var/obj/item/I in loc)
if(space >= maxspace)
@@ -114,7 +117,7 @@ FLOOR SAFES
if(canhear)
to_chat(user, "<span class='notice'>You hear a [pick("click", "chink", "clink")] from \the [src].</span>")
playsound(src, 'sound/machines/click.ogg', 20, 1)
check_unlocked(user, canhear)
check_unlocked(user, canhear)
updateUsrDialog()
return