#PER_faction_management = {
	# debug_increase_qajar_loyalty_low = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	remove_effect = {
	# 		#unlock_decision_tooltip = BUL_cooperation_zveno_joint_act
	# 		PER_qajar_low_loyalty_increase_effect = yes
	# 		#BUL_zveno_low_popularity_increase_effect = yes
	# 		#set_country_flag = BUL_speech_zveno_flag
	# 		#clr_country_flag = BUL_internal_affairs_ongoing_flag
	# 	}
	# }	
	
	# debug_increase_qajar_loyalty_medium = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_medium_loyalty_increase_effect = yes
	# 	}
	# }	
	
	# debug_increase_qajar_loyalty_high = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_high_loyalty_increase_effect = yes
	# 	}
	# }
	
	# debug_decrease_qajar_loyalty_low = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_low_loyalty_decrease_effect = yes
	# 	}
	# }
	
	# debug_decrease_qajar_loyalty_medium = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_medium_loyalty_decrease_effect = yes
	# 	}
	# }
	
	# debug_decrease_qajar_loyalty_high = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_high_loyalty_decrease_effect = yes
	# 	}
	# }
	
	# debug_increase_qajar_strength_low = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_low_strength_increase_effect = yes
	# 	}
	# }
	
	# debug_increase_qajar_strength_medium = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_medium_strength_increase_effect = yes
	# 	}
	# }
	
	# debug_decrease_qajar_strength_low = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_low_strength_decrease_effect = yes
	# 	}
	# }
	
	# debug_decrease_qajar_strength_medium = { 

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	days_remove = 0

	# 	days_re_enable = 0

	# 	cost = 0

	# 	complete_effect = {

	# 	}

	# 	remove_effect = {
	# 		PER_qajar_medium_strength_decrease_effect = yes
	# 	}
	# }
		
	# debug_integrate_qajar = { # Integrate qajar

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	available = {
	# 		custom_trigger_tooltip = {
	# 			check_variable = { PER_qajar_loyalty = 100 compare = greater_than_or_equals }
	# 		}
	# 	}

	# 	days_remove = 0

	# 	fire_only_once = yes

	# 	cost = 0

	# 	complete_effect = {
			
	# 	}

	# 	remove_effect = {

	# 		set_country_flag = PER_qajar_integrated_flag
	# 		clr_country_flag = PER_qajar_crushed_flag
	# 		clr_country_flag = PER_qajar_in_power_flag
	# 		clr_country_flag = PER_qajar_irrelevant_flag
	# 		effect_tooltip = {
	# 			add_political_power = 120
	# 			add_stability = 0.1
	# 		}
	# 	}
	# }
	
	# debug_crush_qajar = { # Crush qajar

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	available = {
	# 		custom_trigger_tooltip = {
	# 			check_variable = { PER_qajar_loyalty = 100 compare = less_than_or_equals }
	# 		}
	# 	}

	# 	days_remove = 0

	# 	fire_only_once = yes

	# 	cost = 0

	# 	complete_effect = {
			
	# 	}

	# 	remove_effect = {

	# 		set_country_flag = PER_qajar_crushed_flag
	# 		clr_country_flag = PER_qajar_integrated_flag
	# 		clr_country_flag = PER_qajar_in_power_flag
	# 		clr_country_flag = PER_qajar_irrelevant_flag
	# 		effect_tooltip = {
	# 			add_political_power = 120
	# 			add_stability = 0.1
	# 		}
	# 	}
	# }
	
	# debug_in_power_qajar = { # In power qajar

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	available = {
	# 		custom_trigger_tooltip = {
	# 			check_variable = { PER_qajar_loyalty = 100 compare = less_than_or_equals }
	# 		}
	# 	}

	# 	days_remove = 0

	# 	fire_only_once = yes

	# 	cost = 0

	# 	complete_effect = {
			
	# 	}

	# 	remove_effect = {

	# 		set_country_flag = PER_qajar_in_power_flag
	# 		clr_country_flag = PER_qajar_integrated_flag
	# 		clr_country_flag = PER_qajar_crushed_flag
	# 		clr_country_flag = PER_qajar_irrelevant_flag
	# 		effect_tooltip = {
	# 			add_political_power = 120
	# 			add_stability = 0.1
	# 		}
	# 	}
	# }
	
	# debug_irrelevant_qajar = { # Irrelevant qajar

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	available = {
	# 		custom_trigger_tooltip = {
	# 			check_variable = { PER_qajar_loyalty = 100 compare = less_than_or_equals }
	# 		}
	# 	}

	# 	days_remove = 0

	# 	fire_only_once = yes

	# 	cost = 0

	# 	complete_effect = {
			
	# 	}

	# 	remove_effect = {

	# 		set_country_flag = PER_qajar_irrelevant_flag
	# 		clr_country_flag = PER_qajar_integrated_flag
	# 		clr_country_flag = PER_qajar_crushed_flag
	# 		clr_country_flag = PER_qajar_in_power_flag
	# 		effect_tooltip = {
	# 			add_political_power = 120
	# 			add_stability = 0.1
	# 		}
	# 	}
	# }
	
	# debug_remove_popularity_qajar = { # set popularity to 0 for qajar

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	available = {
		
	# 	}

	# 	days_remove = 0

	# 	fire_only_once = yes

	# 	cost = 0

	# 	complete_effect = {
			
	# 	}

	# 	remove_effect = {
    #             PER_qajar_total_popularity_decrease_effect = yes
	# 		}
	# 	}


	# debug_integrate_bakhtiari = { # integrates bakhtiari

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	available = {
		
	# 	}

	# 	days_remove = 5

	# 	cost = 0

	# 	complete_effect = {
	# 	    set_country_flag = PER_bakhtiari_integrating_flag
			
	# 	}

	# 	remove_effect = {
	# 	        clr_country_flag = PER_bakhtiari_integrating_flag
	# 			set_country_flag = PER_bakhtiari_integrated_flag
	# 			PER_calculate_total_popularity_effect = yes
	# 		}
	# }
	
	# debug_crush_bakhtiari = { # crushes bakhtiari

	# 	icon = GFX_

	# 	allowed = { 
	# 		original_tag = PER
	# 	}

	# 	visible = {
	# 		is_debug = yes
	# 	}

	# 	available = {
		
	# 	}

	# 	days_remove = 5

	# 	cost = 0

	# 	complete_effect = {
    #         set_country_flag = PER_bakhtiari_integrating_flag
	# 	}

	# 	remove_effect = {
	# 	        clr_country_flag = PER_bakhtiari_integrating_flag
	# 	        set_country_flag = PER_bakhtiari_destroyed_flag
	# 			PER_calculate_total_popularity_effect = yes
	# 		}
	#}
#}

PER_decision_category_navy = {
	PER_decision_bandar_abbas_naval_base = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_bandar_abbas_naval_base
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.2
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.2 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.2 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			795 = {
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
	PER_decision_bandar_abbas_naval_base_2 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_bandar_abbas_naval_base
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.15
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.15 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.15 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			795 = {
				add_building_construction = {
					type = naval_base
					level = 1
					instant_build = yes
				}
			}
		}
	}
	PER_decision_bandar_abbas_naval_base_3 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_bandar_abbas_naval_base
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.1 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			795 = {
				set_building_level = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			set_country_flag = PER_bandar_abbas_infrastructure_purchase_1
		}
	}
	PER_decision_bandar_abbas_naval_base_4 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_bandar_abbas_naval_base
			has_country_flag = PER_bandar_abbas_infrastructure_purchase_1
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.1 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			795 = {
				set_building_level = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	PER_decision_enzeli_port_expansion = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_enzeli_port_expansion
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.2
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.2 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.2 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			420 = {
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
	PER_decision_enzeli_port_expansion_2 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_enzeli_port_expansion
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.1 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			420 = {
				set_building_level = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			set_country_flag = PER_bandar_abbas_infrastructure_purchase_1
		}
	}
	PER_decision_bushsehr_port_improvements = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_bushsehr_port_improvements
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.2
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.2 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.2 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			412 = {
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
	PER_decision_bushsehr_port_improvements_2 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_bushsehr_port_improvements
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.15
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.15 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.15 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			412 = {
				add_building_construction = {
					type = naval_base
					level = 1
					instant_build = yes
				}
			}
		}
	}
	PER_decision_bushsehr_port_improvements_3 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_bushsehr_port_improvements
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.1 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			412 = {
				set_building_level = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			set_country_flag = PER_bushehr_infrastructure_purchase_1
		}
	}
	PER_decision_bushsehr_port_improvements_4 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_bushsehr_port_improvements
			has_country_flag = PER_bushehr_infrastructure_purchase_1
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.1 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			412 = {
				set_building_level = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	PER_decision_french_ships = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_purchase_french_vessels
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.05
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.05 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.05 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			add_equipment_to_stockpile = {
				type = convoy
				amount = 15
				producer = FRA
			}
		}
	}
	PER_decision_french_ships_2 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_purchase_french_vessels
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.2
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.2 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.2 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			create_ship = {
				type = ship_hull_corvette_1
				equipment_variant = "Gomer Class"
				creator = FRA
				name = "Corvette"
				amount = 2
			}
		}
	}
	PER_decision_british_ships = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_purchase_british_ships
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.2
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.2 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.2 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			create_ship = {
				type = ship_hull_lineship_0
				equipment_variant = "Ship of the Line Class"
				creator = ENG
				name = "Lineship"
				amount = 2
			}
		}
	}
	PER_decision_british_ships_2 = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_purchase_british_ships
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.1 }
		}
		custom_cost_text = eoanb_money_cost_text

		fire_only_once = yes 
		days_remove = 20

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.1 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			create_ship = {
				type = ship_hull_gunboat_1
				equipment_variant = "Gunboat Class"
				creator = ENG
				name = "Gunboat"
				amount = 4
			}
		}
	}
	PER_mission_gulf_trade_dominance = {
		icon = navy
		days_mission_timeout = 365
		allowed = {
			always = no
		}
		available = {
			has_equipment = { convoy > 99 }
			has_country_flag = PER_expand_trade_flag
			has_country_flag = PER_reform_sea_tolls_flag
		}
		complete_effect	= {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.1 tooltip = money_income_tooltip }
			clr_country_flag = PER_expand_trade_flag
			clr_country_flag = PER_reform_sea_tolls_flag
		}
		timeout_effect = {
			if = {
				limit = { is_ai = no }
				add_political_power = -50
				decrease_legitimacy_by_one = yes
            }
		}
	}
    PER_decision_expand_trade = {
        icon = generic_decision
		visible = {
			has_completed_focus = PER_gulf_trade_dominance
		}

		fire_only_once = yes 
		days_remove = 70
		cost = 50

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
            add_to_variable = { PER_economy_tof = 0.1 tooltip = trade_opinion_factor_tooltip }
			add_to_variable = { PER_economy_ppg = 0.05 tooltip = political_power_gain_tooltip }
			add_to_variable = { PER_economy_cgf = -0.02 tooltip = consumer_goods_factor_tooltip }
            if = {
                limit = { has_active_mission = PER_mission_gulf_trade_dominance }
                set_country_flag = PER_expand_trade_flag
            }
		}
    }
    PER_decision_reform_sea_tolls = {
        icon = generic_decision
		visible = {
			has_completed_focus = PER_gulf_trade_dominance
		}

		fire_only_once = yes 
		days_remove = 50
		cost = 10

        modifier = {
            political_power_gain = -0.03
            money_expenses = -0.02
        }

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_ppg = 0.05 tooltip = political_power_gain_tooltip }
            add_to_variable = { PER_economy_mi = 0.01 tooltip = money_income_tooltip }
            add_stability = 0.01
            if = {
                limit = { has_active_mission = PER_mission_gulf_trade_dominance }
                set_country_flag = PER_reform_sea_tolls_flag
            }
		}
    }
    PER_mission_gulf_dominance = {
        icon = navy
		days_mission_timeout = 365

		allowed = {
			always = no
		}

		available = {
            ships_in_area = {
                area = 203
                size > 9
            }
            naval_strength_ratio = {
                tag = NJD
                ratio > 0.4
            }
            naval_strength_ratio = {
                tag = OMA
                ratio > 0.2
            }
        }


		complete_effect	= {
			navy_experience = 25
            add_political_power = 50
			increase_legitimacy_by_five = yes
        }

		timeout_effect = {
			if = {
                limit = { is_ai = no }
                add_political_power = -100
                navy_experience = -10
                set_temp_variable = { eoanb_prestige_change = -1 }
                eoanb_change_prestige_score = yes
				decrease_legitimacy_by_three = yes
            }
		}

    }
}

