From 5e64984e82c13f5c6ca5bd5548cc468d74c86ed4 Mon Sep 17 00:00:00 2001
From: corncobman21 <corncobman21@hotmail.com>
Date: Thu, 4 Jan 2018 21:42:05 -0500
Subject: [PATCH] Use JS functions to count slim, stacked slaves, etc. Add text
 and slight rep bonuses/hits for whether or not advertising and slaves match
 the arcology's preferences and whether girls match advertising. Add missing
 gender radicalist and fundamentalist stuff to be more in line with the
 others.

---
 src/uncategorized/brothelReport.tw | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uncategorized/brothelReport.tw b/src/uncategorized/brothelReport.tw
index f1017ef5841..3ad8ea79287 100644
--- a/src/uncategorized/brothelReport.tw
+++ b/src/uncategorized/brothelReport.tw
@@ -876,7 +876,7 @@
     	<<if ($arcologies[0].FSMaturityPreferentialist == "unset") && ($arcologies[0].FSYouthPreferentialist == "unset")>>
     		<<if ($brothelAdsSpending == 0) || ($brothelAdsOld == 0)>>
     			<<set _possibleBonuses++>>
-    			<<if ($young > 0) && ($old > 0) && (Math.abs($young-$old) <= (_DL/3))>>
+    			<<if (_young > 0) && (_old > 0) && (Math.abs(_young-_old) <= (_DL/3))>>
     				<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.brothel.adsIncome += _adsIncome, _brothelBonuses++>>
     				The brothel offers girls @@.yellowgreen;both@@ young and mature.
     			<</if>>
-- 
GitLab