Get started
This module takes the strength of two armies, one aggressor and another defender, and calculates the level of destruction of the defenders' city. The destructive effect over the defenders' city is proportional to the two contending strengths and a constant rate per unit of strength of the aggress...
This module takes the strength of two armies, one aggressor and another defender, and calculates the level of destruction of the defenders' city. The destructive effect over the defenders' city is proportional to the two contending strengths and a constant rate per unit of strength of the aggressor matched by the defender.
Name | Type | Description |
---|---|---|
greeks-strength, GREEKS_STRENGTH | integer | The strength of the Greek army (attackers), measured in number of soldiers, units, etc. |
trojans-strength, TROJANS_STRENGTH | integer | The strength of the Trojan army (defenders), measured in number of soldiers, units, etc. |
destruction-rate, DESTRUCTION_RATE | float | The rate of destruction per unit of attacker strength |
init-troy-health, TROY_HEALTH | float | The general state of the defenders city, measured in population, structures, etc. |
Name | Type | Description |
---|---|---|
troy-health, health, City.health | float | The general state of the defenders city, measured in population, structures, etc. |