####Tier1#####

decision_new_infrastructure = {
	owned_planets_only = yes
	icon = decision_glitchy_matrix
	
	enactment_time = 1800
	prerequisites = {
		"tech_multi_rafinery"
	}

	resources = {
		category = decisions
		cost = {
			volatile_motes = 800
			rare_crystals = 800
			exotic_gases = 800
		}	
	}
	
	potential = {
		NOT = { 
			has_modifier = lea_expanded_infrastructure
			is_planet_class = ideal_world
			is_planet_class = ideal_science_world
			is_planet_class = ideal_city_world
			is_planet_class = ideal_factory_world
			is_planet_class = ideal_fortress_world
			is_planet_class = ideal_resource_world
			is_planet_class = ideal_hive_world
			is_planet_class = lea_ringworld_advanced_science_mhf
			is_planet_class = lea_ringworld_advanced_city_mhf
			is_planet_class = lea_ringworld_advanced_factory_mhf
			is_planet_class = lea_ringworld_advanced_resource_mhf
			is_planet_class = lea_ringworld_advanced_hive_mhf
		}
	}
	
	effect = { add_modifier = { modifier = lea_expanded_infrastructure } }
	
	ai_weight = {
		weight = 100
	}
}


decision_ideal_world = {
	owned_planets_only = yes
	icon = decision_arcology_project

	enactment_time = 3600
	prerequisites = {
		"tech_perfect_pleace"
	}
	
	resources = {
		category = decisions
		cost = {
			sr_living_metal = 2000
			nanites = 2000
		}
	}

	potential = {
		NOT = { 
			is_planet_class = ideal_world
			is_planet_class = ideal_science_world
			is_planet_class = ideal_city_world
			is_planet_class = ideal_factory_world
			is_planet_class = ideal_fortress_world
			is_planet_class = ideal_resource_world
			is_planet_class = ideal_hive_world
		}
		is_artificial = no
	}

	effect = {
		change_pc = ideal_world
		remove_modifier = lea_expanded_infrastructure
	}

	ai_weight = {
		weight = 0
	}
}
#################Tier 2
###########Add deposit
decision_lea_more_science = {
	owned_planets_only = yes
	icon = lea_dec_science_lab

	enactment_time = 1500
	prerequisites = {
		"tech_ideal_lab_second"
	}
	
	resources = {
		category = decisions
		cost = {
			sr_living_metal = 3000
			nanites = 3000
			unity = 10000
		}
	}

	potential = {
		NOT = { 
			has_deposit = lea_science_deposit
		}
		OR = { 
			is_planet_class = ideal_science_world
			is_planet_class = lea_ringworld_advanced_science_mhf
		}
	}

	effect = {
		add_deposit = lea_science_deposit
		remove_deposit = lea_unity_deposit
	}

	ai_weight = {
		weight = 100
	}
}

decision_lea_more_unity = {
	owned_planets_only = yes
	icon = lea_dec_unity_lab

	enactment_time = 1500
	prerequisites = {
		"tech_ideal_lab_second"
	}
	
	resources = {
		category = decisions
		cost = {
			sr_living_metal = 3000
			nanites = 3000
			unity = 10000
		}
	}

	potential = {
		NOT = { 
			has_deposit = lea_unity_deposit
		}
		OR = { 
			is_planet_class = ideal_science_world
			is_planet_class = lea_ringworld_advanced_science_mhf
		}
	}

	effect = {
		add_deposit = lea_unity_deposit
		remove_deposit = lea_science_deposit
	}

	ai_weight = {
		weight = 100
	}
}

decision_lea_more_city = {
	owned_planets_only = yes
	icon = lea_dec_city

	enactment_time = 1500
	prerequisites = {
		"tech_ideal_city_second"
	}
	
	resources = {
		category = decisions
		cost = {
			sr_living_metal = 3000
			nanites = 3000
			unity = 10000
		}
	}

	potential = {
		NOT = { 
			has_deposit = lea_city_deposit
		}
		OR = { 
			is_planet_class = ideal_city_world
			is_planet_class = lea_ringworld_advanced_city_mhf
		}
	}

	effect = {
		add_deposit = lea_city_deposit
	}

	ai_weight = {
		weight = 100
	}
}

decision_lea_more_factory = {
	owned_planets_only = yes
	icon = lea_dec_factory

	enactment_time = 1500
	prerequisites = {
		"tech_ideal_factory_second"
	}
	
	resources = {
		category = decisions
		cost = {
			sr_living_metal = 3000
			nanites = 3000
			unity = 10000
		}
	}

	potential = {
		NOT = { 
			has_deposit = lea_factory_deposit
		}
		OR = { 
			is_planet_class = ideal_factory_world
			is_planet_class = lea_ringworld_advanced_factory_mhf
		}
	}

	effect = {
		add_deposit = lea_factory_deposit
	}

	ai_weight = {
		weight = 100
	}
}

