﻿
# Events for creating the League of Nations and for voting on its conventions

add_namespace = deluge_league

# France creates the League

news_event = {
	id = deluge_league.1
	title = deluge_league1title
	desc = deluge_league1desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league1opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league1optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league1optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league1optd
		trigger = { has_government = fascism }
	}
}

# Country at peace is offered membership in the League

country_event = {
	id = deluge_league.2
	title = deluge_league2title
	desc = deluge_league2desc
	
	picture = GFX_deluge_league_of_nations_small
	
	trigger = {
		has_global_flag = flag_league_of_nations_bitmask
		has_war = no
		NOT = { has_country_flag = has_been_offered_membership_in_league }
		NOT = { has_idea = deluge_league_of_nations_prospective_member }
		NOT = { tag = FRA } # joins via focus
		NOT = { has_global_flag = flag_league_of_nations_disbanded }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		set_country_flag = has_been_offered_membership_in_league
	}
	
	option = {
		name = deluge_league2opta
		
		add_ideas = deluge_league_of_nations_prospective_member
		
		ai_chance = {
			factor = 3
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}
	
	option = {
		name = deluge_league2optb
		
		custom_effect_tooltip = tooltip_leage_unable_to_join_later
		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = fascism
			}
		}
	}
}

# France proposes an International Court of Justice

news_event = {
	id = deluge_league.3
	title = deluge_league3title
	desc = deluge_league3desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league3opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league3optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league3optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league3optd
		trigger = { has_government = fascism }
	}
}

# Prospective member is asked to vote on the International Court of Justice proposal

country_event = {
	id = deluge_league.4
	title = deluge_league4title
	desc = deluge_league4desc
	
	picture = GFX_deluge_league_of_nations_small
	
	trigger = {
		NOT = { has_global_flag = flag_league_international_court_vote_concluded }
		has_global_flag = flag_league_international_court_ayes
		has_idea = deluge_league_of_nations_prospective_member
		NOT = { has_country_flag = flag_league_international_court_has_voted }
		has_war = no
		NOT = { has_global_flag = flag_league_of_nations_disbanded }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		set_country_flag = flag_league_international_court_has_voted
	}
	
	option = {
		name = deluge_aye
		
		modify_global_flag = { flag = flag_league_international_court_ayes value = 1 }
		
		effect_tooltip = {
			swap_ideas = { remove_idea = deluge_league_of_nations_dummy add_idea = deluge_league_of_nations_member_1 }
		}
		
		custom_effect_tooltip = tooltip_league_convention_must_pass_before_taking_effect
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_international_court_ayes value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}
	
	option = {
		name = deluge_nay
		
		modify_global_flag = { flag = flag_league_international_court_nays value = 1 }
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_international_court_nays value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = fascism
			}
		}
	}
	
	option = {
		name = deluge_abstain
		
		ai_chance = {
			factor = 0
		}
	}
}

# After 3 months, the vote is tallied
# Hidden event triggered by the French focus

country_event = {
	id = deluge_league.5
	title = hidden_event_report_this_as_a_bug
	desc = hidden_event_report_this_as_a_bug
	
	picture = GFX_deluge_league_of_nations_small
	
	hidden = yes
	
	is_triggered_only = yes

	immediate = {
		set_global_flag = flag_league_international_court_vote_concluded
	}
	
	option = {
		if = { # you're breaking my balls, Paradox
			limit = {
				OR = {
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 1
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 1
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 2
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 2
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 3
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 3
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 4
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 4
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 5
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 5
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 6
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 6
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 7
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 7
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 8
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 8
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 9
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 9
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 10
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 10
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 11
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 11
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 12
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 12
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 13
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 13
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 14
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 14
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 15
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 15
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 16
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 16
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 17
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 17
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 18
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 18
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 19
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 19
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 20
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 20
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 21
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 21
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 22
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 22
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 23
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 23
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 24
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 24
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 25
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 25
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 26
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 26
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 27
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 27
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 28
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 28
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 29
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 29
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 30
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 30
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 31
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 31
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 32
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 32
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 33
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 33
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 34
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 34
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 35
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 35
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 36
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 36
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 37
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 37
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 38
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 38
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 39
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 39
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 40
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 40
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 41
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 41
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 42
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 42
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 43
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 43
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 44
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 44
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 45
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 45
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 46
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 46
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 47
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 47
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 48
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 48
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 49
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 49
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 50
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 50
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 51
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 51
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 52
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 52
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 53
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 53
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 54
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 54
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 55
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 55
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 56
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 56
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 57
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 57
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 58
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 58
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 59
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 59
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_international_court_ayes
							value > 60
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_international_court_nays
								value > 60
							}
						}
					}
				}
			}
			modify_global_flag = { flag = flag_league_of_nations_bitmask value = 1 }
			news_event = deluge_league.6
			else = {
				news_event = deluge_league.7
			}
		}
	}
}

