Untitled

mail@pastecode.io avatar
unknown
lua
2 months ago
1.5 kB
1
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
				}
			}
		}
	}
}
Leave a Comment