namespace = easycheats_building_slots

easycheats_building_slots.1 = {
type = country_event
title = "easycheats_main.1.title"
desc = "easycheats_main.1.desc"

left_portrait = root.current_ruler

picture = easycheats_main_bg

option = {
	name = "easycheats_exit"

	ai_chance = { 
		factor = 100 
	}
}

option = {
	name = "easycheats_main_modifiers"
	
	trigger_event = {
		id = easycheats_main.1
	}

	ai_chance = { 
		factor = 0 
	}
}
option = {
	name = "easycheats_back_to_common"

	trigger_event = {
		id = easycheats_main.3
	}

	ai_chance = { 
		factor = 0 
	}
}

option = {
	name = "easycheats_building_slots_100_on"
	
	trigger = {
			NOT = {
				has_country_modifier = easycheats_building_slots_100
			}
		OR = {
			NOT = {
				has_country_modifier = easycheats_building_slots_75
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_50
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_25
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_10
			}   
		}
	}
	add_country_modifier = {
		name = easycheats_building_slots_100
	}


	trigger_event = {
		id = easycheats_building_slots.1
	}

	ai_chance = { 
		factor = 0 
	}
}
option = {
	name = "easycheats_building_slots_75_on"
	
	trigger = {
			NOT = {
				has_country_modifier = easycheats_building_slots_75
			}
		OR = {
			NOT = {
				has_country_modifier = easycheats_building_slots_100
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_50
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_25
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_10
			}   
		}
	}
	add_country_modifier = {
		name = easycheats_building_slots_75
	}


	trigger_event = {
		id = easycheats_building_slots.1
	}

	ai_chance = { 
		factor = 0 
	}
}
option = {
	name = "easycheats_building_slots_50_on"
	
	trigger = {
			NOT = {
				has_country_modifier = easycheats_building_slots_50
			}
		OR = {
			NOT = {
				has_country_modifier = easycheats_building_slots_100
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_75
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_25
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_10
			}   
		}
	}
	add_country_modifier = {
		name = easycheats_building_slots_50
	}


	trigger_event = {
		id = easycheats_building_slots.1
	}

	ai_chance = { 
		factor = 0 
	}
}
option = {
	name = "easycheats_building_slots_25_on"
	
	trigger = {
			NOT = {
				has_country_modifier = easycheats_building_slots_25
			}
		OR = {
			NOT = {
				has_country_modifier = easycheats_building_slots_100
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_75
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_50
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_10
			}   
		}
	}
	add_country_modifier = {
		name = easycheats_building_slots_25
	}


	trigger_event = {
		id = easycheats_building_slots.1
	}

	ai_chance = { 
		factor = 0 
	}
}
option = {
	name = "easycheats_building_slots_10_on"
	
	trigger = {
			NOT = {
				has_country_modifier = easycheats_building_slots_10
			}
		OR = {
			NOT = {
				has_country_modifier = easycheats_building_slots_100
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_75
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_50
			}
			NOT = {
				has_country_modifier = easycheats_building_slots_10
			}   
		}
	}
	add_country_modifier = {
		name = easycheats_building_slots_10
	}


	trigger_event = {
		id = easycheats_building_slots.1
	}

	ai_chance = { 
		factor = 0 
	}
}
option = {
	name = "easycheats_building_slots_off"
	trigger = {
				OR = { 
					has_country_modifier = easycheats_building_slots_100 has_country_modifier = easycheats_building_slots_75 
					has_country_modifier = easycheats_building_slots_50 has_country_modifier = easycheats_building_slots_25 has_country_modifier = easycheats_building_slots_10 
				}
	}
	
	remove_country_modifier = easycheats_building_slots_100
	remove_country_modifier = easycheats_building_slots_75
	remove_country_modifier = easycheats_building_slots_50
	remove_country_modifier = easycheats_building_slots_25
	remove_country_modifier = easycheats_building_slots_10


	trigger_event = {
		id = easycheats_building_slots.1
	}

	ai_chance = { 
		factor = 0 
	}
}
}