[MIRROR] Capture crystal sleep()s cleaned up (#11257)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-07-26 22:19:50 -07:00
committed by GitHub
parent 36b991b878
commit fce2fd0ff1
3 changed files with 18 additions and 10 deletions
@@ -558,13 +558,17 @@
if((state == 1) && owner && (owner.stat == DEAD))
update_state(2)
visible_message(span_warning("The [name] begins flashing red."))
sleep(30)
visible_message(span_warning("The [name] shatters into dust!"))
if(owner_c)
to_chat(owner_c, span_notice("A signal is sent notifying of your demise by \the [name]."))
update_state(3)
name = "broken [initial(name)]"
desc = "This seems like a necklace, but the actual pendant is missing."
addtimer(CALLBACK(src, PROC_REF(shatter_into_dust)), 3 SECONDS, TIMER_DELETE_ME)
/obj/item/clothing/accessory/collar/khcrystal/proc/shatter_into_dust()
SHOULD_NOT_OVERRIDE(TRUE)
PRIVATE_PROC(TRUE)
visible_message(span_warning("The [name] shatters into dust!"))
if(owner_c)
to_chat(owner_c, span_notice("A signal is sent notifying of your demise by \the [name].")) // CHOMPEdit
update_state(3)
name = "broken [initial(name)]"
desc = "This seems like a necklace, but the actual pendant is missing."
/obj/item/clothing/accessory/collar/khcrystal/proc/update_state(var/tostate)
state = tostate