##########################################################################
# Decisions
##########################################################################

#Commerce 2: Specialised production bonuses (Energy Credit Bonus).
decision_est_commerce_2_energy_activate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_commerce_2_energy_activate
	
	resources = {
		category = decisions
		cost = {
			influence = 10
		}
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_commerce_2
		}
		NOR = {
			has_modifier = mod_est_commerce_2_energy
			has_modifier = mod_est_commerce_2_food
			has_modifier = mod_est_commerce_2_minerals
		}
	}
	
	effect = {
		custom_tooltip = decision_est_commerce_2_energy_activate_tooltip
		hidden_effect = {
			add_modifier = { 
				modifier = "mod_est_commerce_2_energy" 
				days = -1 
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
decision_est_commerce_2_energy_deactivate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_commerce_2_energy_deactivate
	
	resources = {
		category = decisions
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_commerce_2
		}
		has_modifier = mod_est_commerce_2_energy
	}
	
	effect = {
		custom_tooltip = decision_est_commerce_2_energy_deactivate_tooltip
		hidden_effect = {
			remove_modifier = "mod_est_commerce_2_energy" 
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Commerce 2: Specialised production bonuses (Food Credit Bonus).
decision_est_commerce_2_food_activate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_commerce_2_food_activate
	
	resources = {
		category = decisions
		cost = {
			influence = 10
		}
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_commerce_2
		}
		NOR = {
			has_modifier = mod_est_commerce_2_energy
			has_modifier = mod_est_commerce_2_food
			has_modifier = mod_est_commerce_2_minerals
		}
	}
	
	effect = {
		custom_tooltip = decision_est_commerce_2_food_activate_tooltip
		hidden_effect = {
			add_modifier = { 
				modifier = "mod_est_commerce_2_food" 
				days = -1 
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
decision_est_commerce_2_food_deactivate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_commerce_2_food_deactivate
	
	resources = {
		category = decisions
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_commerce_2
		}
		has_modifier = mod_est_commerce_2_food
	}
	
	effect = {
		custom_tooltip = decision_est_commerce_2_food_deactivate_tooltip
		hidden_effect = {
			remove_modifier = "mod_est_commerce_2_food" 
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Commerce 2: Specialised production bonuses (Minerals Credit Bonus).
decision_est_commerce_2_minerals_activate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_commerce_2_minerals_activate
	
	resources = {
		category = decisions
		cost = {
			influence = 10
		}
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_commerce_2
		}
		NOR = {
			has_modifier = mod_est_commerce_2_energy
			has_modifier = mod_est_commerce_2_food
			has_modifier = mod_est_commerce_2_minerals
		}
	}
	
	effect = {
		custom_tooltip = decision_est_commerce_2_minerals_activate_tooltip
		hidden_effect = {
			add_modifier = { 
				modifier = "mod_est_commerce_2_minerals" 
				days = -1 
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
decision_est_commerce_2_minerals_deactivate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_commerce_2_minerals_deactivate
	
	resources = {
		category = decisions
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_commerce_2
		}
		has_modifier = mod_est_commerce_2_minerals
	}
	
	effect = {
		custom_tooltip = decision_est_commerce_2_minerals_deactivate_tooltip
		hidden_effect = {
			remove_modifier = "mod_est_commerce_2_minerals" 
		}
	}
	
	ai_weight = {
		weight = 0
	}
}

#Industry 5: Declare Forge World.
decision_est_industry_5_activate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_industry_5_activate
	
	resources = {
		category = decisions
		cost = {
			influence = 10
			minerals = 360
		}
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_industry_5
		}
		Not = {
			has_modifier = mod_est_industry_5
		}
	}
	
	effect = {
		custom_tooltip = decision_est_industry_5_activate_tooltip
		hidden_effect = {
			add_modifier = { 
				modifier = "mod_est_industry_5" 
				days = -1 
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Industry 5: Remove Forge World.
decision_est_industry_5_deactivate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_industry_5_deactivate
	
	resources = {
		category = decisions
		cost = {
			minerals = 360
		}
	}
	
	potential = {
		has_modifier = mod_est_industry_5
	}
	
	effect = {
		custom_tooltip = decision_est_industry_5_deactivate_tooltip
		hidden_effect = {
			remove_modifier = "mod_est_industry_5" 
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Industry 5 (Hive Minds): Declare Forge World.
decision_est_industry_5_GC_activate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_industry_5_activate
	
	resources = {
		category = decisions
		cost = {
			influence = 10
			minerals = 360
		}
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_industry_5_GC
		}
		Not = {
			has_modifier = mod_est_industry_5_GC
		}
	}
	
	effect = {
		custom_tooltip = decision_est_industry_5_GC_activate_tooltip
		hidden_effect = {
			add_modifier = { 
				modifier = "mod_est_industry_5_GC" 
				days = -1 
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Industry 5 (Hive Minds): Remove Forge World.
decision_est_industry_5_GC_deactivate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_industry_5_deactivate
	
	resources = {
		category = decisions
		cost = {
			minerals = 360
		}
	}
	
	potential = {
		has_modifier = mod_est_industry_5_GC
	}
	
	effect = {
		custom_tooltip = decision_est_industry_5_GC_deactivate_tooltip
		hidden_effect = {
			remove_modifier = "mod_est_industry_5_GC" 
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Industry 5 (Machine Empires): Declare Forge World.
decision_est_industry_5_machines_activate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_industry_5_activate
	
	resources = {
		category = decisions
		cost = {
			influence = 10
			minerals = 360
		}
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_industry_5_machines
		}
		Not = {
			has_modifier = mod_est_industry_5_machines
		}
	}
	
	effect = {
		custom_tooltip = decision_est_industry_5_machines_activate_tooltip
		hidden_effect = {
			add_modifier = { 
				modifier = "mod_est_industry_5_machines" 
				days = -1 
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Industry 5 (Machine Empires): Remove Forge World.
decision_est_industry_5_machines_deactivate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_industry_5_deactivate
	
	resources = {
		category = decisions
		cost = {
			minerals = 360
		}
	}
	
	potential = {
		has_modifier = mod_est_industry_5_machines
	}
	
	effect = {
		custom_tooltip = decision_est_industry_5_machines_deactivate_tooltip
		hidden_effect = {
			remove_modifier = "mod_est_industry_5_machines" 
		}
	}
	
	ai_weight = {
		weight = 0
	}
}

#Cooperativity 5 (Hive Minds): Initiate Growth Phase.
decision_est_cooperativity_5_activate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_cooperativity_5_activate
	
	resources = {
		category = decisions
		cost = {
			influence = 50
		}
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_cooperativity_5
		}
		Not = {
			has_modifier = mod_est_cooperativity_5
		}
	}
	
	effect = {
		custom_tooltip = decision_est_cooperativity_5_activate_tooltip
		hidden_effect = {
			add_modifier = { 
				modifier = "mod_est_cooperativity_5" 
				days = -1 
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Cooperativity 5 (Hive Minds): Initiate Growth Phase.
decision_est_cooperativity_5_deactivate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_cooperativity_5_deactivate
	
	resources = {
		category = decisions
		cost = {
			influence = 50
		}
	}
	
	potential = {
		has_modifier = mod_est_cooperativity_5
	}
	
	effect = {
		custom_tooltip = decision_est_cooperativity_5_deactivate_tooltip
		hidden_effect = {
			remove_modifier = "mod_est_cooperativity_5" 
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Cooperativity 5 (Machine Empires): Initiate Growth Phase.
decision_est_cooperativity_5_machines_activate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_cooperativity_5_activate
	
	resources = {
		category = decisions
		cost = {
			influence = 50
		}
	}
	
	potential = {
		owner = {
			has_active_tradition = tr_est_cooperativity_5_machines
		}
		Not = {
			has_modifier = mod_est_cooperativity_5_machines
		}
	}
	
	effect = {
		custom_tooltip = decision_est_cooperativity_5_machines_activate_tooltip
		hidden_effect = {
			add_modifier = { 
				modifier = "mod_est_cooperativity_5_machines" 
				days = -1 
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
#Cooperativity 5 (Machine Empires): Initiate Growth Phase.
decision_est_cooperativity_5_machines_deactivate = {
	owned_planets_only = yes
	sound = event_administrative_work
	icon = decision_est_cooperativity_5_deactivate
	
	resources = {
		category = decisions
		cost = {
			influence = 50
		}
	}
	
	potential = {
		has_modifier = mod_est_cooperativity_5_machines
	}
	
	effect = {
		custom_tooltip = decision_est_cooperativity_5_machines_deactivate_tooltip
		hidden_effect = {
			remove_modifier = "mod_est_cooperativity_5_machines" 
		}
	}
	
	ai_weight = {
		weight = 0
	}
}
