From a5a3d77a5da27f5603c92fb11f63ff4ceaf5206e Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Mon, 30 Mar 2020 04:27:02 -0400 Subject: [PATCH] No one cares about your health when you're a hole. --- src/js/health.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/js/health.js b/src/js/health.js index ea5b6404a16..db55649d952 100644 --- a/src/js/health.js +++ b/src/js/health.js @@ -7,21 +7,21 @@ window.healthPenalty = function healthPenalty(slave) { const H = slave.health; let penalty = 100; - if (H.illness > 0) { - // penalty *= 1 - (100 - Math.min(Math.pow(H.illness, 2) * 5 + 5, 95)) / 100; Needs checking! - if (H.illness === 5) { - penalty *= 0.10; - } else if (H.illness === 4) { - penalty *= 0.50; - } else if (H.illness === 3) { - penalty *= 0.75; - } else if (H.illness === 2) { - penalty *= 0.90; - } else if (H.illness === 1) { - penalty *= 0.95; - } - } if (slave.assignment !== "work a glory hole") { + if (H.illness > 0) { + // penalty *= 1 - (100 - Math.min(Math.pow(H.illness, 2) * 5 + 5, 95)) / 100; Needs checking! + if (H.illness === 5) { + penalty *= 0.10; + } else if (H.illness === 4) { + penalty *= 0.50; + } else if (H.illness === 3) { + penalty *= 0.75; + } else if (H.illness === 2) { + penalty *= 0.90; + } else if (H.illness === 1) { + penalty *= 0.95; + } + } if (H.tired > 90) { penalty *= 0.75; } else if (H.tired > 60) { -- GitLab