# News event for the International Court passing

news_event = {
	id = deluge_league.6
	title = deluge_league6title
	desc = deluge_league6desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league6opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league6optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league6optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league6optd
		trigger = { has_government = fascism }
	}
}

# News event for the International Court failing

news_event = {
	id = deluge_league.7
	title = deluge_league7title
	desc = deluge_league7desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league7opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league7optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league7optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league7optd
		trigger = { has_government = fascism }
	}
}

# France proposes an International Relief Union

news_event = {
	id = deluge_league.8
	title = deluge_league8title
	desc = deluge_league8desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league8opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league8optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league8optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league8optd
		trigger = { has_government = fascism }
	}
}

# Prospective member is asked to vote on the International Relief Union proposal

country_event = {
	id = deluge_league.9
	title = deluge_league9title
	desc = deluge_league9desc
	
	picture = GFX_deluge_league_of_nations_small
	
	trigger = {
		NOT = { has_global_flag = flag_league_relief_union_vote_concluded }
		has_global_flag = flag_league_relief_union_ayes
		has_idea = deluge_league_of_nations_prospective_member
		NOT = { has_country_flag = flag_league_relief_union_has_voted }
		has_war = no
		NOT = { has_global_flag = flag_league_of_nations_disbanded }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		set_country_flag = flag_league_relief_union_has_voted
	}
	
	option = {
		name = deluge_aye
		
		modify_global_flag = { flag = flag_league_relief_union_ayes value = 1 }
		
		effect_tooltip = {
			swap_ideas = { remove_idea = deluge_league_of_nations_dummy add_idea = deluge_league_of_nations_member_2 }
		}
		
		custom_effect_tooltip = tooltip_league_convention_must_pass_before_taking_effect
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_relief_union_ayes value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}
	
	option = {
		name = deluge_nay
		
		modify_global_flag = { flag = flag_league_relief_union_nays value = 1 }
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_relief_union_nays value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = fascism
			}
		}
	}
	
	option = {
		name = deluge_abstain
		
		ai_chance = {
			factor = 0
		}
	}
}

# After 3 months, the vote is tallied
# Hidden event triggered by the French focus

country_event = {
	id = deluge_league.10
	title = hidden_event_report_this_as_a_bug
	desc = hidden_event_report_this_as_a_bug
	
	picture = GFX_deluge_league_of_nations_small
	
	hidden = yes
	
	is_triggered_only = yes

	immediate = {
		set_global_flag = flag_league_relief_union_vote_concluded
	}
	
	option = {
		if = {
			limit = {
				OR = {
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 1
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 1
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 2
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 2
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 3
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 3
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 4
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 4
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 5
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 5
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 6
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 6
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 7
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 7
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 8
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 8
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 9
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 9
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 10
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 10
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 11
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 11
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 12
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 12
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 13
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 13
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 14
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 14
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 15
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 15
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 16
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 16
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 17
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 17
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 18
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 18
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 19
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 19
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 20
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 20
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 21
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 21
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 22
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 22
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 23
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 23
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 24
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 24
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 25
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 25
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 26
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 26
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 27
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 27
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 28
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 28
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 29
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 29
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 30
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 30
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 31
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 31
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 32
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 32
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 33
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 33
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 34
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 34
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 35
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 35
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 36
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 36
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 37
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 37
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 38
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 38
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 39
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 39
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 40
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 40
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 41
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 41
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 42
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 42
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 43
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 43
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 44
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 44
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 45
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 45
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 46
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 46
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 47
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 47
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 48
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 48
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 49
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 49
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 50
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 50
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 51
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 51
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 52
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 52
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 53
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 53
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 54
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 54
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 55
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 55
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 56
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 56
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 57
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 57
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 58
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 58
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 59
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 59
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_relief_union_ayes
							value > 60
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_relief_union_nays
								value > 60
							}
						}
					}
				}
			}
			modify_global_flag = { flag = flag_league_of_nations_bitmask value = 2 }
			news_event = deluge_league.11
			else = {
				news_event = deluge_league.12
			}
		}
	}
}

