Skip to content
Snippets Groups Projects
Commit cc182f1b authored by brickode's avatar brickode
Browse files

Costs budget screen formatting fixes

parent 87863d21
No related branches found
No related tags found
No related merge requests found
......@@ -2232,6 +2232,58 @@ window.Job = Object.freeze({
});
window.PersonalAttention = Object.freeze({TRADE: 'trading', WAR: 'warfare', SLAVING: 'slaving', ENGINEERING: 'engineering', MEDICINE: 'medicine', MAID: 'upkeep', HACKING: 'hacking'});
 
window.predictCost = function(array) {
var array2 = array;
var totalCosts = (
getBrothelCosts() +
getBrothelAdsCosts() +
getArcadeCosts() +
getClubCosts() +
getClubAdsCosts() +
getDairyCosts() +
getIncubatorCosts() +
getServantsQuartersCosts() +
getMasterSuiteCosts() +
getNurseryCosts() +
getFarmyardCosts() +
getSecurityExpansionCost() +
getLifestyleCosts() +
getFSCosts() +
getCitizenOrphanageCosts() +
getPrivateOrphanageCosts() +
getPeacekeeperCosts() +
getMercenariesCosts() +
getMenialRetirementCosts() +
getRecruiterCosts() +
getSchoolCosts() +
getPolicyCosts() +
getCyberModCosts() +
getPCTrainingCosts() +
getPCCosts() +
predictTotalSlaveCosts(array2)
);
//these two apply a multiplicative effect to all costs so far.
totalCosts = getEnvironmentCosts(totalCosts);
totalCosts = getPCMultiplierCosts(totalCosts);
//in the old order these were applied after multiplication. Not sure if deliberate, but I'm leaving it for now.
totalCosts += (
getSFCosts() +
getWeatherCosts()
);
totalCosts = Math.trunc(totalCosts);
/*
// clean up
if(totalCosts > 0) {
totalCosts = 0;
} else {
totalCosts = Math.ceil(totalCosts);
}
*/
return totalCosts;
};
window.getCost = function(array) {
var array2 = array;
var oldCash = State.variables.cash;
This diff is collapsed.
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