4,688
edits
m (Use Template:TownshipIcon) |
(Updated Repair Cost formula for v1.2) |
||
Line 31: | Line 31: | ||
<!-- | <!-- | ||
See: Township.getSingleResourceRepairCostForBuilding, | See: Township.getSingleResourceRepairCostForBuilding, | ||
-->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 decreased repair cost bonuses, where each {{TownshipIcon|Market}} built decreases the repair cost by 0.25%. 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{ | <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> | ||
Where <math>\text{ | Where: | ||
* '''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% | |||
* '''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 | |||
=== Biomes === | === Biomes === |