From 0015bbf2fd6f1784db4f9aea2ba5c121d1c165dc Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Tue, 15 Jan 2019 07:28:50 -0500 Subject: [PATCH] Fixes, Kop suggestions. --- src/js/economyJS.tw | 99 ++++---- src/uncategorized/costsReport.tw | 415 ------------------------------- 2 files changed, 49 insertions(+), 465 deletions(-) diff --git a/src/js/economyJS.tw b/src/js/economyJS.tw index dcbf43ea432..a8de24b77f4 100644 --- a/src/js/economyJS.tw +++ b/src/js/economyJS.tw @@ -21,7 +21,7 @@ window.predictCost = function(array) { getIncubatorCosts() + getServantsQuartersCosts() + getMasterSuiteCosts() + - getNurseyCosts() + + getNurseryCosts() + getFarmyardCosts() + getSecurityExpansionCost() + getLifestyleCosts() + @@ -58,7 +58,7 @@ window.predictCost = function(array) { } */ return totalCosts; -} +}; window.getCost = function(array) { var array2 = array; @@ -72,7 +72,7 @@ window.getCost = function(array) { cashX(forceNeg(getIncubatorCosts()), "incubator"); cashX(forceNeg(getServantsQuartersCosts()), "servantsQuarters"); cashX(forceNeg(getMasterSuiteCosts()), "masterSuite"); - cashX(forceNeg(getNurseyCosts()), "nursery"); + cashX(forceNeg(getNurseryCosts()), "nursery"); cashX(forceNeg(getFarmyardCosts()), "farmyard"); cashX(forceNeg(getSecurityExpansionCost()), "securityExpansion"); cashX(forceNeg(getLifestyleCosts()), "personalBusiness"); @@ -105,7 +105,7 @@ window.getCost = function(array) { cashX(forceNeg(getSFCosts()), "specialForces"); cashX(forceNeg(getWeatherCosts()), "weather"); return (oldCash - State.variables.cash); -} +}; //slave expenses window.predictTotalSlaveCosts = function(array3) { @@ -116,11 +116,11 @@ window.predictTotalSlaveCosts = function(array3) { loopCosts += getSlaveMinorCosts(slave); } return loopCosts; -} +}; window.getTotalSlaveCosts = function(array3) { - var slaveCost = 0 - var slaveCostMinor = 0 + var slaveCost = 0; + var slaveCostMinor = 0; for (var slave of array3) { slaveCost = getSlaveCost(slave); cashX(forceNeg(slaveCost), "slaveUpkeep", slave); @@ -128,7 +128,7 @@ window.getTotalSlaveCosts = function(array3) { cashX(forceNeg(slaveCostMinor), "slaveUpkeep", slave); } //nothing to return, cashX already billed. -} +}; //facility expenses window.getBrothelCosts = function() { @@ -140,7 +140,7 @@ window.getBrothelCosts = function() { costs += State.variables.brothelAdsSpending; } return costs; -} +}; window.getArcadeCosts = function() { var facilityCost = State.variables.facilityCost; @@ -149,7 +149,7 @@ window.getArcadeCosts = function() { costs += (0.2 * State.variables.arcadeUpgradeInjectors * arcade * facilityCost) + (0.2 * State.variables.arcadeUpgradeCollectors * arcade * facilityCost); return costs; -} +}; window.getClubCosts = function() { var facilityCost = State.variables.facilityCost; @@ -160,7 +160,7 @@ window.getClubCosts = function() { costs += State.variables.clubAdsSpending; } return costs; -} +}; window.getDairyCosts = function() { var facilityCost = State.variables.facilityCost; @@ -172,7 +172,7 @@ window.getDairyCosts = function() { costs += ((State.variables.bioreactorsXY + State.variables.bioreactorsXX + State.variables.bioreactorsHerm + State.variables.bioreactorsBarren) * 100); } return costs; -} +}; window.getIncubatorCosts = function() { var facilityCost = State.variables.facilityCost; @@ -187,14 +187,14 @@ window.getIncubatorCosts = function() { costs += ((State.variables.incubatorWeightSetting + State.variables.incubatorMusclesSetting + State.variables.incubatorReproductionSetting + State.variables.incubatorGrowthStimsSetting) * 500); } return costs; -} +}; window.getServantsQuartersCosts = function() { var facilityCost = State.variables.facilityCost; var servantsQuarters = State.variables.servantsQuarters; - var costs = (0.2 * State.variables.servantsQuartersUpgradeMonitoring * servantsQuarters * facilityCost) + var costs = (0.2 * State.variables.servantsQuartersUpgradeMonitoring * servantsQuarters * facilityCost); return costs; -} +}; window.getMasterSuiteCosts = function() { var costs = 0; @@ -205,21 +205,21 @@ window.getMasterSuiteCosts = function() { costs += 1000; } return costs; -} +}; -window.getNurseyCosts = function() { +window.getNurseryCosts = function() { var facilityCost = State.variables.facilityCost; var nursery = State.variables.nursery; var costs = (nursery * facilityCost); return costs; -} +}; window.getFarmyardCosts = function() { var facilityCost = State.variables.facilityCost; var farmyard = State.variables.farmyard; var costs = (farmyard * facilityCost); return costs; -} +}; window.getSecurityExpansionCost = function() { //security expansion @@ -276,7 +276,7 @@ window.getSecurityExpansionCost = function() { } } return secExpCost; -} +}; //general arcology costs @@ -285,7 +285,7 @@ window.getLifestyleCosts = function() { var localEcon = State.variables.localEcon; costs += (State.variables.girls * (250 + (50000 / localEcon))); return costs; -} +}; window.getFSCosts = function() { var costs = 0; @@ -294,13 +294,13 @@ window.getFSCosts = function() { costs -= 500; } return costs; -} +}; window.getCitizenOrphanageCosts = function() { var costs = 0; costs += State.variables.citizenOrphanageTotal * 100; return costs; -} +}; window.getPrivateOrphanageCosts = function() { var costs = 0; @@ -309,7 +309,7 @@ window.getPrivateOrphanageCosts = function() { costs += 50; } return costs; -} +}; window.getPeacekeeperCosts = function() { var costs = 0; @@ -317,7 +317,7 @@ window.getPeacekeeperCosts = function() { costs += State.variables.peacekeepers.undermining; } return costs; -} +}; window.getMercenariesCosts = function() { var costs = 0; @@ -332,7 +332,7 @@ window.getMercenariesCosts = function() { costs += mercCosts; } return costs; -} +}; window.getMenialRetirementCosts = function() { var costs = 0; @@ -340,7 +340,7 @@ window.getMenialRetirementCosts = function() { costs += State.variables.menials * 2; } return costs; -} +}; // policy and other expenses window.getRecruiterCosts = function() { @@ -349,7 +349,7 @@ window.getRecruiterCosts = function() { costs += 250; } return costs; -} +}; window.getSchoolCosts = function() { var costs = 0; @@ -402,7 +402,7 @@ window.getSchoolCosts = function() { costs += 1000; } return costs; -} +}; window.getPolicyCosts = function() { var costs = 0; @@ -428,7 +428,7 @@ window.getPolicyCosts = function() { costs += 1000; } return costs; -} +}; window.getCyberModCosts = function() { var costs = 0; @@ -436,7 +436,7 @@ window.getCyberModCosts = function() { costs += ((100 * State.variables.researchLab.maxSpace) + (300 * State.variables.researchLab.hired) + (100 * State.variables.researchLab.hired)); } return costs; -} +}; //player expenses @@ -458,7 +458,7 @@ window.getPCTrainingCosts = function() { } } return costs; -} +}; window.getPCCosts = function() { var costs = 0; if(State.variables.PC.preg === -1) { @@ -472,7 +472,7 @@ window.getPCCosts = function() { costs += 50; } return costs; -} +}; window.getPCMultiplierCosts = function(cost) { @@ -489,7 +489,7 @@ window.getPCMultiplierCosts = function(cost) { } return cost; -} +}; window.getEnvironmentCosts = function(cost) { if(State.variables.secExp == 1) { @@ -502,7 +502,7 @@ window.getEnvironmentCosts = function(cost) { } } return cost; -} +}; window.getSFCosts = function() { var costs = 0; @@ -517,7 +517,7 @@ window.getSFCosts = function() { } } return costs; -} +}; window.getWeatherCosts = function() { var costs = 0; @@ -528,10 +528,10 @@ window.getWeatherCosts = function() { costs += Math.trunc(State.variables.antiWeatherFreeze * 200000 / State.variables.localEcon); } return costs; -} +}; window.getSlaveMinorCosts = function(slave) { - var costs = 0 + var costs = 0; var rulesCost = State.variables.rulesCost; if(slave.assignment === Job.SERVANT || slave.assignment === Job.SERVER) { if(slave.trust < -20) { @@ -573,7 +573,8 @@ window.getSlaveMinorCosts = function(slave) { } } return costs; -} +}; + window.getSlaveCost = function(s) { if(!s) { return 0; } // Data duplicated from Cost Report @@ -585,15 +586,15 @@ window.getSlaveCost = function(s) { // Living expenses switch(s.assignment) { case Job.ARCADE: - cost += rulesCost * .75; + cost += rulesCost * 0.75; break; case Job.DAIRY: if(State.variables.dairyRestraintsSetting >= 2) { - cost += rulesCost * .75; + cost += rulesCost * 0.75; } else if(s.livingRules == LivingRule.NORMAL) { cost += rulesCost * 1.5; } else if(State.variables.dairyDecoration === 'Degradationist') { - cost += rulesCost * .90; + cost += rulesCost * 0.90; } else { cost += rulesCost; } @@ -631,7 +632,7 @@ window.getSlaveCost = function(s) { cost += rulesCost * 1.5; } else { if(State.variables.servantsQuartersDecoration === 'Degradationist') { - cost += rulesCost * .90; + cost += rulesCost * 0.90; } else { cost += rulesCost; } @@ -641,7 +642,7 @@ window.getSlaveCost = function(s) { if(s.livingRules == LivingRule.NORMAL) { cost += rulesCost * 1.25; } else { - cost += rulesCost * .90; + cost += rulesCost * 0.90; } break; case Job.MADAM: case Job.DJ: case Job.NURSE: case Job.WARDEN: @@ -671,7 +672,7 @@ window.getSlaveCost = function(s) { break; } if(s.geneticQuirks.fertility == 2 && s.geneticQuirks.hyperFertility == 2 && s.preg == 0 && (s.ovaries == 1 || s.mpreg == 1)) { - cost += foodCost * .5; + cost += foodCost * 0.5; } if(s.weight > 130) { cost += foodCost * 2; @@ -833,7 +834,7 @@ window.getSlaveCost = function(s) { cost += drugsCost * 5; break; case 'sag-B-gone': - cost += Math.trunc(drugsCost * .1); + cost += Math.trunc(drugsCost * 0.1); break; case 'no drugs': case 'none': break; @@ -986,12 +987,10 @@ window.cashX = function(cost, what, who) { }; window.forceNeg = function(x) { - if (x > 0){ - x = Math.abs(x) * -1; - } - return x; + return -Math.abs(x); }; + Number.prototype.toFixedHTML = function() { return commaNum(Number.prototype.toFixed.apply(this, arguments)).replace(/\.0+$/, '<span style="opacity: 0.3">$&</span>'); }; diff --git a/src/uncategorized/costsReport.tw b/src/uncategorized/costsReport.tw index 399a2135b53..42a62ac1d0e 100644 --- a/src/uncategorized/costsReport.tw +++ b/src/uncategorized/costsReport.tw @@ -3,421 +3,6 @@ <<set $nextButton = "Back to Budget", $nextLink = "Costs Budget",_archologyCosts = 0>> <<if $PCSlutContacts == 0>><<set $PCSlutContacts = 1>><</if>> -//Your weekly costs are as follows.// - -<br><br> - -Since you are -<<if $girls >= 3>> - accustomed to luxury, -<<elseif $girls == 2>> - used to living well, -<<else>> - used to a fairly normal life, -<</if>> -your personal living expenses are @@.yellowgreen;<<print cashFormat(Math.trunc($girls*(250+(50000/$localEcon))))>>.@@ -<<set _arcologyCosts += Math.trunc($girls*(250+(50000/$localEcon)))>> - -<<if $arcologies[0].FSRepopulationFocusLaw == 1 && $PC.pregKnown == 1>> - <br>Rent promotion for being a pregnant citizen under ''Universal Pregnancy Subsidy:'' @@.yellowgreen;<<print cashFormat(500)>>@@ - <<set _arcologyCosts += 500>> -<</if>> - -<<if $PC.preg == -1>> - <br>Your contraceptives expenses: @@.yellowgreen;<<print cashFormat(25)>>@@ - <<set _arcologyCosts += 25>> -<<elseif $PC.fertDrugs == 1>> - <br>Your fertility regimen: @@.yellowgreen;<<print cashFormat(50)>>@@ - <<set _arcologyCosts += 50>> -<<elseif $PC.preg >= 16>> - <br>Increased living expenses due to being pregnant: @@.yellowgreen;<<print cashFormat(100)>>@@ - <<set _arcologyCosts += 100>> -<</if>> -<<if $PC.staminaPills == 1>> - <br>Your stamina pills: @@.yellowgreen;<<print cashFormat(50)>>@@ - <<set _arcologyCosts += 50>> -<</if>> - -<<if $PC.actualAge >= $IsInPrimePC && $PC.actualAge < $IsPastPrimePC>> - <<if ($personalAttention == "trading") || ($personalAttention == "warfare") || ($personalAttention == "slaving") || ($personalAttention == "engineering") || ($personalAttention == "medicine") || ($personalAttention == "hacking")>> - <br><br> - <<set _cost = 10000*$AgeEffectOnTrainerPricingPC,_arcologyCosts += _cost>> - <<switch $personalAttention>> - <<case trading>> - __Trading__ - <<case warfare>> - __Warfare__ - <<case slaving>> - __Slaving__ - <<case engineering>> - __Engineering__ - <<case medicine>> - __Medicine__ - <<case hacking>> - __Hacking__ - <</switch>> - Trainer Fees: @@.yellowgreen;<<print cashFormat(_cost)>>@@ - <</if>> -<</if>> - -<<if $breederOrphanageTotal > 0>><<set _breederTuition = 50>><<else>><<set _breederTuition = 0>><</if>> -<<if $citizenOrphanageTotal+$privateOrphanageTotal+$breederOrphanageTotal > 0>> - <br> __Orphanage__ fee: @@.yellowgreen;<<print cashFormat($citizenOrphanageTotal*100+$privateOrphanageTotal*500+_breederTuition)>>@@ - <<set _arcologyCosts += $citizenOrphanageTotal*100+$privateOrphanageTotal*500+_breederTuition>> - <<if $citizenOrphanageTotal > 0>> - <br> Citizen: @@.yellowgreen;<<print cashFormat(100)>>@@ per child. Currently <<print commaNum($citizenOrphanageTotal)>> are being taught, bringing the total to @@.yellowgreen;<<print cashFormat($citizenOrphanageTotal*100)>>@@. - <</if>> - <<if $privateOrphanageTotal > 0>> - <br> Private: @@.yellowgreen;<<print cashFormat(500)>>@@ per child. Currently <<print commaNum($privateOrphanageTotal)>> are being taught, bringing the total to @@.yellowgreen;<<print cashFormat($privateOrphanageTotal*500)>>@@. - <</if>> - <<if $breederOrphanageTotal > 0>> - <br> Since <<print commaNum($breederOrphanageTotal)>> of your slaves' children are being raised into productive members of society in a society funded school, you pay a flat @@.yellowgreen;<<print cashFormat(50)>>@@ usage fee. - <</if>> -<</if>> - -<<if $peacekeepers != 0 && $peacekeepers.undermining != 0>> - <br> <<print cashFormat($peacekeepers.undermining)>> to undermine political support for the nearby old world peacekeeping mission. - <<set _arcologyCosts += $peacekeepers.undermining>> -<</if>> - -<<if $SF.Toggle && $SF.Active >= 1>> - <<if $SF.Subsidy>> - <br>__Finacinally supporting $SF.Lower until self sufficiency:__ <<print cashFormat(Math.ceil( (10000*($SF.Squad.Troops/10))+(1+($arcologies[0].prosperity/100))+(1+($SF.Size/100)) ))>> - <<set _arcologyCosts += Math.ceil( (10000*($SF.Squad.Troops/10))+(1+($arcologies[0].prosperity/100))+(1+($SF.Size/100)) )>> - <</if>> - <<if $SF.Bonus>> - <<= Count()>> - <br>__Bonuses for basic FS acceptance amongst $SF.Lower:__ <<print cashFormat(Math.ceil(_SFCashBonus))>> - <br> Colonel <<print cashFormat(_ColonelCashBonus*_Env)>>. - Troop size: <<print commaNum($SF.Squad.Troops)>> and each solider receives <<print cashFormat(_inviTroop*_Env)>>, totaling <<print cashFormat(Math.ceil(_TroopCashBonus*_Env))>>. - <<set _arcologyCosts += _SFCashBonus>> - <</if>> -<</if>> -<<if $mercenaries > 0>> - <<set _mercCosts = $mercenaries*2000>> - <<if $barracks>><<set _mercCosts *= 0.5>><</if>> - <<if ($PC.warfare >= 100) || ($PC.career == "arcology owner")>><<set _mercCosts *= 0.5>><</if>> - <br>__Mercenary Expenses__: @@.yellowgreen;<<print cashFormat(_mercCosts)>>@@ - <<if $barracks>><<else>>//@@.red;Increased by the lack of a barracks.@@//<</if>> - <<if ($PC.warfare >= 100) || ($PC.career == "arcology owner")>>//Reduced by your @@.springgreen;mercenary contacts.@@//<</if>> - <<set _arcologyCosts += _mercCosts>> -<</if>> - -<<if $citizenRetirementMenials == 1>> - <br>__Menial Slave Retirement Premiums__: - <<if $CitizenRetirement == 1>> - <<set _citizenRetirementMenialsCost = $menials * 2>> - <<else>> - <<set _citizenRetirementMenialsCost = ($menials + $slaves.length) * 2>> - <</if>> - <<set _arcologyCosts += _citizenRetirementMenialsCost>> - @@.yellowgreen;<<print cashFormat(_citizenRetirementMenialsCost)>>@@ -<</if>> - -<<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>> - <</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>> - <<set _advertising = $clubAdsSpending>> - <<set _arcologyCosts += $clubAdsSpending>> - <</if>> - <br> - Club: @@.yellowgreen;<<print cashFormat(($club*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)+_advertising)>>@@ - <<set _arcologyCosts += ($club*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)+_advertising>> - <</if>> - <<if $arcade > 0>> - <br> - Arcade: @@.yellowgreen;<<print cashFormat((0.5*$arcade*$facilityCost)+(0.2*$arcadeUpgradeInjectors*$arcade*$facilityCost)+(0.2*$arcadeUpgradeCollectors*$arcade*$facilityCost))>>@@ - <<set _arcologyCosts += (0.5*$arcade*$facilityCost)+(0.2*$arcadeUpgradeInjectors*$arcade*$facilityCost)+(0.2*$arcadeUpgradeCollectors*$arcade*$facilityCost)>> - <</if>> - <<if $dairy > 0>> - <br> - Dairy: @@.yellowgreen;<<print cashFormat(($dairy*$facilityCost)+(0.2*$dairyFeedersUpgrade*$dairy*$facilityCost)+(0.1*$dairyPregUpgrade*$dairy*$facilityCost))>>@@ - <<set _arcologyCosts += ($dairy*$facilityCost)+(0.2*$dairyFeedersUpgrade*$dairy*$facilityCost)+(0.1*$dairyPregUpgrade*$dairy*$facilityCost)>> - <<if $bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren > 0>> - <br> - Additional maintenance for milking machines upgraded with biological components: @@.yellowgreen;<<print cashFormat(($bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren)*100)>>@@ - <<set _arcologyCosts += ($bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren)*100>> - <</if>> - <</if>> - <<if $farmyard > 0>> /*TODO: this will also need to be expanded*/ - <br> - Farmyard: @@.yellowgreen;<<print cashFormat($farmyard*$facilityCost)>>@@ - <<set _arcologyCosts += $farmyard*$facilityCost>> - <</if>> -<</if>> - -<<if ($servantsQuarters > 0 && $servantsQuartersUpgradeMonitoring > 0) || -$nursery > 0 || $masterSuiteUpgradePregnancy > 0 || $incubator > 0 || -($cyberMod != 0 && $researchLab.built == "true")>> -<br>__Penthouse Facility Maintenance__: - <<if ($servantsQuarters > 0) && ($servantsQuartersUpgradeMonitoring > 0)>> - <br> - Servants' Quarters: @@.yellowgreen;<<print cashFormat((0.2*$servantsQuartersUpgradeMonitoring*$servantsQuarters*$facilityCost))>>@@ - <<set _arcologyCosts += 0.2*$servantsQuartersUpgradeMonitoring*$servantsQuarters*$facilityCost>> - <</if>> - <<if $nursery > 0>> /*TODO: this will definitely need to be expanded to take into account the number of children and other factors*/ - <br> - Nursery: @@.yellowgreen;<<print cashFormat($nursery*$facilityCost)>>@@ - <<set _arcologyCosts += $nursery*$facilityCost>> - <</if>> - <<if ($masterSuiteUpgradePregnancy > 0)>> - <br> - Master Suite: @@.yellowgreen;<<print cashFormat(((500*$masterSuiteUpgradePregnancy) + (1000*$masterSuitePregnancyFertilitySupplements)))>>@@ - <<set _arcologyCosts += ((500*$masterSuiteUpgradePregnancy) + (1000*$masterSuitePregnancyFertilitySupplements))>> - <</if>> - <<if $incubator > 0>> - <br> - Incubation Facility: @@.yellowgreen;<<print cashFormat((10*$incubator*$facilityCost)+(0.2*$incubatorUpgradeWeight*$incubator*$facilityCost)+(0.2*$incubatorUpgradeMuscles*$incubator*$facilityCost)+(0.2*$incubatorUpgradeReproduction*$incubator*$facilityCost)+(0.2*$incubatorUpgradeGrowthStims*$incubator*$facilityCost)+(0.5*$incubatorUpgradeSpeed*$incubator*$facilityCost))>>@@ - <<set _arcologyCosts += (10*$incubator*$facilityCost)+(0.2*$incubatorUpgradeWeight*$incubator*$facilityCost)+(0.2*$incubatorUpgradeMuscles*$incubator*$facilityCost)+(0.2*$incubatorUpgradeReproduction*$incubator*$facilityCost)+(0.2*$incubatorUpgradeGrowthStims*$incubator*$facilityCost)+(0.5*$incubatorUpgradeSpeed*$incubator*$facilityCost)>> - <<if $incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting > 0>> - <br> Additional monitoring and maintenance costs for growing children: @@.yellowgreen;<<print cashFormat((($incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting+$incubatorGrowthStimsSetting)*500))>>@@ - <<set _arcologyCosts += (($incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting+$incubatorGrowthStimsSetting)*500)>> - <</if>> - <</if>> - <<if $cyberMod != 0 && $researchLab.built == "true">> - <br> - Research Lab: @@.yellowgreen;<<print cashFormat((100*$researchLab.maxSpace))>>@@ - <<set _arcologyCosts += 100*$researchLab.maxSpace>> - <<if $researchLab.hired != 0>><br> Scientists: @@.yellowgreen;<<print cashFormat((300*$researchLab.hired))>>@@ - <<set _arcologyCosts += 300*$researchLab.hired>> <</if>> - <<if $researchLab.menials != 0>><br>> Menial Slaves: @@.yellowgreen;<<print cashFormat((100*$researchLab.menials))>>@@ - <<set _arcologyCosts += 100*$researchLab.menials>> <</if>> - <</if>> -<</if>> - -/* security expansion */ -<<if $secExp > 0>> - <br><br> - <<if $edictsUpkeep + $SFSupportUpkeep > 0>> - __Edicts Upkeep__: @@.yellowgreen;<<print cashFormat($edictsUpkeep + $SFSupportUpkeep)>>@@ - <<set _arcologyCosts += ($edictsUpkeep + $SFSupportUpkeep)>> - <</if>> - <<if $propHub != 0 || $secHQ != 0 || $secBarracks != 0 || $riotCenter != 0>> - <br>__Security Apparatus Maintenance Costs__: - <<if $propHub != 0>> - <br> - Propaganda Hub: @@.yellowgreen;<<print cashFormat($propHubUpkeep)>>@@ - <<set _arcologyCosts += $propHubUpkeep>> - <</if>> - <<if $secHQ != 0>> - <br> - Security Headquarters: @@.yellowgreen;<<print cashFormat(($secHQUpkeep)+(20*$secMenials))>>@@ - <<set _arcologyCosts += ($secHQUpkeep)+(20*$secMenials)>> - <</if>> - <<if $secBarracks != 0>> - <br> - Barracks: @@.yellowgreen;<<print cashFormat($secBarracksUpkeep)>>@@ - <<set _arcologyCosts += $secBarracksUpkeep>> - <</if>> - <<if $riotCenter != 0>> - <br> - Riot Control Center: @@.yellowgreen;<<print cashFormat($riotUpkeep)>>@@ - <<set _arcologyCosts += $riotUpkeep>> - <</if>> - <</if>> - - <<if $soldierWages == 0>> - <<set _soldierMod = 1>> - <<elseif $soldierWages == 1>> - <<set _soldierMod = 1.5>> - <<else>> - <<set _soldierMod = 2>> - <</if>> - <<set _milTotal = 0, _slaveTotal = 0, _mercTotal = 0, _numItems = 0>> - <<if $militiaUnits.length > 0>> - <br>__Militia Platoons Upkeep__: - <<for _i = 0; _i < $militiaUnits.length; _i++>> - <br> - <i> <<print ordinalSuffix($militiaUnits.length-[_i])>>:</i> @@.yellowgreen;<<print cashFormat($militiaUnits[_i].troops*$soldierUpkeep * _soldierMod)>>@@ - <<set _milTotal += $militiaUnits[_i].troops*$soldierUpkeep * _soldierMod>> - <<set _numItems += 1>> - <</for>> - <br><br> ''Total: @@.yellowgreen;<<print cashFormat(_milTotal)>>@@'' - <</if>> - <<if $slaveUnits.length > 0>> - <br>__Slave Platoons Upkeep__: - <<for _i = 0; _i < $slaveUnits.length; _i++>> - <br> - <i> <<print ordinalSuffix($slaveUnits.length-[_i])>>:</i> @@.yellowgreen;<<print cashFormat($slaveUnits[_i].troops*$soldierUpkeep * 0.5 * _soldierMod)>>@@ - <<set _slaveTotal += $slaveUnits[_i].troops*$soldierUpkeep * 0.5 * _soldierMod>> - <</for>> - <br><br> ''Total: @@.yellowgreen;<<print cashFormat(_slaveTotal)>>@@'' - <</if>> - <<if $mercUnits.length > 0>> - <br>__Mercenary Platoons Upkeep__: - <<for _i = 0; _i < $mercUnits.length; _i++>> - <br> - <i> <<print ordinalSuffix($mercUnits.length-[_i])>>:</i> @@.yellowgreen;<<print cashFormat($mercUnits[_i].troops*$soldierUpkeep * 1.5 * _soldierMod)>>@@ - <<set _mercTotal += $mercUnits[_i].troops*$soldierUpkeep * 1.5 * _soldierMod>> - <</for>> - <br><br> ''Total: @@.yellowgreen;<<print cashFormat(_mercTotal)>>@@'' - <<if (_milTotal+_slaveTotal+_mercTotal) > 0>> - <br>__Total Defense Force Upkeep__: @@.yellowgreen;<<print cashFormat(_milTotal+_slaveTotal+_mercTotal)>>@@ - <<set _arcologyCosts += (_milTotal+_slaveTotal+_mercTotal)>> - <</if>> - <</if>> -<</if>> - -<<if $econWeatherDamage && $disasterResponse > 0>> - <<set _DRUUpkeep = Math.trunc($disasterResponse * 200000 / $localEcon)>> - <br>__Disaster Response Unit Expenses__: @@.yellowgreen;<<print cashFormat(_DRUUpkeep)>>@@ - <<set _arcologyCosts += _DRUUpkeep>> -<</if>> -<<if $antiWeatherFreeze > 0>> - <<set _AWFUpkeep = Math.trunc($antiWeatherFreeze * 200000 / $localEcon)>> - <br>__Passenger Upgrades Expenses__: @@.yellowgreen;<<print cashFormat(_AWFUpkeep)>>@@ - <<set _arcologyCosts += _AWFUpkeep>> -<</if>> -<<if $FSSpending != 0>> - <br>__Society Shaping Expenses__: @@.yellowgreen;<<print cashFormat($FSSpending)>>@@ - <<set _arcologyCosts += $FSSpending>> -<</if>> -<<if $Recruiter != 0>> - <br>__Recruiting Expenses__: @@.yellowgreen;<<print cashFormat(250)>>@@ - <<set _arcologyCosts += 250>> -<</if>> - -<<set _schoolPresent = 0, _schoolSubsidy = 0>> -<<if ($TSS.schoolPresent > 0)>> - <<set _school = "The Slavegirl School">> - <<set _schoolPresent = 1>> - <<if $TSS.subsidize != 0>> - <<set _schoolSubsidy = 1>> - <</if>> -<</if>> -<<if ($GRI.schoolPresent > 0)>> - <<set _school = "Growth Research Institute">> - <<set _schoolPresent = 1>> - <<if $GRI.subsidize != 0>> - <<set _schoolSubsidy = 1>> - <</if>> -<</if>> -<<if ($SCP.schoolPresent > 0)>> - <<set _school = "St. Claver Prepatory">> - <<set _schoolPresent = 1>> - <<if $SCP.subsidize != 0>> - <<set _schoolSubsidy = 1>> - <</if>> -<</if>> -<<if ($LDE.schoolPresent > 0)>> - <<set _school = "L'École des Enculées">> - <<set _schoolPresent = 1>> - <<if $LDE.subsidize != 0>> - <<set _schoolSubsidy = 1>> - <</if>> -<</if>> -<<if ($TGA.schoolPresent > 0)>> - <<set _school = "The Gymnasium-Academy">> - <<set _schoolPresent = 1>> - <<if $TGA.subsidize != 0>> - <<set _schoolSubsidy = 1>> - <</if>> -<</if>> -<<if ($HA.schoolPresent > 0)>> - <<set _school = "The Hippolyta Academy">> - <<set _schoolPresent = 1>> - <<if $HA.subsidize != 0>> - <<set _schoolSubsidy = 1>> - <</if>> -<</if>> -<<if ($TCR.schoolPresent > 0)>> - <<set _school = "The Cattle Ranch">> - <<set _schoolPresent = 1>> - <<if $TCR.subsidize != 0>> - <<set _schoolSubsidy = 1>> - <</if>> -<</if>> -<<if ($TFS.schoolPresent > 0)>> - <<set _school = "The Futanari Sisters">> - <<set _schoolPresent = 1>> - <<if $TFS.subsidize != 0>> - <<set _schoolSubsidy = 1>> - <</if>> -<</if>> - -<<if _schoolPresent > 0>> -<<if _school == "Growth Research Institute">> - <br> - __<<print _school>> Subsidiary Lab Upkeep__: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <<set _arcologyCosts += 1000>> - <<if _schoolSubsidy > 0>> - <br> - __<<print _school>> Subsidiary Lab Influence__: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <</if>> -<<elseif _school == "The Cattle Ranch">> - <br> - __<<print _school>> Local Pasture Upkeep__: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <<set _arcologyCosts += 1000>> - <<if _schoolSubsidy > 0>> - <br> - __<<print _school>> Local Pasture Influence__: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <</if>> -<<elseif _school == "The Futanari Sisters">> - <br> - __<<print _school>> Community Upkeep__: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <<set _arcologyCosts += 1000>> - <<if _schoolSubsidy > 0>> - <br> - __<<print _school>> Community Influence__: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <</if>> -<<else>> - <br> - __<<print _school>> Branch Campus Upkeep__: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <<set _arcologyCosts += 1000>> - <<if _schoolSubsidy > 0>> - <br> - __<<print _school>> Branch Campus Influence__: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <</if>> -<</if>> -<</if>> - -<<if $alwaysSubsidizeGrowth > 0 || $alwaysSubsidizeRep > 0 || $RegularParties > 0>> - <br>__Weekly Costs__: - <<if $alwaysSubsidizeGrowth > 0>> - <br> Arcology Growth Subsidy: @@.yellowgreen;<<print cashFormat($policyCost)>>@@ - <<set _arcologyCosts += $policyCost>> - <</if>> - <<if $alwaysSubsidizeRep > 0>> - <br> Self-promotion Budget: @@.yellowgreen;<<print cashFormat($policyCost)>>@@ - <<set _arcologyCosts += $policyCost>> - <</if>> - <<if $RegularParties > 0>> - <br> Social Gatherings: @@.yellowgreen;<<print cashFormat($policyCost)>>@@ - <<set _arcologyCosts += $policyCost>> - <</if>> -<</if>> - -<<if $ProImmigrationCash == 1>> - <br> Pro-immigration Promotion Budget: @@.yellowgreen;<<print cashFormat($policyCost)>>@@ - <<set _arcologyCosts += $policyCost>> -<</if>> -<<if $AntiEnslavementCash == 1>> - <br> Anti-enslavement Charity Budget: @@.yellowgreen;<<print cashFormat($policyCost)>>@@ - <<set _arcologyCosts += $policyCost>> -<</if>> - -<<if $CoursingAssociation == 1>> - <br> Coursing Association Membership: @@.yellowgreen;<<print cashFormat(1000)>>@@ - <<set _arcologyCosts += 1000>> -<</if>> - -<br><br> - -''Overall Arcology Costs:'' @@.yellowgreen;<<print cashFormat(_arcologyCosts)>>@@ - -<br><br> - <<set _total = 0>> <<set _SL = $slaves.length>> <<for $i = 0; $i < _SL; $i++>> <<set _individualCosts = 0>> -- GitLab