Reworking: `economyJS.js` to track and subtract slave upkeep per assignment, `costsBudget.js` to display more details and redo the ordering of displayed stats, 'Facility Sheets' to use `cashX()` system.

Here I will make threads to detail the work I'm doing on this.

  1. Rework economyJS.js to be more granular in the categories it tracks.
    1. Rework slave income and upkeep to be tracked on an assignment basis.
    2. Rework the various saAssignment.js files to track and add slave income per assignment
    3. Rework minorInjuryResponse.js to use this new per assignment based tracking.
    4. Rework prosthetic lab to differentiate between facility and different types of staff upkeep.
    5. Rework menial slave income to differentiate between profit from selling and weekly labor income.
    6. Rework Incubator to differentiate between standard upkeep, and slaves in incubator cost.
    7. Rework policies and edicts to also differentiate between the different policies.
    8. Rework ExtraMilk to track per assignment for display, not just penthouse.
    9. Make bribes for avoiding week end combat actually subtract money and be tracked.
  2. Rework 'costsBudget.js to display more details and redo the ordering of displayed stats
    1. Figure this out so that I can rework costsBudget.js the way I want to.
    2. Return F (facility object) somewhere so that this starts working, so that it can display the tracked facility totals.
    3. Find a way to calculate generateRowTracking() before generateRowShowTotals(), but display the latter first.
    4. Rework the color flipping system so it works nicely again. Perhaps rework the way it displays 'facility blocks' entirely to use some preset coloring with other preset coloring between blocks.
    5. Look into a nice way to implement the weather damage message.
    6. Implement the hiding of tracked categories when desired, gonna try @Arkerthan system for that.
  3. Rework 'Facility Sheets' to use cashX() system.
    1. Investigate whether I need to make F a global for this, and how I would go about doing so.
    2. Consider if I should run costsBudget.js on week end to generate these stats, or calculate them a different way, while still using cashX().
    3. Gather totals inside economyJS.js.
Edited by i107760