Township: Difference between revisions

66 bytes removed ,  4 October 2023
→‎Repairing Buildings: Tweaked Repair Cost formula
(→‎Repairing Buildings: Updated which buildings do not degrade)
(→‎Repairing Buildings: Tweaked Repair Cost formula)
Line 33: Line 33:
-->The repair cost of a building depends on the cost of constructing the building (after any building cost reducing bonuses), the building's efficiency, and any increased or decreased repair cost bonuses, where each {{TownshipIcon|Market}} built decreases the repair cost by 0.25%. The minimum repair cost is 1 resource. The repair cost of a building can be calculated as follows:
-->The repair cost of a building depends on the cost of constructing the building (after any building cost reducing bonuses), the building's efficiency, and any increased or decreased repair cost bonuses, where each {{TownshipIcon|Market}} built decreases the repair cost by 0.25%. The minimum repair cost is 1 resource. The repair cost of a building can be calculated as follows:


<math>\text{Repair Cost} = \frac{\text{Base Building Cost}}{3} \times \text{Buildings Built} \times \left ( 1 + \frac{\text{Building Cost %}}{100} \right ) \times \left ( 1 + \frac{\text{Repair Cost %}}{100} \right ) \times \left ( 1 - \frac{\text{Building Efficiency %}}{100} \right )</math>
<math>\text{Repair Cost} = \frac{\text{Base Building Cost}}{3} \times \text{Buildings Built} \times \left ( 1 - \frac{\text{Building Cost Reduction %}}{100} \right ) \times \left ( 1 + \frac{\text{Repair Cost %}}{100} \right ) \times \left ( 1 - \frac{\text{Building Efficiency %}}{100} \right )</math>


Where:
Where:
* '''Buildings Built''' is the number of buildings currently built within the biome in which the repair is taking place
* '''Buildings Built''' is the number of buildings currently built within the biome in which the repair is taking place
* '''Building Cost %''' is the result of <math>\text{Increased Building Cost - Decreased Building Cost}</math>, capped at -80%
* '''Building Cost Reduction %''' is capped at 80%
* '''Repair Cost %''' is the result of <math>\text{Increased Repair Cost - Decreased Repair Cost}</math>
* '''Repair Cost %''' is the result of <math>\text{Increased Repair Cost - Decreased Repair Cost}</math>
* '''Building Efficiency''' is the current building efficiency percentage which can be found in the top left corner of the building
* '''Building Efficiency''' is the current building efficiency percentage which can be found in the top left corner of the building
457

edits