# Author(s): AngriestBird, Simone # Improved by KyCb(rockon) #garrison garrison_generic = { role = garrison upgrade_prio = { factor = 0 modifier = { add = 5 ai_has_role_template = garrison } } Militia_garrison = { reinforce_prio = 0 custom_icon = 7 upgrade_prio = { factor = 1 modifier = { factor = 2 num_of_military_factories < 3 } modifier = { factor = 0 OR = { is_major = yes num_of_military_factories > 3 } } } enable = { NOT = { OR = { num_of_military_factories > 10 is_major = yes tag = SOV tag = USA tag = CHI tag = GER tag = FRA tag = ENG tag = SPR tag = ITA tag = BRA tag = MEX tag = POR tag = RAJ tag = PAK tag = UKR tag = ALN } } NOT = { original_tag = ZOM } has_game_rule = { rule = rule_god_of_war option = no } } target_template = { regiments = { Militia_Bat = 4 } } target_min_match = 0.5 } L_Inf_gar = { reinforce_prio = 0 upgrade_prio = { factor = 1 modifier = { factor = 2 num_of_military_factories > 4 } modifier = { factor = 0 num_of_military_factories < 5 } } enable = { NOT = { OR = { num_of_military_factories > 20 is_major = yes tag = SOV tag = USA tag = CHI tag = GER tag = FRA tag = ENG tag = SPR tag = ITA tag = BRA tag = MEX tag = POR tag = RAJ tag = PAK tag = ALN } } NOT = { original_tag = ZOM } has_game_rule = { rule = rule_god_of_war option = no } } target_min_match = 0.5 target_template = { regiments = { L_Inf_Bat = 6 } } } } #Militia Militia_generic = { role = Militia upgrade_prio = { factor = 1 modifier = { factor = 5 has_civil_war = yes } modifier = { factor = 0 has_civil_war = no } } Militia_generic = { reinforce_prio = 0 upgrade_prio = { factor = 1 modifier = { add = 1 num_of_military_factories < 4 } modifier = { factor = 0 OR = { has_war = no num_of_military_factories > 3 is_major = yes has_idea = NATO_member is_sco = yes } } } enable = { NOT = { OR = { has_war = no num_of_military_factories > 3 is_major = yes has_idea = NATO_member is_sco = yes tag = ALN } } NOT = { original_tag = ZOM } has_game_rule = { rule = rule_god_of_war option = no } } target_min_match = 0.6 target_template = { regiments = { Militia_Bat = 12 } } } militia_artillery_brigade = { reinforce_prio = 0 upgrade_prio = { factor = 1 modifier = { add = 1 num_of_military_factories < 5 } modifier = { factor = 2 has_civil_war = yes } modifier = { factor = 0 OR = { has_war = no num_of_military_factories > 9 is_major = yes has_idea = NATO_member is_sco = yes } } } enable = { NOT = { original_tag = ZOM } NOT = { OR = { has_idea = NATO_member tag = ALN } } is_major = no is_sco = no OR = { has_war = yes num_of_military_factories < 10 } has_game_rule = { rule = rule_god_of_war option = no } } target_min_match = 0.6 target_template = { regiments = { Militia_Bat = 6 Arty_Bat = 6 } support = { Arty_Battery = 1 } } } Mot_Militia_generic = { reinforce_prio = 0 upgrade_prio = { factor = 1 modifier = { add = 15 has_civil_war = yes } modifier = { factor = 0 OR = { num_of_military_factories > 7 has_war = no is_major = yes has_idea = NATO_member is_sco = yes } } } enable = { NOT = { original_tag = ZOM } NOT = { OR = { num_of_military_factories > 7 has_war = no is_major = yes has_idea = NATO_member is_sco = yes tag = ALN } } has_game_rule = { rule = rule_god_of_war option = no } } target_min_match = 0.6 target_template = { regiments = { Mot_Militia_Bat = 8 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 Arty_Battery = 1 Sniper_company = 1 } } } } #Light Infantry L_Inf_generic = { role = L_Inf upgrade_prio = { factor = 1.8 modifier = { factor = 150 surrender_progress > 0.50 } } L_Inf_emergency_brigade = { reinforce_prio = 2 upgrade_prio = { factor = 20 } enable = { NOT = { original_tag = ZOM } NOT = { original_tag = ALN } has_war = yes has_equipment = { infantry_weapons_type > 999 } OR = { has_equipment = { cnc_equipment_type < 500 } has_equipment = { L_AT_Equipment < 200 } has_equipment = { AA_Equipment < 200 } has_equipment = { util_vehicle_type < 400 } } has_game_rule = { rule = rule_god_of_war option = no } } target_min_match = 0.5 target_template = { regiments = { L_Inf_Bat = 6 } } } L_Inf_brigade = { reinforce_prio = 0 upgrade_prio = { factor = 1 modifier = { add = 5 surrender_progress > 0.50 } modifier = { add = 10 any_enemy_country = { strength_ratio = { tag = ROOT ratio > 0.75 } } } modifier = { add = -10 OR = { num_of_military_factories > 7 has_equipment = { infantry_weapons_type < 100 } is_major = yes } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories < 8 is_major = no has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.5 target_template = { regiments = { L_Inf_Bat = 11 } regimental_support = { AT_company = 3 Arty_Battery = 3 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 Arty_Battery = 1 } } } L_Inf_artillery_brigade = { reinforce_prio = 0 upgrade_prio = { factor = 1 modifier = { add = 5 surrender_progress > 0.50 } modifier = { add = 10 any_enemy_country = { strength_ratio = { tag = ROOT ratio > 0.75 } } } modifier = { add = -10 OR = { has_equipment = { infantry_weapons_type < 100 } num_of_military_factories > 15 num_of_military_factories < 7 AND = { surrender_progress < 0.50 is_major = yes } } } } enable = { NOT = { original_tag = ZOM } OR = { AND = { num_of_military_factories < 16 num_of_military_factories > 6 } AND = { surrender_progress < 0.50 is_major = yes } } has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.5 target_template = { regiments = { L_Inf_Bat = 6 Arty_Bat = 6 } regimental_support = { AT_company = 2 Arty_Battery = 2 AA_company = 2 Combat_engineer_company = 2 } } } } #Light Marines marines_generic = { role = marines upgrade_prio = { factor = 0.9 } light_marine_brigades = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 0 num_of_military_factories > 5 } modifier = { factor = 0 num_of_naval_factories < 1 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories < 5 num_of_naval_factories > 0 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.8 target_template = { regiments = { L_Marine_Bat = 11 } regimental_support = { AT_company = 3 Arty_Battery = 3 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 } } } marine_commando_division = { reinforce_prio = 2 upgrade_prio = { factor = 2 modifier = { factor = 0 OR = { has_idea = minor_power has_idea = non_power num_of_military_factories < 15 } } modifier = { factor = 0 num_of_naval_factories < 1 } } enable = { NOT = { original_tag = ZOM } num_of_naval_factories > 0 num_of_military_factories > 14 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.8 target_template = { regiments = { L_Marine_Cdo_Bat = 16 } regimental_support = { AT_company = 4 Weapons_company = 4 } support = { combat_service_support_company = 1 H_Engi_Comp = 1 } } } mot_marines_brigades = { reinforce_prio = 2 upgrade_prio = { factor = 2 modifier = { factor = 0 num_of_naval_factories < 1 } modifier = { factor = 0 num_of_military_factories < 6 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 5 num_of_naval_factories > 0 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } replace_at_match = 0.8 replace_with = mot_marines_division can_upgrade_in_field = { always = yes } target_min_match = 0.5 target_template = { regiments = { Mot_Marine_Bat = 8 } regimental_support = { Mot_AT_company = 2 Arty_Battery = 2 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 Arty_Battery = 1 Sniper_company = 1 } } } mot_marines_division = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 0 OR = { has_idea = minor_power has_idea = non_power num_of_military_factories < 12 } } modifier = { factor = 0 num_of_naval_factories < 1 } } enable = { NOT = { original_tag = ZOM } num_of_naval_factories > 0 num_of_military_factories > 11 num_of_military_factories < 25 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.7 target_template = { regiments = { Mot_Marine_Bat = 16 } regimental_support = { armor_Comp = 4 attack_helo_comp = 4 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 SP_AA_Battery = 1 } } } mech_marines_brigade = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 2 num_of_military_factories > 11 } modifier = { factor = 0 num_of_military_factories > 20 } modifier = { factor = 0 num_of_military_factories < 10 } modifier = { factor = 0 num_of_naval_factories < 1 } } enable = { NOT = { original_tag = ZOM } num_of_naval_factories > 0 num_of_military_factories > 9 num_of_military_factories < 21 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.8 target_template = { regiments = { Mech_Marine_Bat = 8 } regimental_support = { armor_Comp = 2 attack_helo_comp = 2 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 SP_AA_Battery = 1 Sniper_company = 1 } } } armored_marines_brigade = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 2 num_of_military_factories > 19 } modifier = { factor = 0 num_of_military_factories < 15 } modifier = { factor = 0 num_of_naval_factories < 1 } } enable = { NOT = { original_tag = ZOM } num_of_naval_factories > 0 num_of_military_factories > 14 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.8 target_template = { regiments = { Arm_Marine_Bat = 8 } regimental_support = { armor_Comp = 2 attack_helo_comp = 2 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 SP_AA_Battery = 1 Sniper_company = 1 } } } } #Special Forces Special_Forces_generic = { role = Special_Forces upgrade_prio = { factor = 1.2 } Special_Forces_generic = { reinforce_prio = 2 upgrade_prio = { factor = 2 modifier = { factor = 0 num_of_military_factories < 5 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 4 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } replace_at_match = 0.8 replace_with = special_forces_division can_upgrade_in_field = { always = yes } target_min_match = 0.4 target_template = { regiments = { Special_Forces = 7 } regimental_support = { AT_company = 2 Weapons_company = 2 } support = { combat_service_support_company = 1 } } } special_forces_division = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 0 OR = { has_idea = minor_power has_idea = non_power num_of_military_factories < 10 } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 10 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.6 target_template = { regiments = { Special_Forces = 13 } regimental_support = { AT_company = 4 Weapons_company = 4 } support = { combat_service_support_company = 1 } } } } #Air Assault Helicopters Air_heli_generic = { role = Air_helicopters upgrade_prio = { factor = 1 modifier = { factor = 1.5 num_of_military_factories > 20 } } air_assault_brigade = { reinforce_prio = 2 upgrade_prio = { factor = 2 modifier = { factor = 0 num_of_military_factories < 8 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 7 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } replace_at_match = 0.8 replace_with = air_assault_division can_upgrade_in_field = { always = yes } target_min_match = 0.5 target_template = { regiments = { L_Air_assault_Bat = 12 } } } air_assault_division = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 0 num_of_military_factories < 15 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 14 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.6 target_template = { regiments = { L_Air_assault_Bat = 22 } } } attack_helicopter_brigade = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 0 num_of_military_factories < 21 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 20 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.6 target_template = { regiments = { attack_helo_bat = 8 L_Air_assault_Bat = 6 } regimental_support = { air_assault_Arty_Battery = 4 } support = { helicopter_combat_service_support = 1 communications_company = 1 } } } } #Mech Paratroopers Air_mech_generic = { role = Air_mech upgrade_prio = { factor = 0.6 } Air_Mech_generic = { upgrade_prio = { factor = 1 modifier = { factor = 0 OR = { num_of_military_factories > 15 num_of_military_factories < 10 } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories < 16 num_of_military_factories > 9 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.6 target_template = { regiments = { Mech_Air_Inf_Bat = 9 } regimental_support = { Mech_Recce_Comp = 3 Mot_AT_company = 3 } } } Air_Arm_generic = { upgrade_prio = { factor = 1 modifier = { factor = 0 OR = { has_idea = minor_power has_idea = non_power num_of_military_factories < 16 } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 15 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.6 target_template = { regiments = { Arm_Air_Inf_Bat = 9 } regimental_support = { Arm_Recce_Comp = 3 Mot_AT_company = 3 } } } } #Motorized Infantry infantry_generic = { role = infantry upgrade_prio = { factor = 1.2 modifier = { factor = 1.5 num_of_military_factories > 7 num_of_military_factories < 16 } } infantry_generic = { upgrade_prio = { factor = 1 modifier = { factor = 0 num_of_military_factories > 7 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories < 8 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.6 target_template = { regiments = { Mot_Inf_Bat = 8 } regimental_support = { Mot_Recce_Comp = 4 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 Sniper_company = 1 Arty_Battery = 1 } } } infantry_artillery_brigade = { upgrade_prio = { factor = 1.5 modifier = { factor = 0 OR = { num_of_military_factories < 8 num_of_military_factories > 15 } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 7 num_of_military_factories < 16 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.6 target_template = { regiments = { Mot_Inf_Bat = 6 Arty_Bat = 4 } regimental_support = { Arty_Battery = 2 } support = { Arty_Battery = 1 } } } } #Mechanized Generic - Related to APC (SP Rocket Arty) APC_generic = { role = apc_mechanized upgrade_prio = { factor = 1 } mechanized_generic = { upgrade_prio = { factor = 2 modifier = { factor = 0 num_of_military_factories < 8 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 7 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } replace_at_match = 0.8 replace_with = mechanized_divisions can_upgrade_in_field = { always = yes } target_min_match = 0.5 target_template = { regiments = { Mech_Inf_Bat = 8 } regimental_support = { Mech_Recce_Comp = 2 SP_R_Arty_Battery = 2 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 communications_company = 1 SP_AA_Battery = 1 } } } mechanized_divisions = { upgrade_prio = { factor = 1 modifier = { factor = 0 OR = { has_idea = minor_power has_idea = non_power num_of_military_factories < 15 } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 14 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.7 target_template = { regiments = { Mech_Inf_Bat = 16 } regimental_support = { Mech_Recce_Comp = 4 SP_R_Arty_Battery = 4 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 SP_AA_Battery = 1 SP_R_Arty_Battery = 1 } } } } #Mechanized Generic - Related to IFV (SP Arty) IFV_generic = { role = ifv_mechanized upgrade_prio = { factor = 1 } ifv_infantry_generic = { upgrade_prio = { factor = 2 modifier = { factor = 0 num_of_military_factories < 10 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 9 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } replace_at_match = 0.8 replace_with = ifv_infantry_divisions can_upgrade_in_field = { always = yes } target_min_match = 0.5 target_template = { regiments = { Arm_Inf_Bat = 8 } regimental_support = { Arm_Recce_Comp = 2 SP_Arty_Battery = 2 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 H_Engi_Comp = 1 communications_company = 1 SP_AA_Battery = 1 } } } ifv_infantry_divisions = { upgrade_prio = { factor = 1 modifier = { factor = 5 OR = { original_tag = CHI original_tag = USA } } modifier = { factor = 7 original_tag = SOV } modifier = { factor = 0 OR = { has_idea = minor_power has_idea = non_power num_of_military_factories < 15 } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 15 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.7 target_template = { regiments = { Arm_Inf_Bat = 16 } regimental_support = { Arm_Recce_Comp = 4 SP_Arty_Battery = 4 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 SP_AA_Battery = 1 SP_Arty_Battery = 1 } } } } #Armored Generic armor_generic = { role = armor upgrade_prio = { factor = 1.2 } armor_generic = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 2 num_of_military_factories > 14 } modifier = { factor = 0 OR = { num_of_military_factories > 20 num_of_military_factories < 15 } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 14 num_of_military_factories < 21 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.5 target_template = { regiments = { armor_Bat = 10 Arm_Inf_Bat = 6 } regimental_support = { SP_Arty_Battery = 4 Arm_Recce_Comp = 4 SP_AA_Battery = 2 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 SP_AA_Battery = 1 } } } light_armor_division = { reinforce_prio = 2 upgrade_prio = { factor = 1.5 modifier = { factor = 0 OR = { num_of_military_factories > 15 num_of_military_factories < 8 } } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 7 num_of_military_factories < 16 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.5 target_template = { regiments = { L_arm_Bat = 10 Mech_Inf_Bat = 6 } regimental_support = { armor_Recce_Comp = 4 SP_R_Arty_Battery = 4 attack_helo_comp = 2 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 SP_R_Arty_Battery = 1 SP_AA_Battery = 1 } } } armor_division = { reinforce_prio = 2 upgrade_prio = { factor = 1 modifier = { factor = 5 OR = { tag = USA tag = CHI tag = SOV } } modifier = { factor = 0 num_of_military_factories < 20 } } enable = { NOT = { original_tag = ZOM } num_of_military_factories > 20 has_game_rule = { rule = rule_god_of_war option = no } NOT = { tag = ALN } } target_min_match = 0.5 target_template = { regiments = { armor_Bat = 10 Arm_Inf_Bat = 6 } regimental_support = { SP_Arty_Battery = 4 Arm_Recce_Comp = 4 SP_AA_Battery = 2 } support = { combat_service_support_company = 1 combat_maintenance_company = 1 SP_AA_Battery = 1 } } } } hq_generic = { role = hq_role upgrade_prio = { base = 1 } hq_default = { upgrade_prio = { base = 1 modifier = { factor = 0 num_of_military_factories > 20 } } target_template = { support = { hq_support_company = 1 hq_engineer = 1 hq_maintenance = 1 } regiments = { hq_Mot_Inf_Bat = 2 } } } hq_advanced = { upgrade_prio = { base = 1 modifier = { factor = 0 num_of_military_factories < 21 } } target_template = { support = { hq_support_company = 1 hq_engineer = 1 hq_maintenance = 1 hq_armor = 1 hq_air_liaison = 1 } regiments = { hq_Mech_Inf_Bat = 3 } } } }