mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-19 20:23:07 +01:00
[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:
committed by
GitHub
parent
36b991b878
commit
fce2fd0ff1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user