From d01fa2663c405a24ba3ba43a7eb225f54ad37628 Mon Sep 17 00:00:00 2001
From: Jones <Jones>
Date: Mon, 29 Oct 2018 21:21:05 +0100
Subject: [PATCH] Tweaks

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

diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw
index f8d2d82243e..050b0694f5a 100644
--- a/src/uncategorized/arcmgmt.tw
+++ b/src/uncategorized/arcmgmt.tw
@@ -317,7 +317,7 @@ More elite citizens require their own slaves and will cause the population of sl
 <<if $arcologies[0].FSHedonisticDecadence != "unset">>
 	<<set _FSScore += $arcologies[0].FSHedonisticDecadence>>
 <</if>>
-<<set _FSScore = _FSScore / $FSCreditCount>>
+<<set _FSScore = Math.clamp(_FSScore / $FSCreditCount, 0, 500)>>
 <<if $secExp == 1>>
 	<<if $docks > 0>>
 		<<set _transportHub = 0.7 + $docks / 10 + $airport / 10>>
@@ -329,10 +329,10 @@ More elite citizens require their own slaves and will cause the population of sl
 <<else>>
 	<<set _transportHub = 1>>
 <</if>>
-<<set $visitors = Math.trunc((($prosperity + _FSScore * 3) * _transportHub) / (100 / $localEcon))>>
+<<set $visitors = Math.trunc((($arcologies[0].prosperity + _FSScore) * _transportHub) / (100 / $localEcon))>>
 <br>@@.green;<<print $visitors>> Traders and tourists@@ visited your arcology this week.
 /*Demand for simple labor*/
-<<set _LSCD = ($LCDemand + ($prosperity * 5) + (($middleClass + $visitors * 0.75) * 2) + (($upperClass + $visitors * 0.25) * 4.5) + ($topClass * 20)>>
+<<set _LSCD = ($LCDemand + ($arcologies[0].prosperity * 5) + (($middleClass + $visitors * 0.75) * 2) + (($upperClass + $visitors * 0.25) * 4.5) + ($topClass * 20)>>
 /*Demand for owning slaves*/
 <<set _SCD = ($upperClass * $slaveDemandU) + ($topClass * $slaveDemandT)>>
 /*More slaves than there is work*/
@@ -370,7 +370,7 @@ More elite citizens require their own slaves and will cause the population of sl
 <<set $ACitizens -= _enslaved>>
 <<set $ASlaves += _enslaved>>
 /*Work left for lower class citizens*/
-<<set _LCD = ($LCDemand + ($prosperity * 5) + ($middleClass * 2) + ($upperClass * 4.5) + ($topClass * 20) - Math.trunc(($ASlaves + $helots) * $slaveProductivity)) * $rentEffectL>>
+<<set _LCD = ($LCDemand + ($arcologies[0].prosperity * 5) + ($middleClass * 2) + ($upperClass * 4.5) + ($topClass * 20) - Math.trunc(($ASlaves + $helots) * $slaveProductivity)) * $rentEffectL>>
 /*Changing population depending on work available*/
 <<if $ACitizens < _LCD>>
 	<<set _ACImmigration = Math.trunc((_LCD - $ACitizens) * 0.3) + 1>>
-- 
GitLab