---
type: Task
status: TODO
---
# Building Plan Calculator

In general, resources are always produced by buildings. So by building buildings, you have more resources to build buildings a bit faster.

We want to consider every turn, to the last turn the player is on. So if we are on turn 60, we consider all turns between 1 and 60.

We need the income added every turn to a total pool, where appropriate. This pool gets subtracted from via build costs at the specific turn they are required, and any ongoing upkeep costs that occur every turn after said entity exists.

Store JSON of the build order of each building of when it's made.

Store Gold values over time. Table out the stored gold total for every turn that exists, such as the 1 to 60 example.

So to represent this, make a build order class that has an id to and item, and a built at time and a built finish time. The built finish time will be calculated when a stored required industry value, starting with the cost industry and then subtracted by the total income industry reaches a zero cutoff.


![[Building Calculator]]



![[Building Stats Reference]]




