Anonymous

Township: Difference between revisions

From Melvor Idle
442 bytes added ,  29 September 2023
Updated Repair Cost formula for v1.2
(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{Max Buildings} \times \left ( 1 - \frac{\text{Building Cost Reduction %}}{100} \right ) \times \left ( 1 - \frac{\text{Repair Cost Reduction %}}{100} \right )</math>
<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{Max Buildings}</math> is the maximum amount of that building that can be built within the biome in which the repair is taking place.
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 ===