on_actions = {
	on_startup = {
		effect = {
			950 = {
				add_dynamic_modifier = { modifier = ACAGEZ_HQ } 
			}
			609 = {
				add_dynamic_modifier = { modifier = ACAGEZ_HQ } 
			}
			328 = {
				add_dynamic_modifier = { modifier = RUS_FASHIST_PARTY_HQ_1 } 
			}			
		}
	}
	# From is owner country
	on_army_leader_daily = {
		effect = {
			if = {
				limit = {
					check_variable = { random < 0.02 }
					NOT = {
						has_trait = sick
						has_character_flag = recently_sick
					}
					set_temp_variable = { temp = sum_unit_terrain_modifier@sickness_chance }
					divide_temp_variable = { temp = num_units }
					check_variable = { temp > 0.75 }
				}
				set_character_flag = { flag = recently_sick value = 1 days = 180 }
				add_timed_unit_leader_trait = {
					trait = sick
					days = 30
				}
				unit_leader_event = unit_leader.1
			}
		}
	}

	# From is owner country
	on_army_leader_won_combat = {
		effect = {
			if = {
				limit = {
					NOT = {
						has_trait = wounded
						has_character_flag = recently_wounded
					}
					set_temp_variable = { chance = 0.001 }
					set_temp_variable = { factor = 1 }
					add_to_temp_variable = { factor = leader_modifier@wounded_chance_factor }
					multiply_temp_variable = { chance = factor }
					check_variable = { random < chance }
				}
				set_character_flag = { flag = recently_wounded value = 1 days = 360 }
				add_timed_unit_leader_trait = {
					trait = wounded
					days = 90
				}
				unit_leader_event = unit_leader.2
			}
		}
	}

	# From is owner country
	on_army_leader_lost_combat = {
		effect = {
			if = {
				limit = {
					NOT = {
						has_trait = wounded
						has_character_flag = recently_wounded
					}
					set_temp_variable = { chance = 0.005 }
					set_temp_variable = { factor = 1 }
					add_to_temp_variable = { factor = leader_modifier@wounded_chance_factor }
					multiply_temp_variable = { chance = factor }
					check_variable = { random < chance }
				}
				set_character_flag = { flag = recently_wounded value = 1 days = 360 }
				add_timed_unit_leader_trait = {
					trait = wounded
					days = 90
				}
				unit_leader_event = unit_leader.2
			}
		}
	}	
}
