aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/simulation/calculations.yaml21
1 files changed, 19 insertions, 2 deletions
diff --git a/docs/simulation/calculations.yaml b/docs/simulation/calculations.yaml
index 9d55a6a..6a74a7d 100644
--- a/docs/simulation/calculations.yaml
+++ b/docs/simulation/calculations.yaml
@@ -182,5 +182,22 @@ Scores:
floor(n_workers_in_state / 100): Hardcoded number step.
400: Hardcoded value.
n_workers_in_state: Total size of worker POPs in state (employed or not).
- sum_workforce_in_state: Sum of factory level * workforce, defined in /common/production_types.txt.
- else: 0 \ No newline at end of file
+ sum_workforce_in_state: Sum of (factory level * workforce), defined in /common/production_types.txt.
+ else: 0
+ Military power:
+ formula: soldier & army score + capital ship score + leaders score
+ soldier & army score:
+ formula: disarmed penalty * regular army size * supply consumption * sum unit stats / (7 * (1 + n_unit_types))
+ disarmed penalty:
+ if is_disarmed: defines.diplomacy.DISARMAMENT_ARMY_HIT
+ else: 1
+ regular army size: min(4 * number of deployed non-mobilised regiments, possible regiment count)
+ supply consumption: From army tab, not unit types.
+ sum unit stats: Sum of ((attack + defence + land_attack_modifier + land_defense_modifier) * discipline) for each land unit type (including locked).
+ n_unit_types: Number of land unit types (including locked).
+ 7*: Hardcoded value.
+ capital ship score:
+ formula: sum ship stats / 250
+ sum ship stats: Sum of ((hull + naval_defense_modifier) * (gun_power + naval_attack_modifier)) for each capital ship instance.
+ /250: Hardcoded value.
+ leader score: min(number of generals, number of deployed non-mobilised regiments) \ No newline at end of file