Skip to content
Snippets Groups Projects
Commit 35ed4abb authored by i107760's avatar i107760
Browse files

Fix `costsReport.tw` to check for ad spending instead of facility presence and fix indentation

parent b7860681
No related branches found
No related tags found
No related merge requests found
......@@ -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>&nbsp;&nbsp;&nbsp;&nbsp;
Brothel: @@.yellowgreen;<<print cashFormat(($brothel*$facilityCost)+(0.1*$brothelUpgradeDrugs*$brothel*$facilityCost)+_advertising)>>@@
<<set _arcologyCosts += ($brothel*$facilityCost)+(0.1*$brothelUpgradeDrugs*$brothel*$facilityCost)+_advertising>>
<</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
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>&nbsp;&nbsp;&nbsp;&nbsp;
Club: @@.yellowgreen;<<print cashFormat(($club*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)+_advertising)>>@@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment