aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-09-04 00:42:32 +0200
committer GitHub <noreply@github.com>2024-09-04 00:42:32 +0200
commit0e72892a4b170a92982712ecfd871c3a1b976375 (patch)
tree4da84ca785c8403170a44dd78ffd8e6304f09427 /docs
parentcf8cc8f7af62498833d7b2a69b8a043552d220ee (diff)
parentdf45a4a57187e39d0ee3356354f1b4e5caa4a448 (diff)
Merge pull request #257 from OpenVicProject/document_military_score
Military score calculation
Diffstat (limited to 'docs')
-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 d8bd6a5..baa8724 100644
--- a/docs/simulation/calculations.yaml
+++ b/docs/simulation/calculations.yaml
@@ -178,5 +178,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