MOR_decision_category_industry = {
	#Massive Artisan Investments
	MOR_decision_develop_building_slots = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			OR = {
				has_completed_focus = MOR_massive_artisan_investments
				has_completed_focus = MOR_modern_textile_mill
			}
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			random_owned_state = {
                limit = {
                    is_core_of = MOR
                    has_state_category = rural
                }
                add_extra_state_shared_building_slots = 1
            }
			random_owned_state = {
                limit = {
                    is_core_of = MOR
                    has_state_category = rural
                }
                add_extra_state_shared_building_slots = 1
            }
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Modern Textile Mill
	MOR_decision_modern_textile_mill = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_full_control_of_state = 461
			has_completed_focus = MOR_modern_textile_mill
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
            add_resource = {
				type = fabric
				amount = 6
				state = 461
			}
			461 = {
				add_building_construction = {
					type = fabric_weavery
					level = 1
				}
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Acquire European Factories
	MOR_decision_acquire_european_factories = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			461 = {
				free_building_slots = {
					building = industrial_complex
					size > 2
				}
			}
			set_temp_variable = {
				amount_of_money_to_check = 1.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_full_control_of_state = 461
			has_completed_focus = MOR_acquire_european_factories
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1.25
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1.25 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
            461 = {
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.02
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Acquire Land for Factories
	MOR_decision_acquire_land_factories = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_full_control_of_state = 461
			has_completed_focus = MOR_acquire_european_factories
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			461 = { add_extra_state_shared_building_slots = 1 }
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Local Industry Investments
	MOR_decision_acquire_local_european_factories = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			461 = {
				free_building_slots = {
					building = industrial_complex
					size > 1
				}
			}
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {		
			has_full_control_of_state = 461
			has_completed_focus = MOR_local_industrial_investments
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
            461 = {
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Acquire Land for Local Factories
	MOR_decision_acquire_land_local_factories = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_full_control_of_state = 461
			has_completed_focus = MOR_acquire_european_factories
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			461 = { add_extra_state_shared_building_slots = 1 }
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_invest_in_unused_lands = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_full_control_of_state = 461
			has_completed_focus = MOR_invest_unused_land
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			462 = { add_extra_state_shared_building_slots = 1 }
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_develop_tangier = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_european_cotton_plantations
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			762 = {
				add_extra_state_shared_building_slots = 2
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_european_cotton_plantations = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.8
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_european_cotton_plantations
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.8
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.8 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			762 = {
				add_building_construction = {
					type = cotton_farm
					level = 2
					instant_build = yes
				}
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.02
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_cotton_farms_in_marakesh = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.4
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_investments_atlas_regions
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.4
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.4}
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			462 = {
				add_building_construction = {
					type = cotton_farm
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_cultivate_cotton = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.4
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_cultivate_cotton
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.4
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.4 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			462 = {
				add_building_construction = {
					type = cotton_farm
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_connect_major_cities_marrakesh = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_infrastructure_expansion
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.3 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			462 = {
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_connect_major_cities_morocco = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_infrastructure_expansion
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.3 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			461 = {
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_rural_roads_er_rif = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_roads_rural
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			290 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_rural_roads_cape_juby = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_roads_rural
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			857 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	### UBL Railline
	MOR_decision_tangier_fes_line = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_begin_construction_railline
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			build_railway = {
				level = 1
				build_only_on_allied = yes
				controller_priority = {
					base = 1
					modifier = {
						tag = MOR
						add = 2
					}
				}
				fallback = yes
				path = { 13843 9945 10113 10013 11987 }
				start_province = 13843
				target_province = 11987
			}
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_casablanca_marrakech_line = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_begin_construction_railline
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			build_railway = {
				level = 1
				build_only_on_allied = yes
				controller_priority = {
					base = 1
					modifier = {
						tag = MOR
						add = 2
					}
				}
				fallback = yes
				path = { 7069 10023 10107}
				start_province = 7069
				target_province = 10107
			}
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_fes_rabat_line = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_begin_construction_railline
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			build_railway = {
				level = 1
				build_only_on_allied = yes
				controller_priority = {
					base = 1
					modifier = {
						tag = MOR
						add = 2
					}
				}
				fallback = yes
				path = { 11987 7100 10070 }
				start_province = 11987
				target_province = 10070
			}
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}
		

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_marrakech_agadir_line = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_begin_construction_railline
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			build_railway = {
				level = 1
				build_only_on_allied = yes
				controller_priority = {
					base = 1
					modifier = {
						tag = MOR
						add = 2
					}
				}
				fallback = yes
				path = { 10107 4108 7203 12857}
				start_province = 10107
				target_province = 12857
			}
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_rabat_tangier_line = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_begin_construction_railline
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			build_railway = {
				level = 1
				build_only_on_allied = yes
				controller_priority = {
					base = 1
					modifier = {
						tag = MOR
						add = 2
					}
				}
				fallback = yes
				path = { 10070 1194 10113 9945 13843}
				start_province = 10070
				target_province = 13843
			}
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	###Financial Crisis
	MOR_decision_crackdown_counterfeiting = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_crackdown_counterfeiting
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 30
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_ideas = {
				MOR_idea_take_control_of_the_economy0
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_combat_inflation = {

		icon = GFX_decision_GENERIC_Deflation_Measures

		#allowed = { tag = MOR }
		
		available = {
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_attempt_combat_inflation
		}

		fire_only_once = yes

		cost = 150
		
		days_remove = 50
		
		complete_effect = {
		}
		
		remove_effect = {
			swap_ideas = {
				remove_idea = MOR_idea_take_control_of_the_economy0
				add_idea = MOR_idea_take_control_of_the_economy1
			}
			set_temp_variable = { inflation_to_gain = -0.03 }
			add_inflation_with_tooltip_effect = yes

		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_increase_deflation = {

		icon = GFX_decision_GENERIC_Deflation_Measures

		#allowed = { tag = MOR }
		
		available = {
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_attempt_combat_inflation
		}

		fire_only_once = yes

		cost = 150
		
		days_remove = 60
		
		complete_effect = {
		}
		
		remove_effect = {
			swap_ideas = {
				remove_idea = MOR_idea_take_control_of_the_economy1
				add_idea = MOR_idea_take_control_of_the_economy2
			}
			set_temp_variable = { inflation_to_gain = -0.02 }
			add_inflation_with_tooltip_effect = yes
			remove_ideas = {
				MOR_coinage_crisis
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_berber_jewelry_market = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}

		visible = {
			has_capitulated = no
			has_country_flag = MOR_berber_market
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 60
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			swap_ideas = {
				remove_idea = MOR_idea_trans_saharan_wealth
				add_idea = MOR_idea_trans_saharan_wealth1
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_expropriate_forests = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.15
			}
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_expropriate_forests
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.15
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 60
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.15 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_resource = {
				type = wood
				amount = 4
				state = 461
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_develop_building_slots_for_military_factory = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_equipment_production
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			461 = {
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MOR_decision_equipment_production = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_full_control_of_state = 461
			has_completed_focus = MOR_equipment_production
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
           
			461 = {
				add_building_construction = {
					type = arms_factory
					level = 1
				}
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_develop_ship_building = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_expand_port_infrastructure
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.3 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			461 = {
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MOR_decision_develop_the_ports = {
		icon = generic_factory
		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}
		visible = {
			has_full_control_of_state = 461
			has_completed_focus = MOR_expand_port_infrastructure
		}
		fire_only_once = yes
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
		   
			461 = {
				add_building_construction = {
					type = naval_base 
					level = 1
					province = 1079
				}
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}
		ai_will_do = {
			base = 1000
		}
	}


	MOR_decision_develop_ship_building_2 = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_capitulated = no
			has_completed_focus = MOR_take_necessary_debts
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.3 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			461 = {
				add_extra_state_shared_building_slots = 1
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MOR_decision_develop_the_ports_2 = {

		icon = generic_factory

		#allowed = { tag = MOR }
		
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_full_control_of_state = 461
			has_completed_focus = MOR_take_necessary_debts
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.15
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
           
			461 = {
				add_building_construction = {
					type = naval_base 
					level = 2
				}
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
}

MOR_decision_category_military = {
	MOR_decision_acquire_cannons = {
		icon = generic_military

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}

		visible = {
			has_completed_focus = MOR_import_british_cannons
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 30
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_equipment_to_stockpile = { type = rifled_cannon_equipment_0 amount = 100 producer = ENG }
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_acquire_british_uniforms = {
		icon = generic_military

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.05
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}

		visible = {
			has_completed_focus = MOR_british_uniforms
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.05
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 30
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.05 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_equipment_to_stockpile = { type = uniform_equipment_2 amount = 4000 producer = ENG }
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_acquire_french_rifles = {
		icon = generic_military

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}

		visible = {
			has_completed_focus = MOR_french_rifles
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 30
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment_rifle_1 amount = 4000 producer = FRA }
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_acquire_french_uniforms = {
		icon = generic_military

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.05
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}

		visible = {
			has_completed_focus = MOR_french_uniforms
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.05
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 30
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.05 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_equipment_to_stockpile = { type = uniform_equipment_2 amount = 4000 producer = FRA }
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_tribal_manpower = {
		icon = generic_military

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.01
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}

		visible = {
			has_completed_focus = MOR_tribal_manpower
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.01
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 30
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.01 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_manpower = 10000
		}

		ai_will_do = {
			base = 1000
		}
	}

	MOR_decision_expand_askar_nizami = {
		icon = generic_military

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.02
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}

		visible = {
			has_completed_focus = MOR_expand_askar_nizami
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.02
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 30
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.02 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_manpower = 5000
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_naval_investments = {
		icon = generic_military

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 3
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}

		visible = {
			has_completed_focus = MOR_reform_ports
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 3
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 450
		
		complete_effect = {
			set_temp_variable = { money_to_gain = 3 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			set_temp_variable = { money_to_gain = 5 }
			add_money_with_tooltip_effect = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	MOR_decision_buy_convoys = {
		icon = generic_military

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}

		visible = {
			has_completed_focus = MOR_buy_convoys
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 3
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 450
		
		complete_effect = {
			set_temp_variable = { money_to_gain = 5 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_equipment_to_stockpile = {
				type = convoy
				amount = 50
				producer = MOR
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
}

MOR_ulema_category_decisions = {
	MOR_decision_placate_the_goverment = {
		
		icon = GFX_decision_newspaper_open

		#allowed = { tag = RUS }

		
		available = {
			tag = MOR
		}

		visible = {
			always = yes
		}

		fire_only_once = yes

		cost = 10
		days_re_enable = 100

		modifier = {
			
		}

		complete_effect = {
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = 0.05
			}
		}

		ai_will_do = {
			base = 200
		}
	}

	MOR_decision_reach_out_to_the_revolters = {
		
		icon = GFX_decision_newspaper_open

		#allowed = { tag = RUS }

		
		available = {
			tag = MOR
		}

		visible = {
			always = yes
		}

		fire_only_once = yes

		cost = 5
		days_re_enable = 150

		modifier = {
			
		}

		complete_effect = {
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = 0.03
			}
		}

		ai_will_do = {
			base = 200
		}
	}

	MOR_decision_earn_the_support_of_the_sultan = {
		
		icon = GFX_decision_newspaper_open
	
		#allowed = { tag = RUS }
	
		
		available = {
			tag = MOR
		}
	
		visible = {
			always = yes
		}
	
		fire_only_once = yes
	
		cost = 30
		days_re_enable = 365
	
		modifier = {
			
		}
	
		complete_effect = {
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = 0.1
			}
		}
	
		ai_will_do = {
			base = 200
		}
	}
	
	MOR_decision_placate_to_the_revolters = {
			
		icon = GFX_decision_newspaper_open
	
		#allowed = { tag = RUS }
	
		
		available = {
			tag = MOR
		}
	
		visible = {
			always = yes
		}
	
		fire_only_once = yes
	
		cost = 15
		days_re_enable = 100
	
		modifier = {
			
		}
	
		complete_effect = {
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.03
			}
		}
	
		ai_will_do = {
			base = 200
		}
	}
	
	MOR_decision_earn_the_support_of_the_people = {
			
		icon = GFX_decision_newspaper_open
	
		#allowed = { tag = RUS }
	
		
		available = {
			tag = MOR
		}
	
		visible = {
			always = yes
		}
	
		fire_only_once = yes
	
		cost = 30
		days_re_enable = 365
	
		modifier = {
			
		}
	
		complete_effect = {
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.05
			}
		}
	
		ai_will_do = {
			base = 200
		}
	}
	
	MOR_decision_have_a_strike = {
			
		icon = GFX_decision_newspaper_open
	
		#allowed = { tag = RUS }
	
		
		available = {
			tag = MOR
		}
	
		visible = {
			always = yes
		}
	
		fire_only_once = yes
	
		cost = 5
		days_re_enable = 150
	
		modifier = {
			
		}
	
		complete_effect = {
			add_power_balance_value = {
				id = MOR_Balance_of_Power_Ulema_Unrest
				value = -0.01
			}
		}
	
		ai_will_do = {
			base = 200
		}
	}
}