PER_decision_category_concessions = {
	PER_decision_sell_fars_iron_mines = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_mining_concessions
		}
		available = {

		}

		fire_only_once = yes 
		days_remove = 20
		cost = 10

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { var = PER_economy_cri value = -5 tooltip = country_resource_iron_tt }
			add_to_variable = { PER_economy_mi = 0.3 tooltip = money_income_tooltip }

			ENG = {
				if = {
					limit = {
						has_idea = PER_idea_britain_iron
					}
					swap_ideas = {
						add_idea = PER_idea_britain_iron2
						remove_idea = PER_idea_britain_iron
					}
				}
				else = {
					add_ideas = PER_idea_britain_iron
				}
			}
		}
	}
	PER_decision_sell_isfahan_iron_mines = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_mining_concessions
		}
		available = {

		}

		fire_only_once = yes 
		days_remove = 20
		cost = 10

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { var = PER_economy_cri value = -3 tooltip = country_resource_iron_tt }
			add_to_variable = { PER_economy_mi = 0.25 tooltip = money_income_tooltip }

			FRA = {
				add_ideas = PER_idea_france_iron
			}
		}
	}
	PER_decision_sell_tabriz_coal_mines = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_mining_concessions
		}

		fire_only_once = yes 
		days_remove = 20
		cost = 10

		complete_effect = {
			
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.3 tooltip = money_income_tooltip }
			add_to_variable = { var = PER_economy_crc value = -8 tooltip = country_resource_coal_tt }

			ENG = {
				if = {
					limit = {
						has_idea = PER_idea_britain_iron
					}
					swap_ideas = {
						add_idea = PER_idea_britain_iron2
						remove_idea = PER_idea_britain_iron
					}
				}
				else = {
					add_ideas = PER_idea_britain_iron
				}
			}
		}
	}
	PER_decision_sell_tabriz_iron_mines = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_mining_concessions
		}
		available = {

		}

		fire_only_once = yes 
		days_remove = 20
		cost = 10

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.15 tooltip = money_income_tooltip }
			add_to_variable = { var = PER_economy_cri value = -3 tooltip = country_resource_iron_tt }

			RUS = {
				add_ideas = PER_idea_russia_iron
			}
		}
	}
	PER_decision_cancel_road_concession = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_road_concessions
		}
		available = {

		}

		fire_only_once = yes 
		days_remove = 30
		cost = 50


		remove_effect = {
			remove_ideas = PER_idea_roads_concession
		}
	}
	PER_decision_cancel_telegraph_concession = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_telegraph_concession
		}
		available = {

		}

		fire_only_once = yes 
		days_remove = 30
		cost = 50


		remove_effect = {
			remove_ideas = PER_idea_telegraph_concession
		}
	}
	PER_decision_cancel_persian_gulf_concession = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_concession_for_the_persian_gulf_navigation
		}
		available = {

		}

		fire_only_once = yes 
		days_remove = 30
		cost = 50


		remove_effect = {
			remove_ideas = PER_idea_persian_gulf_concession
		}
	}
	PER_decision_cancel_persian_carpet_trade_concession = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_carpet_trade_concession
		}
		available = {

		}

		fire_only_once = yes 
		days_remove = 30
		cost = 50


		remove_effect = {
			remove_ideas = PER_idea_persian_carpet_trade_concession
		}
	}
	PER_decision_cancel_railway_concession = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_railway_concession
		}
		available = {

		}

		fire_only_once = yes 
		days_remove = 30
		cost = 50


		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_psrwf = -0.05 tooltip = production_speed_rail_way_factor_tooltip }
			add_to_variable = { PER_economy_psif = -0.05 tooltip = production_speed_infrastructure_factor_tooltip }
			add_to_variable = { PER_economy_sf = 0.05 tooltip = stability_factor_tooltip }
		}
	}
}

