Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
macaronideath
fc-pregmod
Commits
cc182f1b
Commit
cc182f1b
authored
6 years ago
by
brickode
Browse files
Options
Downloads
Patches
Plain Diff
Costs budget screen formatting fixes
parent
87863d21
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devNotes/twine JS.txt
+52
-0
52 additions, 0 deletions
devNotes/twine JS.txt
src/uncategorized/costsBudget.tw
+555
-247
555 additions, 247 deletions
src/uncategorized/costsBudget.tw
with
607 additions
and
247 deletions
devNotes/twine JS.txt
+
52
−
0
View file @
cc182f1b
...
...
@@ -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.
Click to expand it.
src/uncategorized/costsBudget.tw
+
555
−
247
View file @
cc182f1b
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment