From d1818129870905de78260f21742cce0d698cc4d1 Mon Sep 17 00:00:00 2001 From: Verkister Date: Thu, 31 Oct 2019 17:14:53 +0200 Subject: [PATCH] Fixes high endurance bodies dying in grower pod The math that was supposed to protect low endurance bodies had been mistakenly calculating the clone damage reduction with a double-negative, causing the opposite effect. The cloneloss added on top of the maxhealth apparently was intended to get a reduction of 25hp, but because the number it was being reduced from was already negative, it was instead causing a high endurance body (125 maxhealth) receive a total of 125+75 cloneloss --- code/modules/resleeving/machines.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/resleeving/machines.dm b/code/modules/resleeving/machines.dm index 501a8c86703..57bc50683ac 100644 --- a/code/modules/resleeving/machines.dm +++ b/code/modules/resleeving/machines.dm @@ -85,7 +85,7 @@ H.add_modifier(modifier_type) //Apply damage - H.adjustCloneLoss((H.getMaxHealth() - config.health_threshold_dead)*0.75) + H.adjustCloneLoss((H.getMaxHealth() - config.health_threshold_dead)*-0.75) H.Paralyse(4) H.updatehealth()