ETH_chi_investments_category = {

	ETH_light_rail = {

		icon = generic_decision

		allowed = { tag = ETH }

		custom_cost_trigger = {
			check_variable = { treasury > 0.475 }
		}
		custom_cost_text = cost_0_5

		available = {

		}

		highlight_states = {
			state = 233
		}

		visible = {
			NOT = { has_active_mission = ETH_construct_light_rail }
			has_completed_focus = ETH_request_chinese_investments
		}

		Is_good = yes

		fire_only_once = yes

		complete_effect = {
			activate_mission = ETH_construct_light_rail
			subtract_from_variable = { treasury = 0.475 }
		}

		ai_will_do = {
			factor = 1
		}
	}

	ETH_construct_light_rail = {

		icon = generic_decision

		available = {
			always = no
		}

		days_mission_timeout = ETH_main_control_timer?1095

		activation = {
			always = no #Triggered from effect
		}

		cancel_trigger = {
			#
		}

		highlight_states = {
			state = 233
		}

		visible = {

		}

		is_good = yes

		timeout_effect = {
			effect_tooltip = {
				233 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			hidden_effect = { country_event = Ethiopia.7 set_country_flag = ETH_light_rail_build_ }
		}
	}

	ETH_light_rail_2 = {

		icon = generic_decision

		allowed = { tag = ETH }

		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3

		available = {

		}

		highlight_states = {
			state = 233
		}

		visible = {
			NOT = { has_active_mission = ETH_construct_light_rail_2 }
			has_completed_focus = ETH_request_chinese_investments
			has_country_flag = ETH_light_rail_build_flg
		}

		Is_good = yes

		fire_only_once = yes

		complete_effect = {
			activate_mission = ETH_construct_light_rail_2
			subtract_from_variable = { treasury = 0.3 }
		}

		ai_will_do = {
			factor = 1
		}
	}

	ETH_construct_light_rail_2 = {

		icon = generic_decision

		available = {
			always = no
		}

		days_mission_timeout = ETH_main_control_timer?500

		activation = {
			always = no #Triggered from effect
		}

		cancel_trigger = {
			#
		}

		highlight_states = {
			state = 233
		}

		visible = {

		}

		is_good = yes

		timeout_effect = {
			effect_tooltip = {
				233 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			hidden_effect = { country_event = Ethiopia.9 }
		}
	}

	ETH_addis_ababa_djibouti_railway = {

		icon = generic_decision

		allowed = { tag = ETH }

		custom_cost_trigger = {
			check_variable = { treasury > 4.5 }
		}
		custom_cost_text = cost_4_5

		available = {

		}

		highlight_states = {
			state = 233
			state = 234
			state = 236
		}

		visible = {
			NOT = { has_active_mission = ETH_construct_addis_ababa_djibouti_railway }
			has_completed_focus = ETH_request_chinese_investments
		}

		Is_good = yes

		fire_only_once = yes

		complete_effect = {
			activate_mission = ETH_construct_addis_ababa_djibouti_railway
			subtract_from_variable = { treasury = 4.5 }
		}

		ai_will_do = {
			factor = 1
		}
	}

	ETH_construct_addis_ababa_djibouti_railway = {
		icon = generic_decision

		available = {
			always = no
		}

		days_mission_timeout = ETH_main_control_timer?1095

		activation = {
			always = no #Triggered from effect
		}

		cancel_trigger = {
			#
		}

		highlight_states = {
			state = 233
		}

		visible = {

		}

		is_good = yes

		timeout_effect = {
			effect_tooltip = {
				233 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
				234 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
				236 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			hidden_effect = { country_event = Ethiopia.10 }
		}
	}
}

ETH_european_investments_category = {

		ETH_rehabilitation = {

			icon = generic_decision

			allowed = {

			}

			custom_cost_trigger = {
				check_variable = { treasury > 0.1 }
			}
			custom_cost_text = cost_0_1

			available = {

			}

			highlight_states = {
				state = 234
			}

			visible = {
				NOT = { has_active_mission = ETH_rehabilitation_railway }
				has_completed_focus = ETH_request_european_investments
				has_country_flag = ETH_railway_destroyed_flg
			}

			Is_good = yes

			fire_only_once = yes

			complete_effect = {
				activate_mission = ETH_rehabilitation_railway
				subtract_from_variable = { treasury = 0.05 }
			}

			ai_will_do = {
				factor = 1
			}
		}

		ETH_rehabilitation_railway = {

			icon = generic_decision

			available = {
				always = no
			}

			days_mission_timeout = ETH_main_control_timer?1095

			activation = {
				always = no #Triggered from effect
			}

			cancel_trigger = {
				#
			}

			highlight_states = {
				state = 234
			}

			visible = {

			}

			is_good = yes

			timeout_effect = {
				effect_tooltip = {
					234 = {
						add_building_construction = {
							type = infrastructure
							level = 1
							instant_build = yes
						}
					}
				}
			}
		}

		ETH_repair_railway = {

			icon = generic_decision

			allowed = {

			}

			custom_cost_trigger = {
				check_variable = { treasury > 0.1 }
			}
			custom_cost_text = cost_0_1

			available = {
				NOT = { has_country_flag = ETH_railway_destroyed_flg }
			}

			highlight_states = {
				state = 234
			}

			visible = {
				NOT = {
					has_active_mission = ETH_rehabilitation_railway
					has_country_flag = ETH_railway_destroyed_flg
				}
				has_completed_focus = ETH_request_european_investments
			}

			Is_good = yes

			fire_only_once = yes

			complete_effect = {
				activate_mission = ETH_rehabilitation_railway_2
				subtract_from_variable = { treasury = 0.02 }
			}

			ai_will_do = {
				factor = 1
			}
		}

		ETH_rehabilitation_railway_2 = {

			icon = generic_decision

			available = {
				always = no
			}

			days_mission_timeout = ETH_main_control_timer?500

			activation = {
				always = no #Triggered from effect
			}

			cancel_trigger = {
				#
			}

			highlight_states = {
				state = 234
			}

			visible = {

			}

			is_good = yes

			timeout_effect = {
				custom_effect_tooltip = ETH_railway_repaired_tt
				set_country_flag = ETH_railway_repaired_flg
			}
		}
}

ETH_eritrea_category = {

		ETH_destroy_sudan_base = {

			icon = generic_decision

			allowed = {

			}

			available = {
				divisions_in_state = {
					state = 220
					size > 2
				}
				has_completed_focus = ETH_eritrea_tackle_seperatists
			}

			cost = 50

			highlight_states = {
				state = 220
			}

			visible = {
			#	NOT = { has_active_mission = ETH_sudan_mission }
			#	has_country_flag = EPLF_formed_again
			#	controls_state = 220
			}

			Is_good = yes

			fire_only_once = yes

			complete_effect = {
				activate_mission = ETH_sudan_mission
			}

			ai_will_do = {
				factor = 0
				modifier = {
					add = 200
					divisions_in_state = {
						state = 220
						size > 2
					}
				}
			}
		}

		ETH_sudan_mission = {

			icon = generic_decision

			available = {
				always = no
			}

			days_mission_timeout = ETH_main_control_timer?90

			activation = {
				always = no #Triggered from effect
			}

			cancel_trigger = {
				divisions_in_state = {
					state = 220
					size < 2
				}
			}

			highlight_states = {
				state = 220
			}

			visible = {

			}

			is_good = yes

			timeout_effect = {
				custom_effect_tooltip = ETH_sudan_elf_tt
				clr_country_flag = EPLF_formed_again
			}
		}

		ETH_strenghten_outposts_1 = {

			icon = decision_fortification

			fire_only_once = yes

			available = {
				has_country_flag = EPLF_formed_again
				has_completed_focus = ETH_eritrea_tackle_seperatists
				num_of_civilian_factories_available_for_projects > 3
			}

			visible = {
				tag = ETH
				has_country_flag = EPLF_formed_again
				OR = {
					AND = {
						owns_state = 229
						controls_state = 229
						owns_state = 228
						controls_state = 228
					}
					ERI = { is_puppet_of = ETH }
				}
				NOT = { has_idea = outposts_strenghtened_2 }
				NOT = { has_idea = outposts_strenghtened_3 }
				NOT = { has_idea = outposts_strenghtened_4 }
				NOT = { has_idea = outposts_strenghtened_5 }
				NOT = { has_idea = outposts_strenghtened_6 }
				hidden_trigger = {
					NOT = { has_country_flag = eplf_mil_less }
				}
			}

			cost = 30
			days_remove = 100

			modifier = {
				civilian_factory_use = 4
			}

			ai_will_do = {
				factor = 5
			}

			complete_effect = {
				add_to_variable = { var = ct_op_count_1 value = 1 }
				add_to_variable = { var = ct_op_count_2 value = 1 }
			}

			remove_effect = {
				add_ideas = outposts_strenghtened_1
			}
		}

		ETH_strenghten_outposts_2 = {

			icon = decision_fortification

			fire_only_once = yes

			available = {
				has_country_flag = EPLF_formed_again
				num_of_civilian_factories_available_for_projects > 2
			}

			visible = {
				tag = ETH
				has_country_flag = EPLF_formed_again
				has_idea = outposts_strenghtened_1
				OR = {
					AND = {
						owns_state = 229
						controls_state = 229
						owns_state = 228
						controls_state = 228
					}
					ERI = { is_puppet_of = ETH }
				}
				hidden_trigger = {
					NOT = { has_country_flag = eplf_mil_less }
				}
			}

			cost = 40
			days_remove = 60

			modifier = {
				civilian_factory_use = 3
			}

			ai_will_do = {
				factor = 5
			}

			complete_effect = {
				add_to_variable = { var = ct_op_count_1 value = 1 }
				add_to_variable = { var = ct_op_count_2 value = 1 }
			}

			remove_effect = {
				swap_ideas = {
					remove_idea = outposts_strenghtened_1
					add_idea = outposts_strenghtened_2
				}
				subtract_from_variable = { var = eplf_presence_max value = 5 }
				clamp_variable = { var = eplf_presence min = eplf_presence_min max = eplf_presence_max }
			}
		}

		ETH_strenghten_outposts_3 = {

			icon = decision_fortification

			fire_only_once = yes

			available = {
				has_country_flag = EPLF_formed_again
				num_of_civilian_factories_available_for_projects > 2
			}

			visible = {
				tag = ETH
				has_country_flag = EPLF_formed_again
				has_idea = outposts_strenghtened_2
				OR = {
					AND = {
						owns_state = 229
						controls_state = 229
						owns_state = 228
						controls_state = 228
					}
					ERI = { is_puppet_of = ETH }
				}
				hidden_trigger = {
					NOT = { has_country_flag = eplf_mil_less }
				}
			}

			cost = 50
			days_remove = 60

			modifier = {
				civilian_factory_use = 3
			}

			ai_will_do = {
				factor = 5
			}

			complete_effect = {
				add_to_variable = { var = ct_op_count_1 value = 1 }
				add_to_variable = { var = ct_op_count_2 value = 1 }
			}

			remove_effect = {
				swap_ideas = {
					remove_idea = outposts_strenghtened_2
					add_idea = outposts_strenghtened_3
				}
				subtract_from_variable = { var = eplf_presence_max value = 5 }
				clamp_variable = { var = eplf_presence min = eplf_presence_min max = eplf_presence_max }
			}
		}

		ETH_strenghten_outposts_4 = {

			icon = decision_fortification

			fire_only_once = yes

			available = {
				has_country_flag = EPLF_formed_again
				num_of_civilian_factories_available_for_projects > 3
			}

			visible = {
				tag = ETH
				has_country_flag = EPLF_formed_again
				has_idea = outposts_strenghtened_3
				OR = {
					AND = {
						owns_state = 229
						controls_state = 229
						owns_state = 228
						controls_state = 228
					}
					ERI = { is_puppet_of = ETH }
				}
				hidden_trigger = {
					NOT = { has_country_flag = eplf_mil_less }
				}
			}

			cost = 60
			days_remove = 80

			modifier = {
				civilian_factory_use = 4
			}

			ai_will_do = {
				factor = 5
			}

			complete_effect = {
				add_to_variable = { var = ct_op_count_1 value = 1 }
				add_to_variable = { var = ct_op_count_2 value = 1 }
			}

			remove_effect = {
				swap_ideas = {
					remove_idea = outposts_strenghtened_3
					add_idea = outposts_strenghtened_4
				}
				subtract_from_variable = { var = eplf_presence_max value = 5 }
				clamp_variable = { var = eplf_presence min = eplf_presence_min max = eplf_presence_max }
			}
		}

		ETH_strenghten_outposts_5 = {

			icon = decision_fortification

			fire_only_once = yes

			available = {
				has_country_flag = EPLF_formed_again
				num_of_civilian_factories_available_for_projects > 3
			}

			visible = {
				tag = ETH
				has_country_flag = EPLF_formed_again
				has_idea = outposts_strenghtened_4
				OR = {
					AND = {
						owns_state = 229
						controls_state = 229
						owns_state = 228
						controls_state = 228
					}
					ERI = { is_puppet_of = ETH }
				}
				hidden_trigger = {
					NOT = { has_country_flag = eplf_mil_less }
				}
			}

			cost = 70
			days_remove = 80

			modifier = {
				civilian_factory_use = 4
			}

			ai_will_do = {
				factor = 5
			}

			complete_effect = {
				add_to_variable = { var = ct_op_count_1 value = 1 }
				add_to_variable = { var = ct_op_count_2 value = 1 }
			}

			remove_effect = {
				swap_ideas = {
					remove_idea = outposts_strenghtened_4
					add_idea = outposts_strenghtened_5
				}
				subtract_from_variable = { var = eplf_presence_max value = 10 }
				clamp_variable = { var = eplf_presence min = eplf_presence_min max = eplf_presence_max }
			}
		}

		ETH_strenghten_outposts_6 = {

			icon = decision_fortification

			fire_only_once = yes

			available = {
				has_country_flag = EPLF_formed_again
				num_of_civilian_factories_available_for_projects > 4
			}

			visible = {
				tag = ETH
				has_country_flag = EPLF_formed_again
				has_idea = outposts_strenghtened_5
				OR = {
					AND = {
						owns_state = 229
						controls_state = 229
						owns_state = 228
						controls_state = 228
					}
					ERI = { is_puppet_of = ETH }
				}
				hidden_trigger = {
					NOT = { has_country_flag = eplf_mil_less }
				}
			}

			cost = 60
			days_remove = 30

			modifier = {
				civilian_factory_use = 5
			}

			ai_will_do = {
				factor = 5
			}

			complete_effect = {
				add_to_variable = { var = ct_op_count_1 value = 1 }
				add_to_variable = { var = ct_op_count_2 value = 1 }
			}

			remove_effect = {
				remove_ideas = outposts_problem
				swap_ideas = {
					remove_idea = outposts_strenghtened_5
					add_idea = outposts_strenghtened_6
						}
				subtract_from_variable = { var = eplf_presence_max value = 10 }
				clamp_variable = { var = eplf_presence min = eplf_presence_min max = eplf_presence_max }
			}
		}
}

ETH_eritrea_1_category = {

		ETH_test = {

			icon = generic_decision

			allowed = {

			}

			available = {

			}

			cost = 50

			visible = {

			}

			Is_good = yes

			fire_only_once = yes

			complete_effect = {
			}

			ai_will_do = {
				factor = 4
			}
		}
}