decision_lea_more_resource = {
	owned_planets_only = yes
	icon = lea_dec_resource

	enactment_time = 1500
	prerequisites = {
		"tech_ideal_resource_second"
	}
	
	resources = {
		category = decisions
		cost = {
			sr_living_metal = 3000
			nanites = 3000
			unity = 10000
		}
	}

	potential = {
		NOT = { 
			has_deposit = lea_resource_deposit
		}
		OR = { 
			is_planet_class = ideal_resource_world
			is_planet_class = lea_ringworld_advanced_resource_mhf
		}
	}

	effect = {
		add_deposit = lea_resource_deposit
	}

	ai_weight = {
		weight = 100
	}
}

decision_lea_more_hive = {
	owned_planets_only = yes
	icon = lea_dec_hive

	enactment_time = 1500
	prerequisites = {
		"tech_ideal_hive_second"
	}
	
	resources = {
		category = decisions
		cost = {
			sr_living_metal = 3000
			nanites = 3000
			unity = 10000
		}
	}

	potential = {
		NOT = { 
			has_deposit = lea_hive_deposit
		}
		OR = { 
			is_planet_class = ideal_hive_world
			is_planet_class = lea_ringworld_advanced_hive_mhf
		}
	}

	effect = {
		add_deposit = lea_hive_deposit
	}

	ai_weight = {
		weight = 100
	}
}

####################RINGWORLD
decision_lea_ideal_ringworld = {
	owned_planets_only = yes
	icon = decision_arcology_project

	enactment_time = 4800
	prerequisites = {
		"tech_ideal_ringworld"
	}
	
	resources = {
		category = decisions
		cost = {
			alloys = 10000
			sr_living_metal = 5000
			nanites = 5000
		}
	}

	potential = {
		is_planet_class = pc_ringworld_habitable
	}

	effect = {
		change_pc = lea_ringworld_basic_mhf
		remove_modifier = lea_expanded_infrastructure
	}

	ai_weight = {
		weight = 0
	}
}


#####################Remove Facility
decision_lea_remove_avanced_mha = {
	owned_planets_only = yes
	icon = lea_dec_remove_mha

	enactment_time = 1000
	prerequisites = {
		"tech_ideal_spec"
	}
	
	resources = {
		category = decisions
		cost = {
			energy = 10000
		}
	}

	potential = {
		OR = { 
			is_planet_class = ideal_science_world
			is_planet_class = ideal_city_world
			is_planet_class = ideal_factory_world
			is_planet_class = ideal_fortress_world
			is_planet_class = ideal_resource_world
			is_planet_class = ideal_hive_world
		}
	}

	effect = {
		hidden_effect = {
			remove_deposit = lea_science_deposit
			remove_deposit = lea_unity_deposit
			remove_deposit = lea_city_deposit
			remove_deposit = lea_factory_deposit
			remove_deposit = lea_fortress_deposit
			remove_deposit = lea_resource_deposit
			remove_deposit = lea_hive_deposit
		}
		change_pc = ideal_world
	}

	ai_weight = {
		weight = 0
	}
}

decision_lea_remove_ringworld_mha = {
	owned_planets_only = yes
	icon = lea_dec_remove_mha

	enactment_time = 1000
	prerequisites = {
		"tech_ideal_ringworld"
	}
	
	resources = {
		category = decisions
		cost = {
			energy = 20000
		}
	}

	potential = {
		OR = { 
			is_planet_class = lea_ringworld_advanced_science_mhf
			is_planet_class = lea_ringworld_advanced_city_mhf
			is_planet_class = lea_ringworld_advanced_factory_mhf
			is_planet_class = lea_ringworld_advanced_resource_mhf
			is_planet_class = lea_ringworld_advanced_hive_mhf
		}
	}

	effect = {
		hidden_effect = {
			remove_deposit = lea_science_deposit
			remove_deposit = lea_unity_deposit
			remove_deposit = lea_city_deposit
			remove_deposit = lea_factory_deposit
			remove_deposit = lea_fortress_deposit
			remove_deposit = lea_resource_deposit
			remove_deposit = lea_hive_deposit
		}
		change_pc = lea_ringworld_basic_mhf
	}

	ai_weight = {
		weight = 0
	}
}