Prussian Militarization

mail@pastecode.io avatar
unknown
plain_text
2 months ago
3.5 kB
6
Indexable
Never
prussian_militarization_mechanic_4 = {
	alert_icon_gfx = GFX_alerticons_government_mechanics
	alert_icon_index = 10
	available = {
		has_dlc = "Domination"
		tag = PRU
		has_country_flag = enable_fourth_mil_level_flag
	}

	powers = {
		prussian_militarized_society_4 = {
			max = 100
			base_monthly_growth = 0
			development_scaled_monthly_growth = 0.04
			scaled_modifier = {
				modifier = {
					discipline = 0.225
					manpower_recovery_speed = 0.4
					land_maintenance_modifier = -0.1
					land_morale = 0.1
					monthly_prussian_militarized_society_2 = -0.75
				}
			}
		}
	}
	
	interactions = {
		boost_militarization = {
			gui = prussian_militarization_gov_mech_1_2
			cost_type = prussian_militarized_society_4
			center = no
			trigger = {
				mil_power = 50
				not = {
					has_government_power = {
						mechanic_type = prussian_militarization_mechanic_4
						power_type = prussian_militarized_society_4
						value = 100
					}
				}
			}
			effect = { 
				add_government_power = {
					mechanic_type = prussian_militarization_mechanic_4
					power_type = prussian_militarized_society_4
					value = 10
				}
				add_mil_power = -50
			}
			cooldown_years = 0
			ai_chance = {
				factor = 0
				modifier = {
					factor = 10
					not = {
						has_government_power = {
							mechanic_type = prussian_militarization_mechanic_4
							power_type = prussian_militarized_society_4
							value = 90
						}
					}
					mil_power = 500
				}
			}
		}
	}
}

//

prussian_militarization_mechanic_1 = {
	alert_icon_gfx = GFX_alerticons_government_mechanics
	alert_icon_index = 10
	available = {
		has_dlc = "Domination"
		tag = PRU
		NOT = { has_country_flag = enable_second_mil_level_flag }
		NOT = { has_country_flag = enable_third_mil_level_flag }
		NOT = { has_country_flag = enable_fourth_mil_level_flag }
	}

	powers = {
		prussian_militarized_society_1 = {
			max = 100
			scaled_modifier = {
				modifier = {
					discipline = 0.065
					manpower_recovery_speed = 0.15
					land_maintenance_modifier = -0.2
					monthly_prussian_militarized_society_1 = -0.1
				}
			}
		}
	}
//
emp_brapru_army_reforms_4 = {
		icon = an_army_with_a_state
		required_missions = { emp_brapru_army_reforms_3 }
		provinces_to_highlight = {
		}
		trigger = {
			land_forcelimit = 10
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 1
			}
			else = {
				army_tradition = 95
			}					
		}
		effect = {
			set_country_flag = brapru_army_reforms_3
			country_event = { id = flavor_brapru.29 }
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				add_country_modifier = {
					name = "pru_space_marines"
					duration = -1
				}
			}
			else = {
				add_country_modifier = {
					name = "pru_space_marines_2"
					duration = -1
				}
			}
			
			
			if = {
				limit = { 
					has_dlc = "Domination" 
					OR = {
						tag = PRU
						tag = GER 
						has_country_flag = access_to_prussian_militarization_flag #For the modders
					}
					has_reform = prussian_monarchy
				}
				custom_tooltip = pru_access_advanced_militarization_tt
				clr_country_flag = enable_third_mil_level_flag
				clr_country_flag = enable_second_mil_level_flag
				set_country_flag = enable_fourth_mil_level_flag
				regenerate_government_mechanics = yes
			}
		}
	}
Leave a Comment