Skip to content
Snippets Groups Projects
Commit e5efb1f6 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fixes' into 'pregmod-master'

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

See merge request pregmodfan/fc-pregmod!6339
parents 7307c4d8 35ed4abb
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(_ ...@@ -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>> <<if $brothel > 0 || $club > 0 || $arcade > 0 || $dairy > 0 || $farmyard > 0>>
<br><br>__Arcology Building Maintenance__: <br><br>__Arcology Building Maintenance__:
<<if $brothel > 0>> <<if $brothel > 0>>
<<set _advertising = 0>> <<set _advertising = 0>>
<<if $brothel > 0>> <<if $brothelAdsSpending > 0>>
<<set _advertising = $brothelAdsSpending>> <<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>> <</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>> <<if $club > 0>>
<<set _advertising= 0>> <<set _advertising= 0>>
<<if $club > 0>> <<if $clubAdsSpending > 0>>
<<set _advertising = $clubAdsSpending>> <<set _advertising = $clubAdsSpending>>
<<set _arcologyCosts += $clubAdsSpending>>
<</if>> <</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;
Club: @@.yellowgreen;<<print cashFormat(($club*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)+_advertising)>>@@ 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