From 7b3a31b1dbe27458c503b99ce85aecf70fa91e70 Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Wed, 1 Oct 2025 21:13:08 +0200 Subject: [PATCH] Fixes appendicitis not curing on aheal (#93204) ## About The Pull Request Closes #93161 ## Changelog :cl: fix: Aheals now cure appendicitis /:cl: --- .../organs/internal/appendix/_appendix.dm | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/code/modules/surgery/organs/internal/appendix/_appendix.dm b/code/modules/surgery/organs/internal/appendix/_appendix.dm index 29dbbe6a73d..1b7df505799 100644 --- a/code/modules/surgery/organs/internal/appendix/_appendix.dm +++ b/code/modules/surgery/organs/internal/appendix/_appendix.dm @@ -47,6 +47,7 @@ return ADD_TRAIT(owner, TRAIT_DISEASELIKE_SEVERITY_MEDIUM, type) owner.med_hud_set_status() + RegisterSignal(owner, COMSIG_LIVING_POST_FULLY_HEAL, PROC_REF(on_fully_heal)) if(isnull(owner.client)) return notify_ghosts( @@ -90,14 +91,29 @@ /obj/item/organ/appendix/on_mob_remove(mob/living/carbon/organ_owner) . = ..() + UnregisterSignal(organ_owner, COMSIG_LIVING_POST_FULLY_HEAL) REMOVE_TRAIT(organ_owner, TRAIT_DISEASELIKE_SEVERITY_MEDIUM, type) organ_owner.med_hud_set_status() /obj/item/organ/appendix/on_mob_insert(mob/living/carbon/organ_owner) . = ..() - if(inflamation_stage) - ADD_TRAIT(organ_owner, TRAIT_DISEASELIKE_SEVERITY_MEDIUM, type) - organ_owner.med_hud_set_status() + if(!inflamation_stage) + return + ADD_TRAIT(organ_owner, TRAIT_DISEASELIKE_SEVERITY_MEDIUM, type) + organ_owner.med_hud_set_status() + RegisterSignal(organ_owner, COMSIG_LIVING_POST_FULLY_HEAL, PROC_REF(on_fully_heal)) + +/obj/item/organ/appendix/proc/on_fully_heal(datum/source, heal_flags) + SIGNAL_HANDLER + + if (!(heal_flags & HEAL_ORGANS)) + return + + inflamation_stage = 0 + update_appearance() + UnregisterSignal(owner, COMSIG_LIVING_POST_FULLY_HEAL) + REMOVE_TRAIT(owner, TRAIT_DISEASELIKE_SEVERITY_MEDIUM, type) + owner.med_hud_set_status() /obj/item/organ/appendix/get_status_text(advanced, add_tooltips, colored) if(!(organ_flags & ORGAN_FAILING) && inflamation_stage)