on_actions = {

	on_startup = {
		effect = {
			ENG = {
				add_ideas = TRTNO_surrender_progress_reduce
			}
		}
	}

	# Saving WWII from its end
	
	on_capitulation_immediate = {
		effect = {
			if = {
				limit = {
					tag = ENG
					has_war_with = GER
					is_faction_leader = yes
					USA = {
						NOT = { 
							is_in_faction_with = ENG
							has_war_with = GER 
						}
					}
					CAN = {
						is_subject_of = ENG
					}
				}

				CAN = {
					set_major = yes
					set_faction_leader = yes
					set_faction_spymaster = yes
				}

				set_autonomy = {
					target = CAN
					autonomous_state = autonomy_free
				}
			}
		}
	}

}