eoanb_category_military = {
	#Army Centralisation Decisions
	PER_decision_standardize_divisions = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_centralization_of_the_army
		}
		fire_only_once = yes 
		days_remove = 20

		cost = 10

		remove_effect = {
			army_experience = 10
		}
	}

	PER_decision_reduce_tribal_military_influence = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_centralization_of_the_army
		}
		fire_only_once = yes 
		days_remove = 20

		cost = 25

		remove_effect = {
			army_experience = 5
			add_political_power = -25
			# PER_qajar_medium_strength_decrease_effect = yes
			# PER_bakhtiari_medium_strength_decrease_effect = yes
			# PER_qashqai_medium_strength_decrease_effect = yes
			# PER_kurdish_lur_medium_strength_decrease_effect = yes
			# PER_turkmen_medium_strength_decrease_effect = yes
			# PER_baluch_medium_strength_decrease_effect = yes
			# PER_shahsevan_afshar_medium_strength_decrease_effect = yes
			# PER_khamseh_medium_strength_decrease_effect = yes
		}
	}
	PER_decision_introduce_conscription = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_centralization_of_the_army
		}
		fire_only_once = yes 
		days_remove = 20

		cost = 25

		remove_effect = {
			army_experience = 10
			add_political_power = -25
			hidden_effect = {
				# PER_qajar_medium_strength_decrease_effect = yes
				# PER_bakhtiari_medium_strength_decrease_effect = yes
				# PER_qashqai_medium_strength_decrease_effect = yes
				# PER_kurdish_lur_medium_strength_decrease_effect = yes
				# PER_turkmen_medium_strength_decrease_effect = yes
				# PER_baluch_medium_strength_decrease_effect = yes
				# PER_shahsevan_afshar_medium_strength_decrease_effect = yes
				# PER_khamseh_medium_strength_decrease_effect = yes
				# PER_qajar_low_strength_decrease_effect = yes
				# PER_bakhtiari_low_strength_decrease_effect = yes
				# PER_qashqai_low_strength_decrease_effect = yes
				# PER_kurdish_lur_low_strength_decrease_effect = yes
				# PER_turkmen_low_strength_decrease_effect = yes
				# PER_baluch_low_strength_decrease_effect = yes
				# PER_shahsevan_afshar_low_strength_decrease_effect = yes
				# PER_khamseh_low_strength_decrease_effect = yes
			}
			#custom_effect_tooltip = PER_high_strength_decrease_tt
			set_country_flag = PER_introduced_conscription_flag
		}
	}
	PER_decision_introduce_conscription_in_agreement = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_centralization_of_the_army
		}
		available = { has_country_flag = PER_introduced_conscription_flag }
		fire_only_once = yes 
		days_remove = 20

		cost = 20

		remove_effect = {
			add_political_power = -50
			# PER_qajar_low_strength_decrease_effect = yes
			# 	PER_bakhtiari_low_strength_decrease_effect = yes
			# 	PER_qashqai_low_strength_decrease_effect = yes
			# 	PER_kurdish_lur_low_strength_decrease_effect = yes
			# 	PER_turkmen_low_strength_decrease_effect = yes
			# 	PER_baluch_low_strength_decrease_effect = yes
			# 	PER_shahsevan_afshar_low_strength_decrease_effect = yes
			# 	PER_khamseh_low_strength_decrease_effect = yes
			news_event = persia.2
			clr_country_flag = PER_introduced_conscription_flag
		}
	}
	#Army Standartization Decisions
	PER_standartize_uniforms = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_standardize_military_equipment
		}
		fire_only_once = yes 
		days_remove = 20

		cost = 30

		remove_effect = {
			army_experience = 10
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = tech_category_uniforms
			}
			
		}
	}
	PER_standartize_rifles = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_standardize_military_equipment
		}
		fire_only_once = yes 
		days_remove = 20

		cost = 30

		remove_effect = {
			army_experience = 10
			add_tech_bonus = {
				bonus = 0.35
				uses = 1
				category = rifle_equipment_techs 
			}
			
		}
	}
	PER_standartize_artillery = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_standardize_military_equipment
		}
		fire_only_once = yes 
		days_remove = 20

		cost = 30

		remove_effect = {
			army_experience = 10
			add_tech_bonus = {
				bonus = 0.35
				uses = 1
				category = artillery 
			}
			
		}
	}
	PER_recruit_cavalry = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_nezam_e_jadid
		}
		days_remove = 20

		cost = 250

		available = { 
			has_army_experience > 99
			NOT = { has_decision = PER_recruit_infantry }
		}
		
		remove_effect = {
		226 = {
			create_unit = {
				division = "name = \"Persian Infantry\" division_template = \"Persian Infantry\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = PER
				}
			}
			army_experience = -100
		}
	}
	PER_recruit_infantry = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_nezam_e_jadid
		}
		days_remove = 20

		cost = 250

		available = { 
			has_army_experience > 99 
			NOT = { has_decision = PER_recruit_cavalry }
		}
	
		remove_effect = {
		411 = {
			create_unit = {
				division = "name = \"Persian Cavalry\" division_template = \"Persian Cavalry\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = PER
				}
			}
			army_experience = -100
		}
	}
	PER_a_standing_army = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_nezam_e_jadid
		}
		days_remove = 120

		cost = 20

		available = { has_army_experience > 199 }
	
		remove_effect = {
			custom_effect_tooltip = PER_modifies_army_tt
			add_to_variable = { PER_army_aof = 0.05 tooltip = army_org_factor_tooltip }
			add_to_variable = { PER_army_ppg = -0.05 tooltip = political_power_gain_tooltip }
			add_to_variable = { PER_army_sf = 0.02 tooltip = stability_factor_tooltip }
		}
	}
	PER_suppress_babism = {
		icon = GFX_decision_generic_political_discourse
		visible = { has_completed_focus = PER_the_sunnis_in_our_empire }
		days_remove = 350

		remove_effect = {
			remove_ideas = { PER_idea_religious_uprisings_of_babism }
		}
	}
	PER_caucasus_mercenary = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_hire_mercenaries
		}
		days_remove = 30

		cost = 50
		modifier = {
			money_expenses = -0.25
		}

		remove_effect = {
		1395 = {
			create_unit = {
				division = "name = \"Caucasian Mercenary Division\" division_template = \"Persian Cavalry\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = PER
				}
			}
		}
	}
	PER_central_asia_mercenary = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_hire_mercenaries
		}
		days_remove = 30

		cost = 50
		modifier = {
			money_expenses = -0.25
		}

		remove_effect = {
		1395 = {
			create_unit = {
				division = "name = \"Central Asian Mercenary Division\" division_template = \"Persian Cavalry\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = PER
				}
			}
		}
	}
	PER_ottoman_mercenary = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_hire_mercenaries
		}
		days_remove = 30

		cost = 50
		modifier = {
			money_expenses = -0.25
		}

		remove_effect = {
		1395 = {
			create_unit = {
				division = "name = \"Ottoman Mercenary Division\" division_template = \"Persian Cavalry\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = PER
				}
			}
		}
	}
	PER_indian_mercenary = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_hire_mercenaries
		}
		days_remove = 30

		cost = 50
		modifier = {
			money_expenses = -0.25
		}

		remove_effect = {
		1395 = {
			create_unit = {
				division = "name = \"Indian Mercenary Division\" division_template = \"Persian Cavalry\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = PER
				}
			}
		}
	}
	PER_kurdish_mercenary = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_hire_mercenaries
		}
		days_remove = 30

		cost = 50
		modifier = {
			money_expenses = -0.25
		}

		remove_effect = {
		1395 = {
			create_unit = {
				division = "name = \"Kurdish Mercenary Division\" division_template = \"Persian Cavalry\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = PER
				}
			}
		}
	}
	PER_decision_train_units = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_raise_the_imperial_battalions
		}
		days_remove = 30

		cost = 80
		modifier = {
			money_expenses = -0.1
		}

		remove_effect = {
		1395 = {
			create_unit = {
				division = "name = \"Persian Infantry\" division_template = \"Persian Cavalry\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = PER
				}
			}
		}
	}
	PER_invite_british_advisors = {
		icon = generic_military
		visible = {
			has_completed_focus = PER_invite_european_advisors
		}
		fire_only_once = yes 
		days_remove = 30

		cost = 50

		remove_effect = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
		}

		complete_effect = {
			add_stability = -0.01
		}
	}
	PER_invite_french_advisors = {
		icon = generic_military
		visible = {
			has_completed_focus = PER_invite_european_advisors
		}
		fire_only_once = yes 
		days_remove = 30

		cost = 50

		remove_effect = {
			add_tech_bonus = {
				bonus = 0.25
				uses = 1
				category = economics_tech
			}
		}

		complete_effect = {
			add_stability = -0.01
		}
	}
	PER_invite_russian_advisors = {
		icon = generic_military
		visible = {
			has_completed_focus = PER_invite_european_advisors
		}
		fire_only_once = yes 
		days_remove = 30

		cost = 50

		remove_effect = {
			add_tech_bonus = {
				bonus = 0.25
				uses = 1
				category = infantry_weapons
			}
		}

		complete_effect = {
			add_stability = -0.01
		}
	}
	PER_invite_prussian_advisors = {
		icon = generic_military
		visible = {
			has_completed_focus = PER_invite_european_advisors
		}
		fire_only_once = yes 
		days_remove = 30

		cost = 50

		remove_effect = {
			add_tech_bonus = {
				bonus = 0.25
				uses = 1
				category = artillery
			}
		}

		complete_effect = {
			add_stability = -0.01
		}
	}
	PER_invite_austrian_advisors = {
		icon = generic_military
		visible = {
			has_completed_focus = PER_invite_european_advisors
		}
		fire_only_once = yes 
		days_remove = 30

		cost = 50

		remove_effect = {
			add_tech_bonus = {
				bonus = 0.25
				uses = 1
				category = artillery
			}
		}

		complete_effect = {
			add_stability = -0.01
		}
	}
}

