aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-09-01 20:55:49 +0200
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-09-01 20:55:49 +0200
commit374ad365044bd0fe76fce79bebfc01aa3fe7e1bb (patch)
treeddbc2d6328f1b6437fc885fc7996fc72005b121c
parentcf8cc8f7af62498833d7b2a69b8a043552d220ee (diff)
Military score calculation
-rw-r--r--docs/simulation/calculations.yaml18
1 files changed, 16 insertions, 2 deletions
diff --git a/docs/simulation/calculations.yaml b/docs/simulation/calculations.yaml
index d8bd6a5..a0ba40f 100644
--- a/docs/simulation/calculations.yaml
+++ b/docs/simulation/calculations.yaml
@@ -178,5 +178,19 @@ 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: Sum of ((hull + naval_defense_modifier) * (gun_power + naval_attack_modifier)) for each capital ship instance.
+ leader score: min(number of generals, number of deployed non-mobilised regiments) \ No newline at end of file