
# The Narvik Crisis
ENG_narvik_crisis_cat = {

	# Launch Plan R4
	ENG_narvik_crisis = {
		icon = generic_operation
		available = {
			OR = {
				GER = {
					has_war_with = NOR
				}
				NOR = {
					any_core_state = {
						controller  = { original_tag = GER }
					}
				}
			}

			SWE = { 
				NOT = { has_war_with = ROOT }
				NOT = { has_war_with = NOR }
				NOT = { has_war_with = GER }
				exists = yes
				is_subject = no
			}

			NOR = {
				OR = {
					is_in_faction_with = ROOT
					has_capitulated = yes
					exists = no
				}
			}

			OR = {
				144 = { is_controlled_by = ROOT }
				any_allied_country = {
					controls_state = 144
				}
			}

			
			divisions_in_state = {
				state = 144
				size > 3 
			}
		}

		fire_only_once = yes

		cost = 10

		complete_effect = {
			SWE = {
				add_opinion_modifier = {
					target = PREV
					modifier = SWE_ENG_invaded_swe
				}
				add_opinion_modifier = {
					target = PREV
					modifier = SWE_ENG_invaded_swe_opinion
				}
			}
			declare_war_on = {
				target = SWE
				type = liberate_wargoal
			}
			144 = {
				controller = {
					if = {
						limit = {
							controller = { is_in_faction_with = ROOT } #needs to be here otherwise it throws errors
						}

						declare_war_on = {
							target = SWE
							type = liberate_wargoal
						}

						if = {
							limit = { controller = { NOT = { has_war_with = SWE }}}
							ROOT = { set_variable = { ENG_narvik_controller = PREV } }
						}
					}
				}
			}
			GER = { country_event = { id = AAT_britain_narvik.2 hours = 1} }
			SWE = { country_event = { id = AAT_britain_narvik.2 hours = 1 } }
			activate_mission = ENG_explode_the_swedish_iron_ore_mine
			hidden_effect = {
				set_country_flag = ENG_activated_plan_rfour
			}
		}

		ai_will_do = {
			base = 0
			modifier = {
				is_historical_focus_on = no
				OR = {
					has_completed_focus = uk_scandinavian_focus
				}

				NOR = { is_ai = yes }
				add = 1
			}
		}
	}

# Sabotage the Swedish Mines
	ENG_narvik_crisis_blow_up_mines = {
		icon = generic_operation
		available = {
			OR = {
				controls_province = 3095
				any_allied_country = {
					controls_province = 3095
				}
			}
			OR = {
				controls_province = 11155
				any_allied_country = {
					controls_province = 11155
				}
			}
			OR = {
				has_active_mission = ENG_explode_the_swedish_iron_ore_mine
				has_war_with = SWE
			}
		}

		visible = {
			NOT = {
				666 = { 
					has_dynamic_modifier = {
						modifier = SWE_blown_up_mines
					}
				}
			}
		}
		cancel_trigger = {
			NOT = {
				controls_province = 3095
				controls_province = 11155
				OR = {
					has_active_mission = ENG_explode_the_swedish_iron_ore_mine 
					has_war_with = SWE
				}
			}

		}
		days_remove = 12
		complete_effect = {
			add_days_mission_timeout = {
				mission = ENG_explode_the_swedish_iron_ore_mine
				days = 13
			}
		}
		remove_effect = {
			666 = {
				add_dynamic_modifier = {
					modifier = SWE_blown_up_mines
				}
			}
			if = {
				limit = {
					has_country_flag = ENG_activated_plan_rfour
				}
				country_event = { id = AAT_britain_narvik.1 }
				SWE = {
					country_event = { id = AAT_britain_narvik.3 }
				}
				GER = {
					country_event = { id = AAT_britain_narvik.3 }
				}

				hidden_effect = {
					clr_country_flag = ENG_activated_plan_rfour
				}
			}
		}

		ai_will_do = {
			base = 100
		}
	}

	# Plan R4 
	ENG_explode_the_swedish_iron_ore_mine = {

		icon = eng_support_imperialist_coup
		
		available = {
666 = {
			has_dynamic_modifier = {
				modifier = SWE_blown_up_mines
}
			}
		}
		activation = {
			always = no
		}
		days_mission_timeout = 60
		fire_only_once = yes

		visible = {
			always = yes
		}

		cancel_if_not_visible = no

		is_good = no

		complete_effect = {
			
		}

		timeout_effect = {
			white_peace = {
				tag = SWE
			}
			add_war_support = -0.1
			add_stability = -0.1
			custom_effect_tooltip = ENG_explode_the_swedish_iron_ore_mine_tt
		}
	}
}

