From 30a61e504cbc1bb4446b5e34a4898d07f76fec80 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Wed, 8 Jan 2020 05:32:16 -0500
Subject: [PATCH] hacky longterm damage disabler

---
 src/endWeek/healthFunctions.js | 3 +++
 src/uncategorized/options.tw   | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/src/endWeek/healthFunctions.js b/src/endWeek/healthFunctions.js
index 48f703057d7..24f28c49bbf 100644
--- a/src/endWeek/healthFunctions.js
+++ b/src/endWeek/healthFunctions.js
@@ -227,6 +227,9 @@ window.endWeekHealthDamage = function endWeekHealthDamage(slave) {
 		shortToLong += Math.trunc(shortToCondition * 0.25); // 25% of transferred damage gets added to long term damage, minimum of 16 short term damage before any long term damage is accumulated
 		H.longDamage += shortToLong;
 	}
+	if (V.disableLongDamage) {
+		H.longDamage = 0;
+	}
 
 	// Making sure condition doesn't get too high
 	if (H.condition > 150) {
diff --git a/src/uncategorized/options.tw b/src/uncategorized/options.tw
index c93dfcad7a8..8d46688a401 100644
--- a/src/uncategorized/options.tw
+++ b/src/uncategorized/options.tw
@@ -488,6 +488,12 @@ This save was created using FC version $ver build $releaseID.
 			<<option 1 "Disabled">>
 			<<option 0 "Enabled">>
 		<</options>>
+		
+		<<options $disableLongDamage>>
+			Disables the long term damage mechanic. //Temp option//
+			<<option 1 "Disabled">>
+			<<option 0 "Enabled">>
+		<</options>>
 
 		<<options $diversePronouns>>
 			Experimental male pronouns are currently
-- 
GitLab