# News event for the International Relief Union passing

news_event = {
	id = deluge_league.11
	title = deluge_league11title
	desc = deluge_league11desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league11opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league11optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league11optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league11optd
		trigger = { has_government = fascism }
	}
}

# News event for the International Relief Union failing

news_event = {
	id = deluge_league.12
	title = deluge_league12title
	desc = deluge_league12desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league12opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league12optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league12optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league12optd
		trigger = { has_government = fascism }
	}
}

# France proposes a Prohibition on Poison Gas

news_event = {
	id = deluge_league.13
	title = deluge_league13title
	desc = deluge_league13desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league13opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league13optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league13optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league13optd
		trigger = { has_government = fascism }
	}
}

# Prospective member is asked to vote on the Prohibition on Poison Gas proposal

country_event = {
	id = deluge_league.14
	title = deluge_league14title
	desc = deluge_league14desc
	
	picture = GFX_deluge_league_of_nations_small
	
	trigger = {
		NOT = { has_global_flag = flag_league_prohibit_poison_gas_vote_concluded }
		has_global_flag = flag_league_prohibit_poison_gas_ayes
		has_idea = deluge_league_of_nations_prospective_member
		NOT = { has_country_flag = flag_league_prohibit_poison_gas_has_voted }
		has_war = no
		NOT = { has_global_flag = flag_league_of_nations_disbanded }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		set_country_flag = flag_league_prohibit_poison_gas_has_voted
	}
	
	option = {
		name = deluge_aye
		
		modify_global_flag = { flag = flag_league_prohibit_poison_gas_ayes value = 1 }
		
		effect_tooltip = {
			swap_ideas = { remove_idea = deluge_league_of_nations_dummy add_idea = deluge_league_of_nations_member_4 }
		}
		
		custom_effect_tooltip = tooltip_league_convention_must_pass_before_taking_effect
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_prohibit_poison_gas_ayes value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}
	
	option = {
		name = deluge_nay
		
		modify_global_flag = { flag = flag_league_prohibit_poison_gas_nays value = 1 }
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_prohibit_poison_gas_nays value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = fascism
			}
		}
	}
	
	option = {
		name = deluge_abstain
		
		ai_chance = {
			factor = 0
		}
	}
}

# After 3 months, the vote is tallied
# Hidden event triggered by the French focus

country_event = {
	id = deluge_league.15
	title = hidden_event_report_this_as_a_bug
	desc = hidden_event_report_this_as_a_bug
	
	picture = GFX_deluge_league_of_nations_small
	
	hidden = yes
	
	is_triggered_only = yes

	immediate = {
		set_global_flag = flag_league_prohibit_poison_gas_vote_concluded
	}
	
	option = {
		if = {
			limit = {
				OR = {
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 1
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 1
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 2
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 2
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 3
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 3
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 4
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 4
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 5
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 5
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 6
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 6
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 7
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 7
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 8
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 8
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 9
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 9
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 10
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 10
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 11
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 11
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 12
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 12
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 13
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 13
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 14
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 14
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 15
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 15
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 16
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 16
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 17
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 17
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 18
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 18
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 19
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 19
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 20
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 20
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 21
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 21
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 22
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 22
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 23
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 23
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 24
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 24
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 25
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 25
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 26
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 26
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 27
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 27
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 28
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 28
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 29
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 29
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 30
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 30
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 31
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 31
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 32
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 32
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 33
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 33
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 34
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 34
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 35
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 35
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 36
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 36
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 37
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 37
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 38
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 38
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 39
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 39
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 40
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 40
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 41
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 41
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 42
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 42
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 43
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 43
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 44
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 44
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 45
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 45
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 46
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 46
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 47
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 47
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 48
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 48
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 49
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 49
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 50
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 50
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 51
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 51
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 52
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 52
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 53
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 53
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 54
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 54
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 55
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 55
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 56
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 56
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 57
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 57
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 58
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 58
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 59
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 59
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prohibit_poison_gas_ayes
							value > 60
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prohibit_poison_gas_nays
								value > 60
							}
						}
					}
				}
			}
			modify_global_flag = { flag = flag_league_of_nations_bitmask value = 4 }
			news_event = deluge_league.16
			else = {
				news_event = deluge_league.17
			}
		}
	}
}