ENG_imperial_conference_decision = {
	
	ENG_imperial_conference_decision = {

		icon = generic_political_discourse
		
		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 60

		fire_only_once = yes

		activation = {
			tag = ENG
			has_country_flag = ENG_imperial_conference_timer_flag
		}

		visible = {
			tag = ENG
			has_country_flag = ENG_imperial_conference_timer_flag
		}

		cancel_if_not_visible = no

		is_good = yes

		complete_effect = {
			
		}

		timeout_effect = {
			custom_effect_tooltip = imperial_conference_ends_tt
			every_country = {
				limit = {
					OR = {
						AND = {
							is_subject_of = ENG
							tag = CAN
						}
						AND = {
							is_subject_of = ENG
							tag = SAF
						}
						AND = {
							is_subject_of = ENG
							tag = RAJ
						}
						AND = {
							is_subject_of = ENG
							tag = AST
						}
						AND = {
							is_subject_of = ENG
							tag = NZL
						}
					}
				}
				remove_opinion_modifier = { target = ENG modifier = ENG_imperial_conference_opinion }
				remove_opinion_modifier = { target = ENG modifier = ENG_imperial_conference_approved_resolution }
			}
		}
	}
	
	ENG_discuss_imperial_defense = {

		icon = eng_trade_unions_support

		allowed = {
			tag = ENG
		}

		available = {
			NOT = { has_country_flag = ENG_imperial_conference_discussion_in_progress }
		}

		cost = 50

		fire_only_once = yes

		visible = {
			has_completed_focus = ENG_imperial_conference
			has_country_flag = ENG_imperial_conference_timer_flag
		}

		complete_effect = {
			country_event = { id = mtg_britain.83 hours = 6 }
			set_country_flag = ENG_imperial_conference_discussion_in_progress
		}

		ai_will_do = {
			factor = 100
		}
	}

	ENG_discuss_imperial_trade = {

		icon = eng_trade_unions_support

		allowed = {
			tag = ENG
		}

		available = {
			NOT = { has_country_flag = ENG_imperial_conference_discussion_in_progress }
		}

		cost = 50

		fire_only_once = yes

		visible = {
			has_completed_focus = ENG_imperial_conference
			has_country_flag = ENG_imperial_conference_timer_flag
		}

		complete_effect = {
			country_event = { id = mtg_britain.87 hours = 6 }
			set_country_flag = ENG_imperial_conference_discussion_in_progress
		}

		ai_will_do = {
			factor = 100
		}
	}

	ENG_discuss_imperial_economy = {

		icon = eng_trade_unions_support

		allowed = {
			tag = ENG
		}

		available = {
			NOT = { has_country_flag = ENG_imperial_conference_discussion_in_progress }
		}

		cost = 50

		fire_only_once = yes

		visible = {
			has_completed_focus = ENG_imperial_conference
			has_country_flag = ENG_imperial_conference_timer_flag
		}

		complete_effect = {
			country_event = { id = mtg_britain.91 hours = 6 }
			set_country_flag = ENG_imperial_conference_discussion_in_progress
		}

		ai_will_do = {
			factor = 100
		}
	}

	ENG_discuss_appeasement = {

		icon = eng_trade_unions_support

		allowed = {
			tag = ENG
		}

		available = {
			NOT = { has_country_flag = ENG_imperial_conference_discussion_in_progress }
			has_war = no
		}

		cost = 50

		fire_only_once = yes

		visible = {
			has_completed_focus = ENG_imperial_conference
			has_country_flag = ENG_imperial_conference_timer_flag
		}

		complete_effect = {
			country_event = { id = mtg_britain.95 hours = 6 }
			set_country_flag = ENG_imperial_conference_discussion_in_progress
		}

		ai_will_do = {
			factor = 100
		}
	}

	ENG_discuss_imperial_federation = {

		icon = eng_imperial_federation

		allowed = {
			tag = ENG
		}

		available = {
			NOT = { has_country_flag = ENG_imperial_conference_discussion_in_progress }
			OR = {
				CAN = { exists = yes }
				SAF = { exists = yes }
				AST = { exists = yes }
				NZL = { exists = yes }
				AND = {
					RAJ = { is_subject_of = ENG }
					has_completed_focus = ENG_indian_autonomy
				}
			}
		}

		cost = 100

		fire_only_once = yes

		visible = {
			has_completed_focus = ENG_imperial_conference
			has_country_flag = ENG_imperial_conference_timer_flag
		}

		complete_effect = {
			country_event = { id = mtg_britain.99 hours = 6 }
			set_country_flag = ENG_imperial_conference_discussion_in_progress
			if = {
				limit = {
					NOT = { has_completed_focus = ENG_indian_autonomy }
				}
				custom_effect_tooltip = ENG_indian_autonomy_tt
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

political_actions = {
	
#ENG_host_CZE_exile_government = {
	#
	#	icon = generic
	#
	#	allowed = {
	#		has_dlc = "Man the Guns"
	#		original_tag = ENG
	#		
	#	}
	#	available = {
	#		has_government = democratic
	#	}
	#	cost = 50
	#	fire_only_once = yes
	#	ai_will_do = {
	#		factor = 1
	#	}
	#
	#	visible = {
	#		CZE = {
	#			exists = no
	#		}
	#	
	#		CZE = {
	#			is_government_in_exile = no
	#		}
	#	
	#		9 = { CONTROLLER = { has_war_with = ROOT } }
	#	}
	#	complete_effect = {
	#		CZE = {
	#			become_exiled_in = {
	#				target = ROOT
	#				legitimacy = 50
	#			}
	#		}
	#	}
	#}
	hold_blood_toil_tears_sweat_speech = {

		icon = generic_political_discourse

		allowed = {
			tag = ENG
		}

		available = {
			has_government = democratic
			has_country_leader = { ruling_only = yes character = ENG_winston_churchill }
			has_war_with = GER
		}

		cost = 50

		fire_only_once = yes

		visible = {
			tag = ENG
			has_government = democratic
			has_war_with = GER
			has_country_leader = { ruling_only = yes character = ENG_winston_churchill }
		}

		complete_effect = {
			add_stability = 0.05
			add_war_support = 0.05
			if = {
				limit = {
					USA = {
						exists = yes
						has_war = no
						has_government = ROOT
					}
				}
				USA = { set_country_flag = blood_toil_tears_sweat_speech }
			}
			set_country_flag = blood_toil_tears_sweat_speech
			play_blood_toil_tears_sweat_effect = yes
		}

		ai_will_do = {
			base = 50 #Gotta allow the Americans to help
modifier = {
				factor = 4
				FRA = {
					has_capitulated = yes
				}
			}
			modifier = {
				factor = 2
				POL = {
					has_capitulated = yes
				}
			}
		}
	}

	hold_fight_on_the_beaches_speech = {

		icon = generic_political_discourse

		allowed = {
			tag = ENG
		}

		available = {
			has_government = democratic
			has_country_leader = { ruling_only = yes character = ENG_winston_churchill }
			has_war_with = GER
			is_in_faction_with = FRA
			FRA = {
				surrender_progress > 0.2
			}
		}

		cost = 50

		fire_only_once = yes

		visible = {
			tag = ENG
			has_government = democratic
			has_war_with = GER
			has_country_flag = blood_toil_tears_sweat_speech
			has_country_leader = { ruling_only = yes character = ENG_winston_churchill }
		}

		complete_effect = {
			add_war_support = 0.05
			if = {
				limit = {
					USA = {
						exists = yes
						has_war = no
						has_government = ROOT
					}
				}
				USA = { set_country_flag = fight_on_the_beaches_speech }
			}
			set_country_flag = fight_on_the_beaches_speech
			play_we_shall_fight_on_the_beaches_effect = yes
		}

		ai_will_do = {
			base = 50 #Gotta allow the Americans to help
modifier = {
				factor = 4
				FRA = {
					has_capitulated = yes
				}
			}
		}
	}

	hold_this_was_their_finest_hour_speech = {

		icon = generic_political_discourse

		allowed = {
			tag = ENG
		}

		available = {
			has_government = democratic
			has_country_leader = { ruling_only = yes character = ENG_winston_churchill }
			has_war_with = GER
			is_in_faction_with = FRA
			FRA = { has_capitulated = yes }
		}

		cost = 50

		fire_only_once = yes

		visible = {
			tag = ENG
			has_government = democratic
			has_war_with = GER
			has_country_flag = fight_on_the_beaches_speech
			has_country_leader = { ruling_only = yes character = ENG_winston_churchill }
		}

		complete_effect = {
			add_war_support = 0.05
			if = {
				limit = {
					USA = {
						exists = yes
						has_war = no
						has_government = ROOT
					}
				}
				USA = { set_country_flag = this_was_their_finest_hour_speech }
			}
			set_country_flag = this_was_their_finest_hour_speech
			play_their_finest_hour_effect = yes
		}

		ai_will_do = {
			factor = 200 #Gotta allow the Americans to help
		}
	}

	

	ENG_request_azores_lease = {
	
		allowed = {
			tag = ENG
		}
		
		available = {
			has_war = yes
			has_government = democratic
			POR = {
				has_full_control_of_state = 698
				OR = {
					has_government = ROOT
					has_government = neutrality
				}
			}
			POR = { is_in_faction = no }
		}

		cost = 50

		fire_only_once = yes

		ai_will_do = {
			base = 10
		}
		
		visible = {
			has_war = yes
			POR = {
				has_full_control_of_state = 698
				NOT = { has_war_with = ROOT }
			}
		}
		
		complete_effect = {
			POR = { 
				country_event = {
					id = wtt_britain_lease_azores.1
					hours = 6
				}	
			}
		}
	}

	ENG_abdication_crisis = { # timer for the player to see when the event chain ends

		priority = 10

		icon = eng_abdication_crisis
		
		available = {
			has_country_flag = ENG_abdication_crisis_changed_mind
		}

		days_mission_timeout = 200

		fire_only_once = yes

		activation = {
			tag = ENG
			OR = {
				has_country_flag = ENG_abdication_crisis_normal_marriage
				has_country_flag = ENG_abdication_crisis_morganatic_marriage
			}
		}

		visible = {
			tag = ENG
			NOT = {
				has_country_flag = ENG_edward_viii_abdicated
				has_country_flag = edward_viii_married_wallis_simpson
			}
		}

		cancel_if_not_visible = yes

		is_good = yes

		complete_effect = {
			
		}

		timeout_effect = {
			country_event = { id = mtg_britain.5 }
		}
	}

	ENG_britain_demands_treaty_compliance = { # ENG demanding scuttling of ships to maintain Washington Naval Treaty

		icon = generic_naval
		
		available = {
			if = {
				limit = {
					original_tag = USA
				}
				custom_trigger_tooltip = {
					tooltip = ENG_britain_demands_treaty_compliance_tt_1
					naval_strength_comparison = {
						other = ENG
						ratio < 1.01
						sub_unit_def_weights = {
							carrier = 1
							battleship = 1
							battle_cruiser = 1
						}
					}
				}
			}
			if = {
				limit = {
					original_tag = JAP
				}
				custom_trigger_tooltip = {
					tooltip = ENG_britain_demands_treaty_compliance_tt_2
					naval_strength_comparison = {
						other = ENG
						ratio < 0.66
						sub_unit_def_weights = {
							carrier = 1
							battleship = 1
							battle_cruiser = 1
						}
					}
				}
			}
			if = {
				limit = {
					NOT = { original_tag = USA }
					NOT = { original_tag = JAP }
				}
				custom_trigger_tooltip = {
					tooltip = ENG_britain_demands_treaty_compliance_tt_3
					naval_strength_comparison = {
						other = ENG
						ratio < 0.36
						sub_unit_def_weights = {
							carrier = 1
							battleship = 1
							battle_cruiser = 1
						}
					}
				}
			}
		}

		days_mission_timeout = 60

		fire_only_once = no

		activation = {
			has_country_flag = ENG_demanding_ship_reduction_flag
		}

		visible = {
			has_country_flag = ENG_demanding_ship_reduction_flag
		}

		cancel_if_not_visible = yes

		is_good = no

		complete_effect = {
			clr_country_flag = ENG_demanding_ship_reduction_flag
			random_country = {
				limit = {
					original_tag = ENG
					has_completed_focus = ENG_enforce_the_naval_treaties
				}
				country_event = { id = mtg_britain.107 }
			}
		}

		timeout_effect = {
			clr_country_flag = ENG_demanding_ship_reduction_flag
			random_country = {
				limit = {
					original_tag = ENG
					has_completed_focus = ENG_enforce_the_naval_treaties
				}
				country_event = { id = mtg_britain.108 }
			}
			effect_tooltip = {
				ENG = {
					create_wargoal = {
						target = ROOT
						type = puppet_wargoal_focus
						expire = 0
					}
				}
			}
		}
	}

}

operations = {

	operation_fork = {

		icon = generic_operation
	
		allowed = {
			tag = ENG
		}
		
		available = {
			tag = ENG
			has_government = democratic
			has_war_with = GER
			ICE = { exists = yes }
			IF = {
				limit = {
					NOR = { has_government = democratic }
				}
				NOR = { has_capitulated = yes }
				is_in_faction_with = NOR
			}
			ELSE = {
				any_country_with_original_tag = {
					original_tag_to_check = NOR 
					has_capitulated = yes
					is_in_faction_with = ROOT 
				}
			}
		}

		cost = 35

		fire_only_once = yes

		ai_will_do = {
			base = 1
			modifier = {
				factor = 200 
				ICE = {
					has_completed_focus = ICE_declare_absolute_neutrality
				}	
			}
		}
		
		visible = {
			tag = ENG
			has_war_with = GER
			ICE = { exists = yes }
			NOT = { ICE = { is_in_faction_with = ROOT } }
			ICE = {
				NOT = { has_completed_focus = ICE_united_we_stand }
			}
		}
		
		complete_effect = {
			ICE = { country_event = { id = britain.25 days = 1} }
			add_popularity = { ideology = democratic popularity = -0.05 }
		}
	}

	# the Occupation of the Faroes
	ENG_operation_valentine = {

		icon = generic_operation
	
		allowed = {
			tag = ENG
		}
		
		available = { #Dublicate of Visibility intented
			DEN = {
				is_subject = yes
				NOT = {
					is_in_faction_with = var:DEN.DEN_overlord_nation
				}
			}
			has_war_with = var:DEN.DEN_overlord_nation
			337 = {
				is_controlled_by = DEN
			}
		}

		cost = 25

		fire_only_once = yes

		ai_will_do = {
			# We want to do this
			base = 50
			modifier = {
				# Fascist Germany is a lot more scary than other versions of Germany
				factor = 2 	
				GER = {
					has_government = fascism
				}
			}
			modifier = {
				# Iceland has gone their own path, so we can consolidate the North Sea
				factor = 2 	
				ICE = {
					has_completed_focus = ICE_declare_absolute_neutrality
				}
			}
			modifier = {
				# Norway has already fallen, we are too late
				factor = 6
				any_country = {
					has_government = democratic
					original_tag = NOR
					is_in_faction_with = ROOT
					has_capitulated = yes
				}
			}
		}
		
		visible = {
			original_tag = ENG
			DEN = {
				is_subject = yes
				NOT = {
					is_in_faction_with = var:DEN.DEN_overlord_nation
				}
			}
			has_war_with = var:DEN.DEN_overlord_nation
			337 = {
				is_controlled_by = DEN
			}
			has_dlc = "Arms Against Tyranny"
		}
		
		complete_effect = {
			DEN = { country_event = { id = AAT_USA_events.02 days = 2 } }
			add_popularity = { 
				ideology = ROOT 
				popularity = -0.02
			}
			add_stability = -0.01
			ROOT = {
				transfer_state = 337
			}
			337 = {
				add_building_construction = {
					type = air_base
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = coastal_bunker
					level = 2
					instant_build = yes
					province = 13003
				}	
			}
			hidden_effect = {
				set_global_flag = ENG_occupied_DEN_faroes
			}
		}
	}
	
	mers_el_kebir_raid = {

		icon = generic_naval
	
		allowed = {
			tag = ENG
		}
		
		available = {
			has_country_leader = { ruling_only = yes character = ENG_winston_churchill }
			has_government = democratic
			has_war_with = GER
			any_country_with_original_tag = {
				original_tag_to_check = FRA
				has_government = fascism
			}
		}

		cost = 100

		fire_only_once = yes

		ai_will_do = {
			base = 1
		}
		
		visible = {
			has_country_leader = { ruling_only = yes character = ENG_winston_churchill }
			tag = ENG
			has_government = democratic
			has_war_with = GER
			OR = {
				AND = {
					is_in_faction_with = FRA
					FRA = { surrender_progress > 0.2 }
				}
				any_country_with_original_tag = {
					original_tag_to_check = FRA
					has_government = fascism
				}
			}
		}
		
		complete_effect = {
			random_other_country = {
				limit = {
					original_tag = FRA
					has_government = fascism
				}
				country_event = { id = wtt_britain.25 hours = 5 }
			}
		}
	}
}

ENG_enforce_the_naval_treaties = {

	ENG_demand_treaty_compliance = {

		icon = eng_trade_unions_demand

		allowed = {
			tag = ENG
		}

		available = {
			has_navy_size = {
			    size > 14
				archetype = ship_hull_heavy
			}
			if = {
				limit = {
					FROM = {
						original_tag = USA
					}
				}
				FROM = {
					custom_trigger_tooltip = {
						tooltip = ENG_demand_treaty_compliance_tt2
						naval_strength_comparison = {
							other = ENG
							ratio > 1
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
					}
					NOT = { is_in_faction_with = ROOT }
					NOT = { has_war_with = ROOT }
				}
			}
			if = {
				limit = {
					FROM = {
						original_tag = JAP
					}
				}
				FROM = {
					custom_trigger_tooltip = {
						tooltip = ENG_demand_treaty_compliance_tt3
						naval_strength_comparison = {
							other = ENG
							ratio > 0.65
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
					}
					NOT = { is_in_faction_with = ROOT }
					NOT = { has_war_with = ROOT }
				}
			}
			if = {
				limit = {
					FROM = {
						NOT = { original_tag = USA }
						NOT = { original_tag = JAP }
					}
				}
				FROM = {
					custom_trigger_tooltip = {
						tooltip = ENG_demand_treaty_compliance_tt4
						naval_strength_comparison = {
							other = ENG
							ratio > 0.35
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
					}
					NOT = { is_in_faction_with = ROOT }
					NOT = { has_war_with = ROOT }
				}
			}
		}

		target_trigger = {
			FROM = {
				OR = {
					AND = {
						original_tag = USA
						naval_strength_comparison = {
							other = ENG
							ratio > 0.8
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
						NOT = { is_in_faction_with = ROOT }
						NOT = { has_war_with = ROOT }
					}
					AND = {
						original_tag = JAP
						naval_strength_comparison = {
							other = ENG
							ratio > 0.5
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
						NOT = { is_in_faction_with = ROOT }
						NOT = { has_war_with = ROOT }
					}
					AND = {
						NOT = { original_tag = USA }
						NOT = { original_tag = JAP }
						naval_strength_comparison = {
							other = ENG
							ratio > 0.2
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
						NOT = { is_in_faction_with = ROOT }
						NOT = { has_war_with = ROOT }
					}
				}
			}
		}

		cost = 50

		fire_only_once = no

		ai_will_do = {
			base = 10
		}

		visible = {
			original_tag = ENG
			has_completed_focus = ENG_enforce_the_naval_treaties
			FROM = {
				OR = {
					AND = {
						original_tag = USA
						naval_strength_comparison = {
							other = ENG
							ratio > 0.8
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
						NOT = { is_in_faction_with = ROOT }
						NOT = { has_war_with = ROOT }
					}
					AND = {
						original_tag = JAP
						naval_strength_comparison = {
							other = ENG
							ratio > 0.5
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
						NOT = { is_in_faction_with = ROOT }
						NOT = { has_war_with = ROOT }
					}
					AND = {
						NOT = { original_tag = USA }
						NOT = { original_tag = JAP }
						naval_strength_comparison = {
							other = ENG
							ratio > 0.2
							sub_unit_def_weights = {
								carrier = 1
								battleship = 1
								battle_cruiser = 1
							}
						}
						NOT = { is_in_faction_with = ROOT }
						NOT = { has_war_with = ROOT }
					}
				}
			}
		}

		complete_effect = {
			FROM = {
				set_country_flag = ENG_demanding_ship_reduction_flag
				activate_mission = ENG_britain_demands_treaty_compliance
				country_event = { id = mtg_britain.106 hours = 6 }
				custom_effect_tooltip = ENG_demand_treaty_compliance_tt
			}
		}

	}

}