diff --git a/src/uncategorized/costsReport.tw b/src/uncategorized/costsReport.tw index 592a0da8e3da5e8dddcd24fd39aa7831dd041578..fdadf1b7a48e779e5129228ccc708ac3ab637778 100644 --- a/src/uncategorized/costsReport.tw +++ b/src/uncategorized/costsReport.tw @@ -118,19 +118,18 @@ your personal living expenses are @@.yellowgreen;<<print cashFormat(Math.trunc(_ <<if $brothel > 0 || $club > 0 || $arcade > 0 || $dairy > 0 || $farmyard > 0>> <br><br>__Arcology Building Maintenance__: <<if $brothel > 0>> - <<set _advertising = 0>> - <<if $brothel > 0>> - <<set _advertising = $brothelAdsSpending>> + <<set _advertising = 0>> + <<if $brothelAdsSpending > 0>> + <<set _advertising = $brothelAdsSpending>> + <</if>> + <br> + Brothel: @@.yellowgreen;<<print cashFormat(($brothel*$facilityCost)+(0.1*$brothelUpgradeDrugs*$brothel*$facilityCost)+_advertising)>>@@ + <<set _arcologyCosts += ($brothel*$facilityCost)+(0.1*$brothelUpgradeDrugs*$brothel*$facilityCost)+_advertising>> <</if>> - <br> - Brothel: @@.yellowgreen;<<print cashFormat(($brothel*$facilityCost)+(0.1*$brothelUpgradeDrugs*$brothel*$facilityCost)+_advertising)>>@@ - <<set _arcologyCosts += ($brothel*$facilityCost)+(0.1*$brothelUpgradeDrugs*$brothel*$facilityCost)+_advertising>> -<</if>> <<if $club > 0>> <<set _advertising= 0>> - <<if $club > 0>> + <<if $clubAdsSpending > 0>> <<set _advertising = $clubAdsSpending>> - <<set _arcologyCosts += $clubAdsSpending>> <</if>> <br> Club: @@.yellowgreen;<<print cashFormat(($club*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)+_advertising)>>@@