# News event for the Prohibition on Poison Gas passing

news_event = {
	id = deluge_league.16
	title = deluge_league16title
	desc = deluge_league16desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league16opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league16optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league16optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league16optd
		trigger = { has_government = fascism }
	}
}

# News event for the Prohibition on Poison Gas failing

news_event = {
	id = deluge_league.17
	title = deluge_league17title
	desc = deluge_league17desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league17opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league17optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league17optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league17optd
		trigger = { has_government = fascism }
	}
}

# France proposes a Convention on Prisoners of War

news_event = {
	id = deluge_league.18
	title = deluge_league18title
	desc = deluge_league18desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league18opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league18optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league18optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league18optd
		trigger = { has_government = fascism }
	}
}

# Prospective member is asked to vote on the Convention on Prisoners of War proposal

country_event = {
	id = deluge_league.19
	title = deluge_league19title
	desc = deluge_league19desc
	
	picture = GFX_deluge_league_of_nations_small
	
	trigger = {
		NOT = { has_global_flag = flag_league_prisoners_of_war_vote_concluded }
		has_global_flag = flag_league_prisoners_of_war_ayes
		has_idea = deluge_league_of_nations_prospective_member
		NOT = { has_country_flag = flag_league_prisoners_of_war_has_voted }
		has_war = no
		NOT = { has_global_flag = flag_league_of_nations_disbanded }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		set_country_flag = flag_league_prisoners_of_war_has_voted
	}
	
	option = {
		name = deluge_aye
		
		modify_global_flag = { flag = flag_league_prisoners_of_war_ayes value = 1 }
		
		effect_tooltip = {
			swap_ideas = { remove_idea = deluge_league_of_nations_dummy add_idea = deluge_league_of_nations_member_8 }
		}
		
		custom_effect_tooltip = tooltip_league_convention_must_pass_before_taking_effect
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_prisoners_of_war_ayes value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}
	
	option = {
		name = deluge_nay
		
		modify_global_flag = { flag = flag_league_prisoners_of_war_nays value = 1 }
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_prisoners_of_war_nays value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = fascism
			}
		}
	}
	
	option = {
		name = deluge_abstain
		
		ai_chance = {
			factor = 0
		}
	}
}

# After 3 months, the vote is tallied
# Hidden event triggered by the French focus

country_event = {
	id = deluge_league.20
	title = hidden_event_report_this_as_a_bug
	desc = hidden_event_report_this_as_a_bug
	
	picture = GFX_deluge_league_of_nations_small
	
	hidden = yes
	
	is_triggered_only = yes

	immediate = {
		set_global_flag = flag_league_prisoners_of_war_vote_concluded
	}
	
	option = {
		if = {
			limit = {
				OR = {
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 1
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 1
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 2
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 2
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 3
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 3
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 4
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 4
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 5
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 5
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 6
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 6
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 7
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 7
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 8
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 8
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 9
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 9
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 10
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 10
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 11
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 11
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 12
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 12
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 13
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 13
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 14
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 14
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 15
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 15
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 16
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 16
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 17
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 17
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 18
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 18
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 19
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 19
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 20
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 20
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 21
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 21
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 22
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 22
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 23
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 23
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 24
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 24
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 25
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 25
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 26
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 26
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 27
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 27
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 28
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 28
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 29
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 29
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 30
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 30
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 31
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 31
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 32
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 32
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 33
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 33
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 34
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 34
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 35
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 35
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 36
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 36
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 37
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 37
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 38
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 38
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 39
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 39
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 40
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 40
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 41
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 41
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 42
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 42
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 43
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 43
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 44
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 44
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 45
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 45
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 46
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 46
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 47
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 47
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 48
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 48
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 49
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 49
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 50
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 50
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 51
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 51
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 52
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 52
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 53
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 53
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 54
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 54
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 55
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 55
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 56
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 56
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 57
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 57
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 58
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 58
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 59
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 59
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_prisoners_of_war_ayes
							value > 60
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_prisoners_of_war_nays
								value > 60
							}
						}
					}
				}
			}
			modify_global_flag = { flag = flag_league_of_nations_bitmask value = 8 }
			news_event = deluge_league.21
			else = {
				news_event = deluge_league.22
			}
		}
	}
}

