﻿end_british_concessions_decision = {
		is_shown = {
		OR = {
		this = c:PER
		this = c:QAJ
		}
		has_modifier = persia_tobacco_concessions_modifier
		NOT = {
		has_journal_entry = je_tobacco_protests
			}
		}			
	when_taken = {
	custom_tooltip = historical_tt
		
		remove_modifier = persia_tobacco_concessions_modifier
		trigger_event = { id = 03_persia_events.24 popup = yes }			
		}
		
	}
	
cossack_brigade_decision = {
		is_shown = {		
		OR = {
		this = c:PER
		this = c:QAJ
		}
				
		has_variable = can_bomb_majlis_var
					
		NOT = {
		has_variable = cossack_brigade_var
			}
		}
		
		possible = {				
		OR = {
            has_law = law_type:law_dedicated_police
            has_law = law_type:law_militarized_police
        }	
		institution_investment_level = {
            institution = institution_police
            value >= 3
        }
	}

	when_taken = {
	custom_tooltip = historical_tt
	set_variable = {
		name = cossack_brigade_var
		value = yes		
			}
	add_modifier = {
			name = cossack_brigade_modifier
			}
	
		}
		ai_chance = {
		base = 100
		}
	}
	
bomb_majlis_decision = {
		is_shown = {
		OR = {
		this = c:PER
		this = c:QAJ
		}
		has_variable = can_bomb_majlis_var
		NOT = {
		has_variable = bomb_majlis_var
			}
		}
		possible = {
		has_modifier = cossack_brigade_modifier		
		}
	
	when_taken = {
	custom_tooltip = historical_tt
	add_modifier = {
			name = majlis_dissolved_modifier
			}

				set_variable = {
		name = bomb_majlis_var
		value = yes		
			}
		
			add_journal_entry = {
		type = je_baskerville_siege_of_tabriz
				}
			create_character = {
					first_name = sattar
					last_name = khan
					historical = yes
					interest_group = ig_trade_unions
					female = no
					#birth_date = 1866.11.17
					is_agitator = yes
					culture = cu:azerbaijani
					religion = rel:shiite
					ideology = ideology_socialist					
					traits = {
					brave
					popular_commander
					stalwart_defender
					}
			}
		}
		ai_chance = {
		base = 100
		}
	}
	
	
hire_shuster_decision = {
		is_shown = {
		OR = {
		this = c:PER
		this = c:QAJ
		}
		NOT = {
		has_variable = shuster_hired_var
			}
		has_variable = constitution_returns_var
		}
		possible = {				
		OR = {
		has_interest_marker_in_region = region_new_england
		has_interest_marker_in_region = region_dixie
		c:USA = {
			has_interest_marker_in_region = region_persia		
			}
		}
	}
	when_taken = {
	custom_tooltip = historical_tt
	create_character = {
					first_name = Morgan
					last_name = Shuster
					historical = yes
					#is_general = yes
					interest_group = ig_intelligentsia
					female = no
					is_agitator = yes
					#birth_date = 1877.2.23
					culture = cu:yankee
					religion = rel:protestant
					ideology = ideology_meritocratic					
					traits = {												
						master_bureaucrat
						literary
						#plot_armor
					}
				on_created = {
				set_variable = {
					name = morgan_shuster_var					
				}				
			}
		}
	add_modifier = {
			name = shuster_modifier
			}
		add_journal_entry = {
		type = je_shuster_refinancing
			}			

		
		set_variable = {
		name = shuster_hired_var
		value = yes		
			}
		}
		ai_chance = {
		base = 100
		}
}

nationalise_oil_decision = {
		is_shown = {
		OR = {
		this = c:PER
		this = c:QAJ
		}
		has_variable = mossadeq_wins_var
		has_journal_entry = je_anglo_persian_oil_company
		NOT = { has_variable = iranian_oil_nationalised_var }
		}		

	when_taken = {
	custom_tooltip = historical_tt
	set_variable = iranian_oil_nationalised_var
	add_loyalists = {
			value = 0.2
			}
		
	add_modifier = {
	name = british_blockade_modifier
		}
	trigger_event = { id = 03_persia_events.43 }
	}
	ai_chance = {
		base = 100
		}	
}

emergency_powers_decision = {
		is_shown = {
		OR = {
		this = c:PER
		this = c:QAJ
		}
		has_modifier = british_blockade_modifier
		has_variable = mossadeq_wins_var
		NOT = { has_variable = emergency_powers_persia_var }
		}		

	when_taken = {
	custom_tooltip = historical_tt
	set_variable = emergency_powers_persia_var
	add_modifier = {
	name = emergency_powers_modifier
	months = 6
		}
	add_journal_entry = {
	type = je_british_seek_american_help
		}
	}
	ai_chance = {
		base = 100
		}
}

more_emergency_powers_decision = {
		is_shown = {
		OR = {
		this = c:PER
		this = c:QAJ
		}
		has_modifier = british_blockade_modifier
		has_variable = emergency_powers_persia_var
		NOT = {
		has_variable = more_emergency_powers_persia_var
		has_modifier = emergency_powers_modifier
			}
		}		

	when_taken = {
	custom_tooltip = historical_tt
	set_variable = more_emergency_powers_persia_var
	add_modifier = {
	name = emergency_powers_modifier
	months = 12
		}
	
	}
	ai_chance = {
		base = 100
		}
}

most_favored_nation_decision = {
		is_shown = {
		OR = {
		this = c:PER
		this = c:QAJ
		}
		has_variable = most_favored_nation_var
		}		
	
	possible = {
	c:USA = {
	NOT = {
				
				has_diplomatic_pact = {
					who = root
					type = trade_agreement
				}			
			}
		}
	}
	
	when_taken = {
	c:USA = {
			create_diplomatic_pact = {
            country = root
            type = trade_agreement
			}			
		}
	
	}
	ai_chance = {
		base = 100
		}
}

iraqi_universities_decision = {
		is_shown = {
		has_modifier = the_crescent_modifier
		has_global_variable = iraqi_universities_var
		NOT = {
		has_variable = sent_to_iraqi_universities_var
		}
	}		
	
	
	when_taken = {
	add_modifier = iraqi_universities_modifier
	set_variable = sent_to_iraqi_universities_var
	}
	
	ai_chance = {
		base = 100
	}
}

iraqi_crucial_resources_decision = {
		is_shown = {
		has_modifier = the_crescent_modifier
		has_global_variable = iraqi_crucial_resources_var
		NOT = {
		has_variable = started_crucial_resources_var
		}
	}		
	
	
	when_taken = {
	add_modifier = iraqi_crucial_resources_modifier
	set_variable = started_crucial_resources_var
	}
	
	ai_chance = {
		base = 100
	}
}

syria_state_faith_decision = {
		is_shown = {
		has_modifier = the_crescent_modifier
		has_global_variable = syria_state_faith_var
		NOT = {
		has_variable = started_syria_state_faith_var
		}
	}		
	
	
	when_taken = {
	add_modifier = syria_state_faith_modifier
	set_variable = started_syria_state_faith_var
	}
	
	ai_chance = {
		base = 100
	}
}