From c470fd2d008b5e0095fe8918cefc366b9ceecd77 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 5 Jun 2023 23:26:45 +0200 Subject: [PATCH] [MIRROR] fixes reviver implant looping players between soft and hard crit [MDB IGNORE] (#21667) * fixes reviver implant looping players between soft and hard crit (#75780) ## About The Pull Request Currently the reviver implant stops working the first tick the player is above hard crit, meaning it leaves them right on the border between soft crit and hard crit. This, of course, means the player then falls right back into hard crit. And then the implant kicks in for a very short time, looping the player between hard and soft crit. ## Why It's Good For The Game It doesn't seem like this could possibly be intended, so, bugfix that prevents the player from looping between soft and hard crit indefinitely. closes https://github.com/tgstation/tgstation/issues/75139 (Thanks Sealed101 and timothymtorres) ## Changelog :cl: fix: The reviver implant will no longer leave its user looping between soft and hard critical states. /:cl: * fixes reviver implant looping players between soft and hard crit --------- Co-authored-by: YehnBeep <86855173+YehnBeep@users.noreply.github.com> --- code/modules/surgery/organs/augments_chest.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/augments_chest.dm b/code/modules/surgery/organs/augments_chest.dm index 9dcac8ef5ce..49b0ba08a43 100644 --- a/code/modules/surgery/organs/augments_chest.dm +++ b/code/modules/surgery/organs/augments_chest.dm @@ -58,7 +58,7 @@ /obj/item/organ/internal/cyberimp/chest/reviver/on_life(seconds_per_tick, times_fired) if(reviving) switch(owner.stat) - if(UNCONSCIOUS, HARD_CRIT) + if(UNCONSCIOUS, HARD_CRIT, SOFT_CRIT) addtimer(CALLBACK(src, PROC_REF(heal)), 3 SECONDS) else COOLDOWN_START(src, reviver_cooldown, revive_cost)