# News event for the Convention on Prisoners of War passing

news_event = {
	id = deluge_league.21
	title = deluge_league21title
	desc = deluge_league21desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league21opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league21optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league21optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league21optd
		trigger = { has_government = fascism }
	}
}

# News event for the Convention on Prisoners of War failing

news_event = {
	id = deluge_league.22
	title = deluge_league22title
	desc = deluge_league22desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league22opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league22optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league22optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league22optd
		trigger = { has_government = fascism }
	}
}

# France proposes a Maritime Protections Convention

news_event = {
	id = deluge_league.23
	title = deluge_league23title
	desc = deluge_league23desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league23opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league23optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league23optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league23optd
		trigger = { has_government = fascism }
	}
}

# Prospective member is asked to vote on the Maritime Protections Convention proposal

country_event = {
	id = deluge_league.24
	title = deluge_league24title
	desc = deluge_league24desc
	
	picture = GFX_deluge_league_of_nations_small
	
	trigger = {
		NOT = { has_global_flag = flag_league_maritime_protections_vote_concluded }
		has_global_flag = flag_league_maritime_protections_ayes
		has_idea = deluge_league_of_nations_prospective_member
		NOT = { has_country_flag = flag_league_maritime_protections_has_voted }
		has_war = no
		NOT = { has_global_flag = flag_league_of_nations_disbanded }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		set_country_flag = flag_league_maritime_protections_has_voted
	}
	
	option = {
		name = deluge_aye
		
		modify_global_flag = { flag = flag_league_maritime_protections_ayes value = 1 }
		
		effect_tooltip = {
			swap_ideas = { remove_idea = deluge_league_of_nations_dummy add_idea = deluge_league_of_nations_member_16 }
		}
		
		custom_effect_tooltip = tooltip_league_convention_must_pass_before_taking_effect
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_maritime_protections_ayes value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}
	
	option = {
		name = deluge_nay
		
		modify_global_flag = { flag = flag_league_maritime_protections_nays value = 1 }
		
		if = {
			limit = {
				is_major = yes
			}
			custom_effect_tooltip = tooltip_league_major_vote_counts_more
			modify_global_flag = { flag = flag_league_maritime_protections_nays value = 1 }
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = fascism
			}
		}
	}
	
	option = {
		name = deluge_abstain
		
		ai_chance = {
			factor = 0
		}
	}
}

# After 3 months, the vote is tallied
# Hidden event triggered by the French focus

