From 9f3688f9ccb8280d50ec0caa5a22328635178788 Mon Sep 17 00:00:00 2001 From: DeltaFire Date: Sat, 25 Sep 2021 02:32:29 +0200 Subject: [PATCH] health payback affected by metabolism --- .../code/modules/reagents/chemistry/reagents/healing.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modular_citadel/code/modules/reagents/chemistry/reagents/healing.dm b/modular_citadel/code/modules/reagents/chemistry/reagents/healing.dm index df65780224..e88e66705d 100644 --- a/modular_citadel/code/modules/reagents/chemistry/reagents/healing.dm +++ b/modular_citadel/code/modules/reagents/chemistry/reagents/healing.dm @@ -167,9 +167,10 @@ data["injected_vol"] = max(0, data["injected_vol"] - metabolization_rate * C.metabolism_efficiency) //No negatives. if(borrowed_health) - C.adjustToxLoss(1, forced = TRUE, toxins_type = TOX_OMNI) - C.adjustCloneLoss(1) - borrowed_health = max(borrowed_health - 2, 0) + var/payback = 2 * C.metabolism_efficiency //How much borrowed health we are paying back. Half as clonedam, half as true omni toxdam + C.adjustToxLoss(payback / 2, forced = TRUE, toxins_type = TOX_OMNI) + C.adjustCloneLoss(payback / 2) + borrowed_health = max(borrowed_health - payback, 0) ..() /datum/reagent/synthtissue/on_merge(passed_data)