Anonymous

Township: Difference between revisions

From Melvor Idle
510 bytes added ,  30 October 2022
Formatting & correction of population formulas
mNo edit summary
(Formatting & correction of population formulas)
Line 14: Line 14:
Population is the most important resource in Township - without it, the skill produces nothing and earns no experience. Population cap is gained by building {{BuildingIcon|Basic Shelter}}, spending ticks will cause population to increase until it reaches the cap.
Population is the most important resource in Township - without it, the skill produces nothing and earns no experience. Population cap is gained by building {{BuildingIcon|Basic Shelter}}, spending ticks will cause population to increase until it reaches the cap.


*Experience in township is earned based on the following formula:  
Experience in Township earned per tick is given by the following formula:
<math>max\left(\tfrac{1 + \text{Happiness %}}{100}\right) * (\text{Population} * \text{0.01}) * (\text{Tick Length} * \text{0.01})</math>


*Population Gain Rate Formula:
<math>\text{Base Experience} = \max \left (1 + \frac{\text{Happiness %}}{100} \times \frac{\text{Population}}{100} \times \frac{\text{Tick Length}}{10}, 1 \right )</math>
= Math.ceil(((0.05 * this.populationLimit) / 100) * (this.TICK_LENGTH / 10));


*Population Gain Chance Formula:
Where <math>\text{Tick Length} = 300</math>, being the number of seconds taken to gain a tick.
= .4 - this.currentPopulation / this.populationLimit
 
The chance of gaining additional population when advancing one tick is given by the following formula:
 
<math>\text{Population Gain Chance} = \max \left (1.4 - \frac{\text{Current Population}}{\text{Population Limit}}, 1 \right )</math>
 
If the roll for gaining population succeeds, the amount of population gained is given by the following formula:
 
<math>\text{Population Gain Rate} = \min \left (\left \lceil \frac{\text{Population Limit}}{2000} \times \frac{\text{Tick Length}}{10} \right \rceil, \text{Population Limit} - \text{Current Population} \right )</math>


====Workers====
====Workers====