country_event = {
	id = deluge_league.25
	title = hidden_event_report_this_as_a_bug
	desc = hidden_event_report_this_as_a_bug
	
	picture = GFX_deluge_league_of_nations_small
	
	hidden = yes
	
	is_triggered_only = yes

	immediate = {
		set_global_flag = flag_league_maritime_protections_vote_concluded
	}
	
	option = {
		if = {
			limit = {
				OR = {
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 1
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 1
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 2
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 2
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 3
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 3
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 4
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 4
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 5
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 5
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 6
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 6
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 7
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 7
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 8
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 8
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 9
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 9
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 10
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 10
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 11
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 11
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 12
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 12
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 13
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 13
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 14
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 14
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 15
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 15
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 16
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 16
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 17
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 17
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 18
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 18
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 19
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 19
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 20
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 20
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 21
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 21
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 22
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 22
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 23
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 23
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 24
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 24
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 25
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 25
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 26
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 26
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 27
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 27
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 28
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 28
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 29
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 29
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 30
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 30
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 31
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 31
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 32
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 32
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 33
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 33
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 34
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 34
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 35
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 35
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 36
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 36
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 37
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 37
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 38
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 38
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 39
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 39
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 40
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 40
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 41
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 41
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 42
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 42
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 43
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 43
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 44
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 44
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 45
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 45
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 46
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 46
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 47
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 47
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 48
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 48
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 49
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 49
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 50
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 50
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 51
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 51
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 52
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 52
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 53
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 53
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 54
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 54
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 55
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 55
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 56
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 56
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 57
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 57
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 58
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 58
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 59
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 59
							}
						}
					}
					AND = {
						has_global_flag = {
							flag = flag_league_maritime_protections_ayes
							value > 60
						}
						NOT = {
							has_global_flag = {
								flag = flag_league_maritime_protections_nays
								value > 60
							}
						}
					}
				}
			}
			modify_global_flag = { flag = flag_league_of_nations_bitmask value = 16 }
			news_event = deluge_league.26
			else = {
				news_event = deluge_league.27
			}
		}
	}
}

# News event for the Maritime Protections Convention passing

news_event = {
	id = deluge_league.26
	title = deluge_league26title
	desc = deluge_league26desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league26opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league26optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league26optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league26optd
		trigger = { has_government = fascism }
	}
}

# News event for the Maritime Protections Convention failing

news_event = {
	id = deluge_league.27
	title = deluge_league27title
	desc = deluge_league27desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league27opta
		trigger = { has_government = communism }
	}
	option = {
		name = deluge_league27optb
		trigger = { has_government = democratic }
	}
	option = {
		name = deluge_league27optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = deluge_league27optd
		trigger = { has_government = fascism }
	}
}

# News event for a nation ratifying the League conventions

news_event = {
	id = deluge_league.28
	title = deluge_league28title
	desc = deluge_league28desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league28opta
		trigger = {
			OR = {
				original_tag = FROM
				is_in_faction_with = FROM
			}
			has_war = no
		}
	}
	option = {
		name = deluge_league28optb
		trigger = {
			NOT = {
				OR = {
					original_tag = FROM
					is_in_faction_with = FROM
					has_war = yes
				}
			}
		}
	}
	option = {
		name = deluge_league28optc
		trigger = {
			has_war = yes
		}
	}
}

# News event for a nation leaving the League of Nations

news_event = {
	id = deluge_league.29
	title = deluge_league29title
	desc = deluge_league29desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league29opta
		trigger = {
			OR = {
				original_tag = FROM
				is_in_faction_with = FROM
			}
			has_war = no
		}
	}
	option = {
		name = deluge_league29optb
		trigger = {
			NOT = {
				OR = {
					original_tag = FROM
					is_in_faction_with = FROM
					has_war = yes
				}
			}
		}
	}
	option = {
		name = deluge_league29optc
		trigger = {
			has_war = yes
		}
	}
}

# Country at war with Switzerland occupies Geneva and can disband the League of Nations

