Safes Move Objects In Late Initialize.

This commit is contained in:
Atermonera
2023-02-25 03:05:37 -05:00
committed by VirgoBot
parent d43cb5bda4
commit a86747bd8f
+8 -1
View File
@@ -29,8 +29,15 @@ FLOOR SAFES
tumbler_2_pos = rand(0, 72)
tumbler_2_open = rand(0, 72)
<<<<<<< HEAD
/obj/structure/safe/Initialize()
=======
if(. != INITIALIZE_HINT_QDEL)
return INITIALIZE_HINT_LATELOAD
/obj/structure/safe/LateInitialize()
>>>>>>> ef923eb75d4... Merge pull request #8981 from Mechoid/SafesAreSafer
. = ..()
for(var/obj/item/I in loc)
if(space >= maxspace)
@@ -115,7 +122,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