Heat

Heat is one of the tribe's most prevalent concerns; it's a measure of how dangerous your tribe is perceived to be by other factions. Every month change, a den will be raided by each faction with which it has positive heat. The heat value determines the invasion strength (number of invaders).

Gaining Heat
Heat is gained through various actions, including:


 * Killing creatures (even factionless, but especially those belonging to a faction)
 * Butchering creatures belonging to a faction
 * Killing other kobolds
 * Butchering other kobolds
 * Engaging in cannibalism
 * Failing a negotiation check
 * Giving a gift with no or little value
 * Passively, after each invasion

Each tribe also has a soft heat cap which reduces heat gain to 20% when reached. This cap increases with each month.

Reducing Heat
Heat reduction depends on the faction, but there are a few actions that will reduce heat for most intelligent factions:


 * Giving a gift with sufficient value
 * Succeeding a negotiation check
 * Burying a dead kobold
 * Completing Cultural Expansion research
 * Building Marble Statues (one-time reduction of 10, and passive reduction of 5 per month)
 * Defeating a Goblin Boss (though this massively increases the soft heat cap)

Invasion
At the end of each month, an invasion will occur once for each faction with which a tribe has heat above 0. The tribe's defenses will be put to the test, and if they aren't up to snuff, the tribe may suffer heavy loss. Note that if the heat for a faction is at 0 or below, that faction will not invade, and their heat will not increase passively either.

The following steps are carried out with each invasion in this order:


 * 1) Invasion strength is calculated - heat is multiplied by a random number between 0.8 and 1.2.
 * 2) If there is not enough space for all kobolds in the den to sleep, a random selection of them equal to the difference between used and available space will take a random amount of damage between 1 and the invasion strength. After the first couple of months, this will almost certainly kill the targets.
 * 3) The invasion strength is compared against the den's base defense (from buildings). If the strength does not exceed the defense, the attack ends here.
 * 4) 1 point of damage for each point of strength greater than base defense is distributed randomly as damage among the den's watchmen. Then, the total defense value of all watchmen is added to the base defense and the strength is checked against it again. If the strength does not exceed the updated defense value, the attack ends here.
 * 5) If the invasion gets to this point, the total defense is subtracted from the total invasion strength, and the following occurs once for each point remaining:
 * One of three targets is selected with equal probability: Items, Buildings, or Kobolds.
 * If a building is chosen, a random building will take damage. The building will become nonfunctional and progress will be reduced (from full) by a small amount. The building will need to be completed again to become usable. If there are no buildings to target, proceed to Items.
 * If an item is chosen, a random item in storage is lost (destroyed). If there are no more items in storage, proceed to Kobolds.
 * If a kobold is chosen, a random kobold in the den (including watchmen) takes 2 damage. Damage is tallied and reported at the end of this process.

Once the invasion is over, heat will increase by an amount equal to ((current population size of the tribe) + (months this den has survived * 2)) * (1.5^(the number of other dens and camps within 2 tiles (taxicab distance) of this den)).