country_event = {
	id = deluge_league.30
	title = deluge_league30title
	desc = deluge_league30desc
	
	picture = GFX_deluge_league_of_nations_small
	
	trigger = {
		OR = {
			has_war_with = SWI
			owns_state = 802
		}
		NOT = { tag = SWI }
		controls_state = 802
		has_global_flag = flag_league_of_nations_bitmask
		NOT = { has_country_flag = flag_asked_to_disband_league }
		NOT = { has_global_flag = flag_league_of_nations_disbanded }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		set_country_flag = flag_asked_to_disband_league
	}

	option = {
		name = deluge_league30opta
		
		add_named_threat = { threat = 10 name = deluge_disbanded_league_of_nations_threat }
		
		set_global_flag = flag_league_of_nations_disbanded
		
		every_country = {
			limit = {
				OR = {
					has_idea = deluge_league_of_nations_prospective_member
					has_idea = deluge_league_of_nations_lapsing_member
					has_idea = deluge_league_of_nations_member_0
					has_idea = deluge_league_of_nations_member_1
					has_idea = deluge_league_of_nations_member_2
					has_idea = deluge_league_of_nations_member_3
					has_idea = deluge_league_of_nations_member_4
					has_idea = deluge_league_of_nations_member_5
					has_idea = deluge_league_of_nations_member_6
					has_idea = deluge_league_of_nations_member_7
					has_idea = deluge_league_of_nations_member_8
					has_idea = deluge_league_of_nations_member_9
					has_idea = deluge_league_of_nations_member_10
					has_idea = deluge_league_of_nations_member_11
					has_idea = deluge_league_of_nations_member_12
					has_idea = deluge_league_of_nations_member_13
					has_idea = deluge_league_of_nations_member_14
					has_idea = deluge_league_of_nations_member_15
					has_idea = deluge_league_of_nations_member_16
					has_idea = deluge_league_of_nations_member_17
					has_idea = deluge_league_of_nations_member_18
					has_idea = deluge_league_of_nations_member_19
					has_idea = deluge_league_of_nations_member_20
					has_idea = deluge_league_of_nations_member_21
					has_idea = deluge_league_of_nations_member_22
					has_idea = deluge_league_of_nations_member_23
					has_idea = deluge_league_of_nations_member_24
					has_idea = deluge_league_of_nations_member_25
					has_idea = deluge_league_of_nations_member_26
					has_idea = deluge_league_of_nations_member_27
					has_idea = deluge_league_of_nations_member_28
					has_idea = deluge_league_of_nations_member_29
					has_idea = deluge_league_of_nations_member_30
					has_idea = deluge_league_of_nations_member_31
				}
			}
			remove_ideas = deluge_league_of_nations_member_0
			remove_from_tech_sharing_group = deluge_league_of_nations_tech_group
			hidden_effect = {
				remove_ideas = deluge_league_of_nations_prospective_member
				remove_ideas = deluge_league_of_nations_lapsing_member
				remove_ideas = deluge_league_of_nations_member_1
				remove_ideas = deluge_league_of_nations_member_2
				remove_ideas = deluge_league_of_nations_member_3
				remove_ideas = deluge_league_of_nations_member_4
				remove_ideas = deluge_league_of_nations_member_5
				remove_ideas = deluge_league_of_nations_member_6
				remove_ideas = deluge_league_of_nations_member_7
				remove_ideas = deluge_league_of_nations_member_8
				remove_ideas = deluge_league_of_nations_member_9
				remove_ideas = deluge_league_of_nations_member_10
				remove_ideas = deluge_league_of_nations_member_11
				remove_ideas = deluge_league_of_nations_member_12
				remove_ideas = deluge_league_of_nations_member_13
				remove_ideas = deluge_league_of_nations_member_14
				remove_ideas = deluge_league_of_nations_member_15
				remove_ideas = deluge_league_of_nations_member_16
				remove_ideas = deluge_league_of_nations_member_17
				remove_ideas = deluge_league_of_nations_member_18
				remove_ideas = deluge_league_of_nations_member_19
				remove_ideas = deluge_league_of_nations_member_20
				remove_ideas = deluge_league_of_nations_member_21
				remove_ideas = deluge_league_of_nations_member_22
				remove_ideas = deluge_league_of_nations_member_23
				remove_ideas = deluge_league_of_nations_member_24
				remove_ideas = deluge_league_of_nations_member_25
				remove_ideas = deluge_league_of_nations_member_26
				remove_ideas = deluge_league_of_nations_member_27
				remove_ideas = deluge_league_of_nations_member_28
				remove_ideas = deluge_league_of_nations_member_29
				remove_ideas = deluge_league_of_nations_member_30
				remove_ideas = deluge_league_of_nations_member_31
			}
		}
		hidden_effect = {
			news_event = { days = 1 id = deluge_league.31 }
		}
		
		ai_chance = {
			factor = 1
			
			modifier = {
				factor = 0
				has_government = democratic
			}
			
			modifier = {
				factor = 3
				has_government = fascism
			}
		}
	}
	
	option = {
		name = deluge_league30optb
		
		add_political_power = -50
		
		ai_chance = {
			factor = 1
			
			modifier = {
				factor = 2
				has_government = neutrality
			}
		}
	}
}

# News event for the League of Nations being disbanded

