From 77fcacc880f3a0826e6fc36b9369bc164c323974 Mon Sep 17 00:00:00 2001
From: lowercase-donkey <lowercasedonkey@gmail.com>
Date: Sun, 20 Jan 2019 09:58:02 -0500
Subject: [PATCH] CostX and budget bugfixes for ThreadAnon

---
 src/uncategorized/arcmgmt.tw | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw
index 7a7400ff708..0110012ba54 100644
--- a/src/uncategorized/arcmgmt.tw
+++ b/src/uncategorized/arcmgmt.tw
@@ -1103,6 +1103,7 @@ This week, rents from $arcologies[0].name came to @@.yellowgreen;<<print cashFor
 <<set _menialEarnings = 0,_bioreactorEarnings = 0,_fuckdollsEarnings = 0>>
 You own
 <<if $menials > 0>>
+	<<set _menialEarnings = 0>>
 	<<if $menials > Math.trunc(_LSCD / _slaveProductivity - _SCD)>>
 		<<set _menialEarnings += Math.trunc(_LSCD / _slaveProductivity - _SCD) * 10>>
 		<br>@@.red;more menial slaves than there was work,@@ consider selling some. You own
@@ -1122,6 +1123,7 @@ You own
 <</if>>
 
 <<if $menialBioreactors > 0>>
+	<<set _bioreactorEarnings = 0>>
 	<<set _bioreactorEarnings = $menialBioreactors*(10+(10*$arcologies[0].FSPastoralistLaw))>>
 	<<if $dairy && $dairyUpgradeMenials>><<set _bioreactorEarnings += $menialBioreactors*5>><</if>>
 	<<if $menialBioreactors > 1>> <<print commaNum($menialBioreactors)>> standard bioreactors,<<else>>one standard bioreactor,<</if>>
@@ -1131,6 +1133,7 @@ You own
 
 
 <<if $fuckdolls > 0>>
+	<<set _fuckdollsEarnings = 0>>
 	<<set _fuckdollsEarnings = $fuckdolls*(15+(10*$arcologies[0].FSDegradationistLaw))>>
 	<<if $arcade && $arcadeUpgradeMenials>><<set _fuckdollsEarnings += $fuckdolls*5>><</if>>
 	<<if $fuckdolls > 1>> <<print commaNum($fuckdolls)>> standard fuckdolls,<<else>>one fuckdoll,<</if>>
-- 
GitLab