From ac5d85a080630a3c4e06833de6e0d60ee36030cf Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:49:02 +0200 Subject: [PATCH] [MIRROR] Fix spaceacillin's infection processing not applying to corpses [MDB IGNORE] (#23118) * Fix spaceacillin's infection processing not applying to corpses (#77635) ## About The Pull Request Spaceacillin used to be able to be able to treat infections on the dead as well as the living, and got unintentionally changed in #76393. Simply brings back old functionality ## Why It's Good For The Game Fix bugs! ## Changelog :cl: fix: Spaceacillin will once again provide antiviral effects for the deceased /:cl: * Fix spaceacillin's infection processing not applying to corpses --------- Co-authored-by: FlufflesTheDog --- code/modules/reagents/chemistry/reagents/medicine_reagents.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm index ded0cc1f3da..86978985ff8 100644 --- a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm @@ -261,11 +261,11 @@ ph = 8.1 chemical_flags = REAGENT_CAN_BE_SYNTHESIZED -/datum/reagent/medicine/spaceacillin/on_mob_metabolize(mob/living/L) +/datum/reagent/medicine/spaceacillin/on_mob_add(mob/living/L) . = ..() ADD_TRAIT(L, TRAIT_VIRUS_RESISTANCE, type) -/datum/reagent/medicine/spaceacillin/on_mob_end_metabolize(mob/living/L) +/datum/reagent/medicine/spaceacillin/on_mob_delete(mob/living/L) . = ..() REMOVE_TRAIT(L, TRAIT_VIRUS_RESISTANCE, type)