Population

== Population ==
Population information can be viewed in your Affairs of the State page.
===Maximum Population===
The maximum population of a province is the total amount of units. peasants, thieves and wizards your province can hold.
 Raw Living Space = ((Built Land + Land in progress) * 25) + (Barren Land * 15) + (Homes * Homes Capacity) 
 
 Modified Living Space = Raw Living Space * Race Bonus * Population Science * Honor Population Bonus
Note
*Honor Bonuses are calculated as 1 + (Personality Mod * Honor Bonus)
===Current Total Population===
The current total population is the combined number of units. peasants, thieves and wizards that currently exist in your province. Units in training and in armies away from home count towards population while prisoners and war horses do not count as part of the population.
 Current Total Population = Peasants + Soldiers + Off Specs + Off Specs in Training + Def Specs + Def Specs in Training 
 + Elites + Elites in Training + Thieves + Thieves in Training + Wizards
== Overpopulation ==
Overpopulation occurs when your Current Total Population exceeds your Maximum Population. 
Overpopulation can cause military units to desert a province and so is often used in War. Heavily overpopulating a province by removing a lot of its land or population space from buildings can trigger effects that will limit a province's effectiveness. The below effects of overpopulation are cumulative as the % of overpopulation increases. 
=== Level 1: Population Exceeds Max Population (a.k.a Peasant Desertion) ===
When your current total population is larger than your max population, your peasants will start to leave and no new peasants will be born.
*Peasants leave at a rate of 10% of total peasants or the amount you are overpopulated by, whichever of the two is lower.
*The minimum number of peasants that will leave is 10 per tick.
=== Level 2: Population exceeds Max Population by 15% (a.k.a. Military Desertion) ===
When your current total population is more than 15% larger than you max population, everything in Level 1 will occur. In addition, your army refuse to attack and your troops, including thieves, begin to desert. 
*Desertions scale up to a max of ~5.8% of total military population per tick (when extremely overpopulated).
*Desertions due to overpopulation will remove soldiers at home first, up to a maximum of 100% of the total desertions.
*All troops, except soldiers at home, desert at approximately the same rate. Non-soldier troops deseret at the same rate regardless of whether they are at home or out on an attack. (i.e. same % of offensive specs, defensive specs, and elites will desert). Soliders away with armies also desert at this rate.
*Deserting troops will fill dungeons first, if any space is available, before being completely lost.
*Once you have 0 soldiers, deserting troops are calculated one unit type at a time (offensive specs, defensive specs, elites), so it is possible for the deserting troop % of offensive specs, defensive specs, and elites to not be the equivalent.
==Level 3: Population exceeds Max Population by 30% (a.k.a. Rioting)==
When your current total population is larger than you max population by 30%, everything in Level 1 & 2 will occur and in addition, your peasants will riot.
*Your income is reduced by 50%.
==Level 4: Population exceeds Max Population by 40% (a.k.a. Thieves on Strike)==
When your current total population is larger than you max population by 40%, everything in Level 1, 2, & 3 will occur and in addition, your thieves will refuse to work.
*Cannot perform any Thievery Operations.
==Extra Effect: Military Population Exceeds Max Population (a.k.a Military on Strike)==
When your current military population is larger than you max population, your army will refuse to attack. 
This is separate from the above levels, i.e. a province that is less than 115% overpopulated with more military than max population won't be able to attack. 
==== Example ====
a province has 10k max population and 200 peasants, 800 wizards and 10.4k military will not be in desertions, would have 11.4k total population and so be 114% overpopulated. 
It's military will refuse to attack, but no military desertions would happen. Peasants would still leave as they are in level 1 overpopulation.