tr_est_malice_adopt = {
	unlocks_agenda = agenda_est_malice
	
	modifier = {
		country_border_friction_mult = 0.5
		rivalries_unity_produces_add = 10
	}
	
	tradition_swap = {
		name = tr_est_malice_adopt_alt
		trigger = {
			est_no_rivals = yes
		}	
		modifier = {
			country_naval_cap_mult = 0.10
		}
		weight = { factor = 1 }
	}	
}

tr_est_malice_finish = {
	modifier = {
		ship_weapon_damage = 0.10
		ascension_perks_add = 1
	}
}


tr_est_malice_1 = {
	custom_tooltip = tr_est_malice_1_desc

	modifier = {
		# pop_category_slave_upkeep_mult = -0.50 ### No longer works as of 4.3.6
		pop_slave_bonus_workforce_mult = 0.05
		pop_cat_slave_happiness = -0.10
	}

	tradition_swap = {
		custom_tooltip = tr_est_malice_1_no_slaves_desc
	
		name = tr_est_malice_1_no_slaves
		inherit_icon = yes
		trigger = {
			est_AI_no_passive_aggressive_traditons = no
			OR = {
				Not = { has_policy_flag = slavery_allowed }
				has_ethic = ethic_gestalt_consciousness
				has_civic = civic_fanatic_purifiers
			}
		}	
		weight = { factor = 1 }
	}	
	tradition_swap = {
		inherit_icon = yes
		name = tr_est_malice_1_no_slaves_passive_AI
		trigger = {
			est_AI_no_passive_aggressive_traditons = yes
			OR = {
				Not = { has_policy_flag = slavery_allowed }
				has_ethic = ethic_gestalt_consciousness
			}
		}	
		modifier = {
			army_damage_mult = 0.25			
		}
		weight = { factor = 1 }
	}	

	ai_weight = { factor = 5000 }
}

tr_est_malice_2 = {
	custom_tooltip = tr_est_malice_2_desc

	possible = { has_tradition = tr_est_malice_1 }

	# Deactivated since slavery has been unreliable since 4.0~4.3
	# on_enabled = {
	# 	every_owned_pop_group = {
	# 		limit = {
	# 			is_enslaved = yes
	# 			Not = {
	# 				has_modifier = mod_est_malice_2
	# 			}
	# 		}
	# 		add_modifier = {
	# 			modifier = "mod_est_malice_2"
	# 		}
	# 	}
	# }	

	modifier = {
		pop_slave_bonus_workforce_mult = 0.05
		pop_cat_slave_happiness = -0.10
	}

	tradition_swap = {
		custom_tooltip = tr_est_malice_2_no_slaves_desc
	
		name = tr_est_malice_2_no_slaves
		trigger = {
			est_AI_no_passive_aggressive_traditons = no
			OR = {
				NOT = { has_policy_flag = slavery_allowed }
				has_ethic = ethic_gestalt_consciousness
				has_civic = civic_fanatic_purifiers
			}
		}
		modifier = {
			ship_weapon_damage = 0.05	
		}
		weight = { factor = 1 }
	}

	tradition_swap = {
		name = tr_est_malice_2_various_AI
		trigger = {
			Or = {
				And = {
					est_AI_no_passive_aggressive_traditons = yes
					Or = {
						Not = { has_policy_flag = slavery_allowed }
						has_ethic = ethic_gestalt_consciousness
					}
				}
				And = {
					is_ai = yes
					has_policy_flag = slavery_allowed
					Not = { has_ethic = ethic_gestalt_consciousness }
				}
			}
		}	
		modifier = {
			ship_weapon_damage = 0.05		
		}
		weight = { factor = 1 }
	}	

	ai_weight = { factor = 5000 }
}

tr_est_malice_3 = {
	modifier = {
		max_rivalries = 3
		damage_vs_rival_mult = 0.05
	}
	
	tradition_swap = {
		name = tr_est_malice_3_no_rivals
		# For purifiers or exterminator empires
		trigger = { est_no_rivals = yes }	
		modifier = {
			army_damage_mult = 0.20
			army_collateral_damage_mult = 0.33
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}

tr_est_malice_4 = {
	possible = {
		has_tradition = tr_est_malice_3
	}

	modifier = {
		rivalries_influence_produces_mult = 0.3
	}
	
	tradition_swap = {
		name = tr_est_malice_4_no_rivals
		inherit_icon = yes
		inherit_name = yes
		trigger = { est_no_rivals = yes }	
		modifier = {
			ship_fire_rate_mult = 0.05
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}

tr_est_malice_5 = {
	custom_tooltip = tr_est_malice_5_desc

	possible = {
		has_tradition = tr_est_malice_2
		has_tradition = tr_est_malice_4
	}

	ai_weight = { factor = 5000 }
}