news_event = {
	id = deluge_league.31
	title = deluge_league31title
	desc = deluge_league31desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_league31opta
		trigger = {
			OR = {
				is_in_faction_with = FROM
				tag = FROM
			}
		}
	}
	option = {
		name = deluge_league31optb
		trigger = {
			NOT = {
				OR = {
					is_in_faction_with = FROM
					tag = FROM
				}
			}
			has_government = communism
		}
	}
	option = {
		name = deluge_league31optc
		trigger = {
			NOT = {
				OR = {
					is_in_faction_with = FROM
					tag = FROM
				}
			}
			has_government = democratic
		}
	}
	option = {
		name = deluge_league31optd
		trigger = {
			NOT = {
				OR = {
					is_in_faction_with = FROM
					tag = FROM
				}
			}
			has_government = neutrality
		}
	}
	option = {
		name = deluge_league31opte
		trigger = {
			NOT = {
				OR = {
					is_in_faction_with = FROM
					tag = FROM
				}
			}
			has_government = fascism
		}
	}
}

# A month after France finishes the last convention proposal NF, she is informed of the Economic Programme
# Replaces the Economic Programme NF since it did nothing for non-TFV players and stood in the way of leaving the League

country_event = {
	id = deluge_league.32
	title = deluge_league32title
	desc = deluge_league32desc
	
	picture = GFX_deluge_league_of_nations_small
	
	is_triggered_only = yes
	
	option = {
		name = deluge_verygood
		
		hidden_effect = {
			news_event = { days = 1 id = deluge_league.33 }
		}
	}
}

# News event for the Economic Assistance Programme

news_event = {
	id = deluge_league.33
	title = deluge_league33title
	desc = deluge_league33desc
	
	picture = GFX_deluge_league_of_nations_entrance_large
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = deluge_verygood
	}
}

# With ratification possible, country with voting rights in the League is told to piss or get off the pot

country_event = {
	id = deluge_league.34
	title = deluge_league34title
	desc = deluge_league34desc
	
	picture = GFX_deluge_league_of_nations_small
	
	trigger = {
		has_idea = deluge_league_of_nations_prospective_member
		has_global_flag = flag_league_international_court_vote_concluded
		has_global_flag = flag_league_relief_union_vote_concluded
		has_global_flag = flag_league_prohibit_poison_gas_vote_concluded
		has_global_flag = flag_league_prisoners_of_war_vote_concluded
		has_global_flag = flag_league_maritime_protections_vote_concluded
		NOT = { has_country_flag = flag_asked_to_quit_or_ratify }
		NOT = { has_idea = deluge_league_of_nations_lapsing_member }
		NOT = { has_global_flag = flag_league_of_nations_disbanded }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		set_country_flag = flag_asked_to_quit_or_ratify
	}

	option = {
		name = deluge_league34opta
		
		if = { # possible that the player may wait before selecting and the league is disbanded in the meantime
			limit = {
				has_idea = deluge_league_of_nations_prospective_member
			}
			swap_ideas = {
				remove_idea = deluge_league_of_nations_prospective_member
				add_idea = deluge_league_of_nations_lapsing_member
			}
		}
		
		ai_chance = {
			factor = 2
			
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}
	
	option = {
		trigger = {
			has_war = no
		}
		
		name = deluge_league34optb
		
		remove_ideas = deluge_league_of_nations_prospective_member
		
		add_political_power = -100
		
		ai_chance = {
			factor = 1
						
			modifier = {
				factor = 2
				has_government = fascism
			}
			
			modifier = {
				factor = 0
				focus_progress = {
					focus = china_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = france_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = deluge_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = germany_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = germany_radical_deluge_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = italy_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = japan_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = louisiana_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = poland_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = pomerania_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = radical_deluge_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = russia_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = sweden_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = turkey_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = great_britain_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = america_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = yugoslavia_league_ratification
					progress > 0.1
				}
			}
			modifier = {
				factor = 0
				focus_progress = {
					focus = austria_league_ratification
					progress > 0.1
				}
			}
		}
	}
	
	option = {
		trigger = {
			has_war = yes
		}
		
		name = deluge_league34optc
		
		remove_ideas = deluge_league_of_nations_prospective_member
		
		ai_chance = {
			factor = 100
		}
	}
}