PER_BoP_decisions = {
	PER_decision_promote_masjid_attendance = {
		icon = generic_decision

		days_remove = 80

		cost = 20
	
		complete_effect = {
			add_power_balance_modifier = {
				id = PER_BoP_Shah_Clergy_strugle
				modifier = PER_BoP_promote_masjid_attendance
			}
		}

		remove_effect = {
			remove_power_balance_modifier = {
				id = PER_BoP_Shah_Clergy_strugle
				modifier = PER_BoP_promote_masjid_attendance
			}
		}
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_invite_clerics_to_palace = {
		icon = GFX_decision_envelope

		days_remove = 80

		cost = 20

		remove_effect = {
			add_power_balance_value = {
				id = PER_BoP_Shah_Clergy_strugle
				value = -0.08
			}
		}
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_empower_the_bonyards = {
		icon = GFX_decision_constitution

		days_remove = 80

		cost = 20

		remove_effect = {
			add_power_balance_value = {
				id = PER_BoP_Shah_Clergy_strugle
				value = -0.08
			}
		}
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_commemorate_a_mullah = {
		icon = GFX_decision_constitution

		days_remove = 50

		cost = 20

		remove_effect = {
			add_power_balance_value = {
				id = PER_BoP_Shah_Clergy_strugle
				value = -0.03
			}
		}
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_funds_for_masjid = {
		icon = money

		days_remove = 80

		cost = 10

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.02
			}
		}

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.02 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			add_power_balance_value = {
				id = PER_BoP_Shah_Clergy_strugle
				value = -0.1
			}
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.02 }
			add_money_with_tooltip_effect = yes
		}
		ai_will_do = {
			base = 100
		}
	}

	PER_decision_discuss_western_ideas = {
		icon = GFX_decision_generic_political_discourse

		days_remove = 80

		cost = 20
	
		complete_effect = {
			add_power_balance_modifier = {
				id = PER_BoP_Shah_Clergy_strugle
				modifier = PER_BoP_discuss_western_ideas
			}
		}

		remove_effect = {
			remove_power_balance_modifier = {
				id = PER_BoP_Shah_Clergy_strugle
				modifier = PER_BoP_discuss_western_ideas
			}
		}
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_humiliate_clergyman = {
		icon = GFX_decision_justice

		days_remove = 80

		cost = 20

		remove_effect = {
			add_power_balance_value = {
				id = PER_BoP_Shah_Clergy_strugle
				value = 0.04
			}
		}
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_seize_clerical_holdings = {
		icon = generic_decision

		days_remove = 80

		cost = 30

		remove_effect = {
			add_power_balance_value = {
				id = PER_BoP_Shah_Clergy_strugle
				value = 0.1
			}
		}
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_cutback_funds_for_masjid = {
		icon = money

		days_remove = 80

		cost = 30

		remove_effect = {
			add_power_balance_value = {
				id = PER_BoP_Shah_Clergy_strugle
				value = 0.08
			}
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = 0.02 }
			add_money_with_tooltip_effect = yes
		}
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_promote_intelligentsia = {
		icon = GFX_decision_newspaper_open

		days_remove = 50

		cost = 15

		available = {
			has_idea = PER_idea_iranian_intelligentsia
		}

		remove_effect = {
			add_power_balance_value = {
				id = PER_BoP_Shah_Clergy_strugle
				value = 0.03
			}
		}
		ai_will_do = {
			base = 100
		}
	}
}

PER_decision_category_economy = {
	PER_decision_revert_tarrif_increase = {
		icon = generic_construction
		days_remove = 5
		cost = 20
		visible = {
			has_completed_focus = PER_increase_tariffs
		}

		available = {
			has_completed_focus = PER_increase_tariffs
			has_country_flag = PER_flag_high_tariffs
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = -0.3 tooltip = money_income_tooltip }
			add_to_variable = { PER_economy_tof = 0.1 tooltip = trade_opinion_factor_tooltip }
			add_to_variable = { PER_economy_rtcbpf = 1 tooltip = resource_trade_cost_bonus_per_factory_tt }
			clr_country_flag = PER_flag_high_tariffs
			set_country_flag = PER_flag_low_tariffs
		}
	
		ai_will_do = {
			base = 100
		}
	}
	PER_decision_increase = {
		icon = generic_construction
		days_remove = 5
		cost = 20
		visible = {
			has_completed_focus = PER_increase_tariffs
		}

		available = {
			has_completed_focus = PER_increase_tariffs
			has_country_flag = PER_flag_low_tariffs
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.3 tooltip = money_income_tooltip }
			add_to_variable = { PER_economy_tof = -0.1 tooltip = trade_opinion_factor_tooltip }
			add_to_variable = { PER_economy_rtcbpf = -1 tooltip = resource_trade_cost_bonus_per_factory_tt }
			clr_country_flag = PER_flag_low_tariffs
			set_country_flag = PER_flag_high_tariffs
		}
	
		ai_will_do = {
			base = 100
		}
	}
	PER_mission_support_of_industries = {
		icon = generic_construction
		days_mission_timeout = 180
		allowed = {
			always = no
		}
		available = {
			NOT = { has_idea = PER_idea_goverment_incentives }
		}
		timeout_effect = {
			activate_mission = PER_mission_support_of_industries
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					is_core_of = ROOT
				}
				random_list = {
					30 = {
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
					35 = {
						if = {
							limit = { infrastructure > 19 }
							ROOT = { add_stability = 0.02 }
							else = {
								add_building_construction = {
									type = infrastructure
									level = 1
									instant_build = yes
								}
							}
						}
					}
					25 = {
					}
					10 = {
						custom_effect_tooltip = PER_corruption_tt
						PER = { add_stability = -0.05 }
					}
				}
			}
		}
	}
	PER_decision_stop_the_program = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 10
		cost = 10
		visible = {
			has_idea = PER_idea_goverment_incentives
		}

		available = {
			has_idea = PER_idea_goverment_incentives
		}

		remove_effect = {
			remove_ideas = PER_idea_goverment_incentives
		}
	
		ai_will_do = {
			base = 100
		}
	}

	PER_decision_renovate_shrines_khorosan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 90

		visible = {
			has_completed_focus = PER_renovate_the_holy_shrines
		}

		available = {
			owns_state = 416
			set_temp_variable = {
				amount_of_money_to_check = 0.8
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.8 }
		}
		custom_cost_text = eoanb_money_cost_text

		highlight_states = {
			highlight_state_targets = {
				state = 416
			}
		}

		remove_effect = {
			416 = { add_extra_state_shared_building_slots = 1 }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.8 }
			add_money_with_tooltip_effect = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	PER_decision_renovate_shrines_hamedan_masumeh = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 90

		visible = {
			has_completed_focus = PER_renovate_the_holy_shrines
		}

		available = {
			owns_state = 417
			set_temp_variable = {
				amount_of_money_to_check = 0.8
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.8 }
		}
		custom_cost_text = eoanb_money_cost_text

		highlight_states = {
			highlight_state_targets = {
				state = 417
			}
		}

		remove_effect = {
			417 = { add_extra_state_shared_building_slots = 1 }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.8 }
			add_money_with_tooltip_effect = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	PER_decision_renovate_shrines_tehran = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 90

		visible = {
			has_completed_focus = PER_renovate_the_holy_shrines
		}

		available = {
			owns_state = 266
			set_temp_variable = {
				amount_of_money_to_check = 0.8
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.8 }
		}
		custom_cost_text = eoanb_money_cost_text

		highlight_states = {
			highlight_state_targets = {
				state = 266
			}
		}

		remove_effect = {
			266 = { add_extra_state_shared_building_slots = 1 }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.8 }
			add_money_with_tooltip_effect = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	PER_decision_renovate_shrines_hamedan_jamkaran = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 90

		visible = {
			has_completed_focus = PER_renovate_the_holy_shrines
		}

		available = {
			owns_state = 417
			set_temp_variable = {
				amount_of_money_to_check = 0.8
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.8 }
		}
		custom_cost_text = eoanb_money_cost_text

		highlight_states = {
			highlight_state_targets = {
				state = 417 
			}
		}

		remove_effect = {
			417 = { add_extra_state_shared_building_slots = 1 }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.8 }
			add_money_with_tooltip_effect = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	PER_decision_renovate_shrines_hamedan_sayyidah_khadija = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 90

		visible = {
			has_completed_focus = PER_renovate_the_holy_shrines
		}

		available = {
			owns_state = 412
			set_temp_variable = {
				amount_of_money_to_check = 0.8
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.8 }
		}
		custom_cost_text = eoanb_money_cost_text

		highlight_states = {
			highlight_state_targets = {
				state = 412 
			}
		}

		remove_effect = {
			412 = { add_extra_state_shared_building_slots = 1 }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.8 }
			add_money_with_tooltip_effect = yes
		}

		ai_will_do = {
			base = 100
		}
	}

	PER_mission_build_masjids = {
		icon = generic_construction
		days_mission_timeout = 180

		visible = {
			has_completed_focus = PER_build_masjids
		}

		allowed = {
			always = no
		}

		available = {
			has_decision = PER_decision_build_masjidas
		}

		timeout_effect = {
			country_event = { id = persia.203 days = 3 }
		}
	}

	PER_decision_build_masjidas = {
		icon = generic_construction
		fire_only_once = no
		days_remove = 10
		days_re_enable = 10

		visible = {
			has_active_mission = PER_mission_build_masjids
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.2
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.2 }
		}
		custom_cost_text = eoanb_money_cost_text

		highlight_states = {
			highlight_state_targets = {
				state = 412 
			}
		}

		remove_effect = {

		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.2 }
			add_money_with_tooltip_effect = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	PER_decision_capital_infrastructure = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 90

		visible = {
			has_completed_focus = PER_capital_infrastructure
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.25 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			1395 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_develop_gilan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 180

		visible = {
			has_completed_focus = PER_develop_border_regions
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.35
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.35 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			420 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.35 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_develop_tibriz = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 180

		visible = {
			has_completed_focus = PER_develop_border_regions
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.35
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.35 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			419 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.35 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_develop_west_azerbaijan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 180

		visible = {
			has_completed_focus = PER_develop_border_regions
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.5 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			1396 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_develop_kurdistan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 180

		visible = {
			has_completed_focus = PER_develop_border_regions
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.5 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			421 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_develop_ilam = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 180

		visible = {
			has_completed_focus = PER_develop_border_regions
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.5 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			1305 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_develop_arabistan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 180

		visible = {
			has_completed_focus = PER_develop_border_regions
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.5 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			413 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_isfahan_tehran_line = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 210

		visible = {
			has_completed_focus = PER_teheran_isfahan_line
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.65
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.65 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			1395 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			417 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.65 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_khanaqin_tehran_line = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 210

		visible = {
			has_completed_focus = PER_teheran_khanaqin_line
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 1 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			1395 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			417 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			1305 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_tehran_bushehr_line = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 210

		visible = {
			has_completed_focus = PER_teheran_bushehr_line
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.65
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.65 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			412 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			411 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.65 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_royal_roads_line = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 210

		visible = {
			has_completed_focus = PER_upgrade_the_royal_road
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.6
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.6 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			1305 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			411 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.6 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_new_agricultural_reforms = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 20

		cost = 50

		visible = {
			has_completed_focus = PER_agricultural_reforms
		}

		remove_effect = {
			country_event = { id = persia.260 }
		}
	}
	PER_decision_agricultural_innovation = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 25

		cost = 50

		visible = {
			has_completed_focus = PER_agricultural_reforms
		}

		remove_effect = {
			country_event = { id = persia.261 }
		}
	}
	PER_decision_build_farm_tabriz = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 240

		visible = {
			has_completed_focus = PER_stabilize_the_wheat_market
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.35
			}
			has_completed_focus = PER_stabilize_the_wheat_market
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.35 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			419 = {
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.35 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_cotton_growers_building_space_isfahan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 40

		visible = {
			has_completed_focus = PER_cotton_growers_in_isfahan
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.2
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.2 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			411 = { add_extra_state_shared_building_slots = 1 }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.2 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_cotton_growers_farm_isfahan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 160

		visible = {
			has_completed_focus = PER_cotton_growers_in_isfahan
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.4
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.4 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			1395 = {
				add_building_construction = {
					type = cotton_farm
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.4 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_expand_carpet_building_space_isfahan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 50

		visible = {
			has_completed_focus = PER_expand_the_carpet_weaving_industry
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.2
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.2 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			411 = { add_extra_state_shared_building_slots = 1 }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.2 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_expand_carpet_farm_isfahan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 170

		visible = {
			has_completed_focus = PER_expand_the_carpet_weaving_industry
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.4
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.4 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			411 = {
				add_building_construction = {
					type = fabric_weavery
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.4 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_opium_production_isfahan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 250

		visible = {
			has_completed_focus = PER_opium_production
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.6
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.6 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			411 = { 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.01 tooltip = money_income_tooltip }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.6 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_opium_production_khorsan = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 250

		visible = {
			has_completed_focus = PER_opium_production
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.6
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.6 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			416 = { 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.01 tooltip = money_income_tooltip }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.6 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_opium_production_tehran = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 250

		visible = {
			has_completed_focus = PER_opium_production
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.6
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.6 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			1395 = { 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.01 tooltip = money_income_tooltip }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.6 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_opium_production_kerman = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 250

		visible = {
			has_completed_focus = PER_opium_production
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.6
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.6 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			414 = { 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.01 tooltip = money_income_tooltip }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.6 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_decision_fars_fields = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 250

		visible = {
			has_completed_focus = PER_the_fars_fields
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.6
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.6 }
		}
		custom_cost_text = eoanb_money_cost_text

		remove_effect = {
			865 = { 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.6 }
			add_money_with_tooltip_effect = yes
		}
	}
	PER_mission_establish_central_bank = {
		icon = generic_decision
		fire_only_once = yes
		days_mission_timeout = 40

		allowed = {
			always = no
		}

		available = {
			always = no
		}

		timeout_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = -0.05 tooltip = money_income_tooltip }
		}
	}
	PER_decision_land_tax_reform = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 30
		cost = 50

		visible = {
			has_completed_focus = PER_taxation_reforms
		}

		complete_effect = {
			add_stability = -0.01
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.03 tooltip = money_income_tooltip }
		}
	}
	PER_decision_central_tax_agents = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 30
		cost = 70

		visible = {
			has_completed_focus = PER_taxation_reforms
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.03 tooltip = money_income_tooltip }
		}
	}
	PER_decision_introduce_new_custom_duties = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 30
		cost = 50

		visible = {
			has_completed_focus = PER_taxation_reforms
		}

		complete_effect = {
			add_stability = -0.01
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.05 tooltip = money_income_tooltip }
		}
	}
	PER_decision_agricultural_support = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 30
		cost = 50

		visible = {
			has_completed_focus = PER_taxation_reforms
		}

		complete_effect = {
			add_stability = 0.03
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.01 tooltip = money_income_tooltip }
			420 = {
				add_building_construction = {
					type = cotton_farm
					level = 1
					instant_build = yes
				}
			}
			421 = {
				add_building_construction = {
					type = cotton_farm
					level = 1
					instant_build = yes
				}
			}
		}
	}
	PER_decision_busher_wheat_exports = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 160

		visible = {
			has_completed_focus = PER_bushehr_wheat_exports
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.1
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.1 }
		}
		custom_cost_text = eoanb_money_cost_text

		modifier = { money_income = -0.1 }

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.8 tooltip = money_income_tooltip }
		}
	}
	PER_decision_kashan_pottery = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 80

		visible = {
			has_completed_focus = PER_kashan_pottery
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.15
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.15 }
		}
		custom_cost_text = eoanb_money_cost_text

		modifier = { money_income = -0.15 }

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.3 tooltip = money_income_tooltip }
		}
	}
	PER_decision_cotton_market = {
		icon = generic_construction
		fire_only_once = yes
		days_remove = 60

		visible = {
			has_completed_focus = PER_the_cotton_market
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.15
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.15 }
		}
		custom_cost_text = eoanb_money_cost_text

		modifier = { money_income = -0.2 }

		remove_effect = {
			411 = { #Isfahan
				add_resource = {
					type = cotton
					amount = 3
				}
			}
		}
	}
}
eoanb_category_politics_foreign = {
	PER_decision_travel_to_fra = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_the_shahs_travels_to_europe
		}

		available = {
			NOT = {
				has_country_flag = shah_traveling
			}
		}

		cost = 30
		fire_only_once = yes 
		days_remove = 30

		complete_effect = {
			add_opinion_modifier = { target = FRA modifier = eoanb_om_increase_rel_20 }
			reverse_add_opinion_modifier = { target = FRA modifier = eoanb_om_increase_rel_20 }
			FRA = {
				country_event = { id = persia.107 days = 7 }
			}
			hidden_effect = {
				set_country_flag = shah_traveling
			}
		}

		remove_effect = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.1
				uses = 1
				category = land_doctrine
			}
			hidden_effect = {
				clr_country_flag = shah_traveling
			}
		}
	}
	PER_decision_travel_to_eng = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_the_shahs_travels_to_europe
		}

		available = {
			NOT = {
				has_country_flag = shah_traveling
			}
		}

		cost = 30
		fire_only_once = yes 
		days_remove = 30

		complete_effect = {
			add_opinion_modifier = { target = ENG modifier = eoanb_om_increase_rel_20 }
			reverse_add_opinion_modifier = { target = ENG modifier = eoanb_om_increase_rel_20 }
			ENG = {
				country_event = { id = persia.107 days = 7 }
			}
			hidden_effect = {
				set_country_flag = shah_traveling
			}
		}

		remove_effect = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.1
				uses = 1
				category = naval_doctrine
			}
			hidden_effect = {
				clr_country_flag = shah_traveling
			}
		}
	}
	PER_decision_travel_to_prs = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_the_shahs_travels_to_europe
		}

		available = {
			NOT = {
				has_country_flag = shah_traveling
			}
		}

		cost = 30
		fire_only_once = yes 
		days_remove = 30

		complete_effect = {
			add_opinion_modifier = { target = PRS modifier = eoanb_om_increase_rel_20 }
			reverse_add_opinion_modifier = { target = PRS modifier = eoanb_om_increase_rel_20 }
			PRS = {
				country_event = { id = persia.107 days = 7 }
			}
			hidden_effect = {
				set_country_flag = shah_traveling
			}
		}

		remove_effect = {
			add_tech_bonus = { bonus = 0.1 uses = 1 category = mechanical_engineering_tech }
			hidden_effect = {
				clr_country_flag = shah_traveling
			}
		}
	}
	PER_decision_travel_to_aus = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_the_shahs_travels_to_europe
		}

		available = {
			NOT = {
				has_country_flag = shah_traveling
			}
		}

		cost = 30
		fire_only_once = yes 
		days_remove = 30

		complete_effect = {
			add_opinion_modifier = { target = AUS modifier = eoanb_om_increase_rel_20 }
			reverse_add_opinion_modifier = { target = AUS modifier = eoanb_om_increase_rel_20 }
			AUS = {
				country_event = { id = persia.107 days = 7 }
			}
			hidden_effect = {
				set_country_flag = shah_traveling
			}
		}

		remove_effect = {
			add_tech_bonus = { bonus = 0.1 uses = 1 category = process_engineering_tech }
			hidden_effect = {
				clr_country_flag = shah_traveling
			}
		}
	}
	PER_decision_travel_to_ita = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_the_shahs_travels_to_europe
		}

		available = {
			NOT = {
				has_country_flag = shah_traveling
			}
		}

		cost = 30
		fire_only_once = yes 
		days_remove = 30

		complete_effect = {
			add_opinion_modifier = { target = PIE modifier = eoanb_om_increase_rel_20 }
			reverse_add_opinion_modifier = { target = PIE modifier = eoanb_om_increase_rel_20 }
			ITA = {
				country_event = { id = persia.107 days = 7 }
			}
			hidden_effect = {
				set_country_flag = shah_traveling
			}
		}

		remove_effect = {
			add_tech_bonus = { bonus = 0.1 uses = 1 category = aviation_tech }
			hidden_effect = {
				clr_country_flag = shah_traveling
			}
		}
	}
	PER_decision_travel_to_swi = {
		icon = generic_decision
		visible = {
			has_completed_focus = PER_the_shahs_travels_to_europe
		}

		available = {
			NOT = {
				has_country_flag = shah_traveling
			}
		}

		cost = 30
		fire_only_once = yes 
		days_remove = 30

		complete_effect = {
			add_opinion_modifier = { target = SWI modifier = eoanb_om_increase_rel_20 }
			reverse_add_opinion_modifier = { target = SWI modifier = eoanb_om_increase_rel_20 }
			SWI = {
				country_event = { id = persia.107 days = 7 }
			}
			hidden_effect = {
				set_country_flag = shah_traveling
			}
		}

		remove_effect = {
			add_tech_bonus = { bonus = 0.1 uses = 1 category = electronics }
			hidden_effect = {
				clr_country_flag = shah_traveling
			}
		}
	}
}
PER_decision_category_bahrain_revolt = {
	PER_decision_influence_population_bhr = {

		icon = generic_military

		available = {
			has_completed_focus = PER_bahrain_vassalge
		}
		visible = {
			NOT = { has_country_flag = PER_BHR_puppeted }
		}
		targets = {
			BHR
		}
		
		fire_only_once = no
		days_remove = 80
		cost = 50

		complete_effect = {
			add_to_variable = {
				var = PER_bahrain_revolt_var
				value = 5
			}
			
			custom_effect_tooltip = PER_increase_influence_5_tt
		}

		ai_will_do = {
			factor = 10
		}

	}
	PER_decision_arm_shia_extremists_bhr = {

		icon = generic_prepare_civil_war

		available = {
			has_completed_focus = PER_bahrain_vassalge
			has_equipment = { infantry_equipment > 199 }
		}
		visible = {
			NOT = { has_country_flag = PER_BHR_puppeted }
		}
		targets = {
			BHR
		}
		
		fire_only_once = no
		days_remove = 120
		cost = 20

		complete_effect = {
			add_to_variable = {
				var = PER_bahrain_revolt_var
				value = 5
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -200
			}
			custom_effect_tooltip = PER_increase_influence_5_tt
		}

		ai_will_do = {
			factor = 10
		}

	}
	PER_decision_send_mullahs_bhr = {

		icon = generic_decision

		available = {
			has_completed_focus = PER_bahrain_vassalge
		}
		visible = {
			NOT = { has_country_flag = PER_BHR_puppeted }
		}
		targets = {
			BHR
		}
		
		fire_only_once = no
		days_remove = 150
		cost = 50

		complete_effect = {
			add_to_variable = {
				var = PER_bahrain_revolt_var
				value = 8
			}
			custom_effect_tooltip = PER_increase_influence_8_tt
		}

		remove_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	PER_decision_ignite_the_coup = {

		icon = generic_decision

		available = {
			has_completed_focus = PER_bahrain_vassalge
			custom_trigger_tooltip = {
				tooltip = PER_has_more_then_100_influence_tt
				check_variable = { PER_bahrain_revolt_var = 100 compare = greater_than_or_equals }
			}
		}
		visible = {
			NOT = { has_country_flag = PER_BHR_puppeted }
		}
		targets = {
			BHR
		}
		
		fire_only_once = yes
		days_remove = 5
		cost = 10

		remove_effect = {
			country_event = { id = persia.111 }
			set_country_flag = PER_BHR_puppeted
		}

		ai_will_do = {
			factor = 10
		}

	}
	PER_decision_debug_free_coup = {

		icon = generic_decision

		available = {
			has_completed_focus = PER_bahrain_vassalge
			is_debug = yes
		}
		visible = {
			is_debug = yes
		}
		targets = {
			BHR
		}
		
		fire_only_once = no
		days_remove = 1
		cost = 0

		complete_effect = {
			add_to_variable = {
				var = PER_bahrain_revolt_var
				value = 100
			}
		}

		remove_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
}
PER_decision_category_foreign_diplomacy = {
	PER_decision_intergrate_balochi_coast = {
		icon = generic_decision

		available = {
			original_tag = PER
		}
		visible = {
			has_completed_focus = PER_push_back_omani_influence
		}
		targets = {
			OMA
		}
		
		fire_only_once = yes
		days_remove = 31
		cost = 50

		modifier = {
			money_income = 0.05
		}

		remove_effect = {
			add_opinion_modifier = { target = OMA modifier = PER_integrate_balochistan }
			reverse_add_opinion_modifier = { target = OMA modifier = PER_integrate_balochistan }
		}

		ai_will_do = {
			factor = 10
		}
	}
	PER_decision_intergrate_makran_coast = {
		icon = generic_decision

		available = {
			original_tag = PER
		}
		visible = {
			has_completed_focus = PER_push_back_omani_influence
		}
		targets = {
			OMA
		}
		
		fire_only_once = yes
		days_remove = 31
		cost = 50

		modifier = {
			money_income = 0.03
		}

		remove_effect = {
			add_opinion_modifier = { target = OMA modifier = PER_integrade_makran }
			reverse_add_opinion_modifier = { target = OMA modifier = PER_integrade_makran }
		}

		ai_will_do = {
			factor = 10
		}
	}
	PER_decision_intergrate_makran_coast2 = {
		icon = generic_decision

		available = {
			original_tag = PER
		}
		visible = {
			has_completed_focus = PER_push_back_omani_influence
		}
		targets = {
			OMA
		}
		
		fire_only_once = yes
		days_remove = 31
		cost = 50

		modifier = {
			money_income = 0.02
		}

		remove_effect = {
			add_opinion_modifier = { target = OMA modifier = PER_integrade_rest_of_makran }
			reverse_add_opinion_modifier = { target = OMA modifier = PER_integrade_rest_of_makran }
		}

		ai_will_do = {
			factor = 10
		}
	}
	PER_mission_gwadar_war = { # For Persia
		icon = generic_military
		days_mission_timeout = 180

		allowed = {
			always = no
		}

		available = {
			controls_state = 1355
		}

		complete_effect	= {
			set_state_owner = 1355
			white_peace = OMA
		}

		timeout_effect = {
			white_peace = OMA
		}
	}

	PER_decision_ask_for_protection_RUS = {
		icon = generic_decision

		available = {
			original_tag = PER
		}
		visible = {
			has_completed_focus = PER_seek_for_foreign_protection
		}
		targets = {
			RUS
		}
		
		fire_only_once = yes
		days_remove = 30
		cost = 30

		remove_effect = {
			add_opinion_modifier = { target = RUS modifier = PER_increase_opinion }
			reverse_add_opinion_modifier = { target = RUS modifier = PER_increase_opinion }
			add_stability = 0.01
			add_war_support = 0.02
		}

		ai_will_do = {
			factor = 10
		}
	}
	PER_decision_ask_for_protection_FRA = {
		icon = generic_decision

		available = {
			original_tag = PER
		}
		visible = {
			has_completed_focus = PER_seek_for_foreign_protection
		}
		targets = {
			FRA
		}
		
		fire_only_once = yes
		days_remove = 30
		cost = 30

		remove_effect = {
			add_opinion_modifier = { target = FRA modifier = PER_increase_opinion }
			reverse_add_opinion_modifier = { target = FRA modifier = PER_increase_opinion }
			add_stability = 0.01
			add_war_support = 0.02
		}

		ai_will_do = {
			factor = 10
		}
	}
	PER_decision_ask_for_protection_OTO = {
		icon = generic_decision

		available = {
			original_tag = PER
		}
		visible = {
			has_completed_focus = PER_seek_for_foreign_protection
		}
		targets = {
			OTO
		}
		
		fire_only_once = yes
		days_remove = 30
		cost = 30

		remove_effect = {
			add_opinion_modifier = { target = OTO modifier = PER_increase_opinion }
			reverse_add_opinion_modifier = { target = OTO modifier = PER_increase_opinion }
			add_stability = 0.01
			add_war_support = 0.02
		}

		ai_will_do = {
			factor = 10
		}
	}
}
PER_decision_category_oman_diplomacy = { # Musandam conflict only basicaly
	PER_decision_send_rifles_to_our_forces = {

		icon = generic_prepare_civil_war

		available = {
			has_equipment = { infantry_equipment > 499 }
			command_power > 9
		}

		custom_cost_trigger = {
			command_power > 9
		}
		custom_cost_text = eoanb_command_power_10

		visible = {
			has_completed_focus = PER_secure_the_gulf_gateway
			NOT = { has_country_flag = PER_musandam_conflict_end }
		}

		fire_only_once = no
		days_remove = 120

		complete_effect = {
			add_to_variable = {
				var = PER_PER_musandam_control
				value = 5
			}
			add_to_variable = {
				var = PER_OMA_musandam_control
				value = -5
			}
			add_command_power = -10
			custom_effect_tooltip = PER_increase_influence_musandam_5_tt

			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -500
			}
		}

		ai_will_do = {
			factor = 10
		}

	}

	PER_decision_send_artillery_to_our_forces = {

		icon = generic_prepare_civil_war

		available = {
			has_equipment = { cannon_equipment_0 > 49 }
			command_power > 10
		}

		custom_cost_trigger = {
			command_power > 9
		}
		custom_cost_text = eoanb_command_power_10

		visible = {
			has_completed_focus = PER_secure_the_gulf_gateway
			NOT = { has_country_flag = PER_musandam_conflict_end }
		}

		fire_only_once = no
		days_remove = 120

		complete_effect = {
			add_to_variable = {
				var = PER_PER_musandam_control
				value = 5
			}
			add_to_variable = {
				var = PER_OMA_musandam_control
				value = -5
			}
			add_command_power = -10
			custom_effect_tooltip = PER_increase_influence_musandam_5_tt

			add_equipment_to_stockpile = {
				type = cannon_equipment_0
				amount = -50
			}
		}

		ai_will_do = {
			factor = 10
		}

	}
	PER_decision_spread_influence_musandam = {

		icon = generic_military

		available = {
			
		}
		targets = {
			OMA
		}

		visible = {
			has_completed_focus = PER_secure_the_gulf_gateway
			NOT = { has_country_flag = PER_musandam_conflict_end }
		}

		fire_only_once = no
		days_remove = 80
		cost = 30

		complete_effect = {
			add_to_variable = {
				var = PER_PER_musandam_control
				value = 5
			}
			add_to_variable = {
				var = PER_OMA_musandam_control
				value = -5
			}
			custom_effect_tooltip = PER_increase_influence_musandam_5_tt

		}
		ai_will_do = {
			factor = 10
		}

	}

	
}
PER_decision_category_musandam_war_eng = {
	PER_mission_ENG_war = { # For England
		icon = generic_military
		days_mission_timeout = 180

		allowed = {
			always = no
		}

		available = {
			OR = {
				controls_state = 1394
				PER = {
					surrender_progress > 0.25
				}
			}
			
		}

		complete_effect	= {
			OMA = {
				set_state_owner = 1394
			}
			add_timed_idea = {
				idea = PER_idea_britain_sanctions
				days = 1200
			}
			white_peace = PER
		}

		timeout_effect = {
			white_peace = PER
		}
	}
	PER_mission_ENG_war_for_persia = { # For Persia
		icon = generic_military
		days_mission_timeout = 180

		allowed = {
			always = no
		}

		custom_cost_text = PER_ENG_war_how_to_survive

		timeout_effect = {
			white_peace = ENG
		}
	}
	PER_mission_OMA_war_for_persia = { # For Persia
		icon = generic_military
		days_mission_timeout = 180

		allowed = {
			always = no
		}

		available = {
			OR = {
				controls_state = 1394
				OMA = {
					surrender_progress > 0.25
				}
			}
			
		}

		complete_effect	= {
			set_state_owner = 1394
			set_country_flag = PER_musandam_conflict_end
		}

		timeout_effect = {
			set_country_flag = PER_musandam_conflict_end
			white_peace = OMA
		}
	}
	PER_mission_OMA_war_for_oman = { # For Oman
		icon = generic_military
		days_mission_timeout = 180

		allowed = {
			always = no
		}

		custom_cost_text = PER_ENG_war_how_to_survive

		timeout_effect = {
			white_peace = OMA
		}
	}
}
eoanb_category_politics_internal = {
	PER_decision_translate_western_books = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 20
		cost = 20

		visible = {
			has_completed_focus = PER_cultural_reforms
		}

		complete_effect = {
			add_stability = -0.01
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.01 tooltip = money_income_tooltip }
		}
	}
	PER_decision_allow_western_influence = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 20
		cost = 50

		visible = {
			has_completed_focus = PER_cultural_reforms
		}

		complete_effect = {
			add_stability = -0.02
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.01 tooltip = money_income_tooltip }
		}
	}
	PER_decision_invite_cultural_social_changes = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 1500
		cost = 50

		visible = {
			has_completed_focus = PER_cultural_reforms
		}

		modifier = {
			stability_weekly = 0.02
		}

	}
	PER_decision_open_newspapers_journals = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 1200
		cost = 30

		visible = {
			has_completed_focus = PER_cultural_reforms
		}

		modifier = {
			stability_weekly = 0.015
		}

	}
	PER_decision_establish_divan_edalat = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 2000
		cost = 50

		visible = {
			has_completed_focus = PER_judicial_reforms
		}

		complete_effect = {
			add_stability = -0.02
		}

		modifier = {
			political_power_gain = 0.025
		}

	}
	PER_decision_introduce_commercial_code = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 30
		cost = 50

		visible = {
			has_completed_focus = PER_judicial_reforms
		}

		complete_effect = {
			add_stability = -0.01
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.1 tooltip = money_income_tooltip }
		}
	}
	PER_decision_codify_criminal_law = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 35
		cost = 50

		visible = {
			has_completed_focus = PER_judicial_reforms
		}

		complete_effect = {
			add_stability = -0.01
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.02 tooltip = money_income_tooltip }
		}
	}
	PER_decision_establish_centralized_education = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 110
		cost = 50

		visible = {
			has_completed_focus = PER_educational_reforms
		}

		available = {
			set_temp_variable = {
				amount_of_money_to_check = 0.025
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 0.025 }
		}
		custom_cost_text = eoanb_money_cost_text

		complete_effect = {
			add_stability = 0.01
			set_temp_variable = { money_to_gain = -0.025 }
			add_money_with_tooltip_effect = yes
			
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = 0.02 tooltip = money_income_tooltip }
		}
	}
	PER_decision_western_style_school = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 35
		cost = 50

		visible = {
			has_completed_focus = PER_educational_reforms
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = -0.05 tooltip = money_income_tooltip }
			add_to_variable = { PER_economy_rsf = 0.02 tooltip = research_speed_factor_tooltip }
		}
	}
	PER_decision_western_teaching_methods = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 35
		cost = 50

		visible = {
			has_completed_focus = PER_educational_reforms
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = -0.05 tooltip = money_income_tooltip }
			add_to_variable = { PER_economy_rsf = 0.02 tooltip = research_speed_factor_tooltip }
		}
	}
	PER_decision_foreign_missionary_schools = {
		icon = generic_decision
		fire_only_once = yes
		days_remove = 35
		cost = 50

		visible = {
			has_completed_focus = PER_educational_reforms
		}

		remove_effect = {
			custom_effect_tooltip = PER_modifies_economy_tt
			add_to_variable = { PER_economy_mi = -0.05 tooltip = money_income_tooltip }
			add_to_variable = { PER_economy_rsf = 0.02 tooltip = research_speed_factor_tooltip }
		}
	}
}