From 8afbfcd690a3abbca33079ee3e3f802d270c4304 Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Fri, 18 Jan 2019 07:36:36 -0500 Subject: [PATCH] Fix it again --- devNotes/twine JS.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 7cb6b2f23ae..3eed88c4e25 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -37846,7 +37846,9 @@ window.slaveMiscellaneousDatatypeCleanup = function slaveMiscellaneousDatatypeCl if (typeof slave.death !== "string") { slave.death = ""; } - slave.slaveCost = Math.max(+slave.slaveCost, 1) || 1; + if (slave.slaveCost !== 0) { + slave.slaveCost = Math.min(+slave.slaveCost, 1) || 1; + } slave.lifetimeCashExpenses = Math.max(+slave.lifetimeCashExpenses, 0) || 0; slave.lifetimeCashIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; slave.lastWeeksCashIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; -- GitLab