Web API: add colony-wide stats (power, workers, housing, unity, computing, maint

New content Quality of life Modding
Grant [ideas] · 1 hour ago

The web API exposes product stats, but not the other numbers players balance by: electricity generation versus consumption, workers versus needed, housing, food and water, unity, computing, maintenance, pollution and radiation, and loans with their limits.

Suggestion: read-only routes (or one route with a series parameter, like products/history) that return the current values and monthly history of these. The in-game statistics windows already show them.

Why:

  • Power and worker shortages are the usual hidden cause of a stalled factory. Logging them next to product stats makes cause and effect visible.

Together with a read-only entities route (https://coigame.com/Topic/21211) this would let tools explain why a machine is idle, not only that it is.

Thanks again for the web API.

3 Showing 1–1 of 1