Skip to content

Commit

Permalink
async return_to_body_dialog call (TauCetiStation#13590)
Browse files Browse the repository at this point in the history
* async return_to_body_dialog call

* linter
  • Loading branch information
volas authored Oct 15, 2024
1 parent 870b67d commit 3bec85e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/weapons/defibrillator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
H.reanimate_body(H)
H.stat = UNCONSCIOUS
H.beauty.AddModifier("stat", additive=H.beauty_living)
H.return_to_body_dialog(src)
INVOKE_ASYNC(H, TYPE_PROC_REF(/mob/living/carbon/human, return_to_body_dialog))
else
IO.heart_normalize()

Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1931,9 +1931,9 @@
visible_message("<span class='danger'>[user] is trying perform a heart massage on [src]!</span>")

massages_done_right = 0
return_to_body_dialog()

if((health > config.health_threshold_dead) || (!suiciding))
INVOKE_ASYNC(src, TYPE_PROC_REF(/mob/living/carbon/human, return_to_body_dialog))
Heart.heart_fibrillate()
to_chat(user, "<span class='notice'>You feel an irregular heartbeat coming form [src]'s body. It is in need of defibrillation you assume!</span>")
else
Expand Down

0 comments on commit 3bec85e

Please sign in to comment.