From 374ad365044bd0fe76fce79bebfc01aa3fe7e1bb Mon Sep 17 00:00:00 2001 From: wvpm <24685035+wvpm@users.noreply.github.com> Date: Sun, 1 Sep 2024 20:55:49 +0200 Subject: Military score calculation --- docs/simulation/calculations.yaml | 18 ++++++++++++++++-- 1 file 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 -- cgit v1.2.3-56-ga3b1 From df45a4a57187e39d0ee3356354f1b4e5caa4a448 Mon Sep 17 00:00:00 2001 From: wvpm <24685035+wvpm@users.noreply.github.com> Date: Mon, 2 Sep 2024 00:34:15 +0200 Subject: Corrected capital ship score --- docs/simulation/calculations.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/simulation/calculations.yaml b/docs/simulation/calculations.yaml index a0ba40f..baa8724 100644 --- a/docs/simulation/calculations.yaml +++ b/docs/simulation/calculations.yaml @@ -192,5 +192,8 @@ Scores: 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. + 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 -- cgit v1.2.3-56-ga3b1