-
- Downloads
Rework saGetMilked.
1. Accept the facility multiplier as a parameter instead of using $servantMilkersMultiplier. 2. Return a results object containing all the necessary information instead of using $milk, $milkSale, $cum, $cumSale, $fluid, and $fluidSale. This also means we have an invariant return type between preview and execution modes, which things much easier from a type-safety perspective (i.e. we don't have to jump through as many hoops to make TS happy). 3. Merge logic between text and calculation. Reduce the structural impact of preview mode; it's OK to generate and return text that we're not going to use.
Showing
- devTools/javaSanityCheck/ignoredVariables 0 additions, 2 deletionsdevTools/javaSanityCheck/ignoredVariables
- js/003-data/gameVariableData.js 0 additions, 6 deletionsjs/003-data/gameVariableData.js
- src/endWeek/masterSuiteReport.js 4 additions, 7 deletionssrc/endWeek/masterSuiteReport.js
- src/endWeek/saGetMilked.js 317 additions, 406 deletionssrc/endWeek/saGetMilked.js
- src/endWeek/servantsQuartersReport.js 7 additions, 8 deletionssrc/endWeek/servantsQuartersReport.js
- src/js/slaveCostJS.js 3 additions, 3 deletionssrc/js/slaveCostJS.js
- src/uncategorized/arcadeReport.tw 3 additions, 5 deletionssrc/uncategorized/arcadeReport.tw
- src/uncategorized/dairyReport.tw 4 additions, 3 deletionssrc/uncategorized/dairyReport.tw
- src/uncategorized/fullReport.tw 5 additions, 7 deletionssrc/uncategorized/fullReport.tw
- src/uncategorized/saRules.tw 20 additions, 40 deletionssrc/uncategorized/saRules.tw
Loading
Please register or sign in to comment