more_states_plus_sov_decisions = {
    free_polish_pows = {
	    allowed = {
		    has_start_date > 1941.1.1
			tag = SOV
		}
		available = {
            has_war_with = GER
			NOT = { has_war_with = POL }
		}

		visible = {
			tag = SOV
			has_start_date < 1942.1.1
		}
		
		fire_only_once = yes
		
		cancel_effect = {
		
		}
		
		cost = 50
		
		complete_effect = {
		    POL = { country_event = { id = poland_1.1 } }
			
		}
		ai_will_do = {
			factor = 200
		}
	}
	negotiations_with_finland = {
	    allowed = {
			has_war_with = FIN
			has_war_with = GER
			if = {
			    limit = {
				    has_start_date > 1941.1.1
				    has_start_date < 1942.1.1
				}
			FIN = { surrender_progress > 0.2 }
			}
			if = {
			    limit = {
				    has_start_date > 1942.1.1
				    has_start_date < 1944.1.1
				}
			FIN = { surrender_progress > 0.1 }
			}
			if = {
			    limit = {
				    has_start_date > 1944.1.1
				    has_start_date < 1945.1.1
				}
			FIN = { surrender_progress > 0.05 }
			}
		}
		available = {
			has_war_with = FIN
			has_war_with = GER
			if = {
			    limit = {
				    has_start_date > 1941.1.1
				    has_start_date < 1942.1.1
				}
			FIN = { surrender_progress > 0.2 }
			}
			if = {
			    limit = {
				    has_start_date > 1942.1.1
				    has_start_date < 1944.1.1
				}
			FIN = { surrender_progress > 0.1 }
			}
			if = {
			    limit = {
				    has_start_date > 1944.1.1
				    has_start_date < 1945.1.1
				}
			FIN = { NOT = { controls_state = 216 } } #The peace happened after the Soviets retook Olonets
			}
		}

		visible = {
			tag = SOV
			has_start_date < 1945.1.1
		}
		
		fire_only_once = yes
		
		cancel_effect = {
		
		}
		
		cost = 50
		
		complete_effect = {
		    FIN = { country_event = { id = finland100.1 days = 1 } }
			
		}
		ai_will_do = {
			factor = 200
		}
	}
	raise_flag_over_reichstag = {
	    allowed = {
		    tag = SOV
		}
		available = {
            has_war_with = GER
			SOV = { controls_state = 64 }
		}

		visible = {
			tag = SOV
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		complete_effect = {
		    SOV = { country_event = { id = soviet_1.3 } }
			GER = { country_event = { id = germany_1.1 } } #I know the flag was raised after Hitler's suicide but I couldn't find a way to make a trigger for that event
		}
		
		ai_will_do = {
			factor = 200
		}
	}
}

more_states_plus_pol_decisions = {
    form_the_first_armored_division = {
	    allowed = {
		    tag = POL
			has_war_with = GER
			has_capitulated = yes
		}
		available = {
            has_war_with = GER
			has_manpower > 18000
		}

		visible = {
			tag = POL
			OR = {
			    has_start_date > 1941.1.1
				has_war_with = GER
			}
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		complete_effect = {
		    add_manpower = -18000
			load_oob = "1st_Armored_Division"
		}
		
		ai_will_do = {
			factor = 200
		}
	}
}

more_states_plus_frf_decisions = {
    proclaim_provisional_france = {
		available = {
            16 = { is_fully_controlled_by = FRA }
		}

		visible = {
			tag = FRA
			has_government = democratic
			has_cosmetic_tag = FRA_FREE
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
		    set_cosmetic_tag = french_provisional_government_tag
			FRA = { news_event = { id = france100.1 } }
			GER = { news_event = { id = germany_1.4 hours = 1 } }
		}
		
		ai_will_do = {
			factor = 200
		}
	}
}

GER_valkyrie = {
    Operation_Valkyrie = {
        available = {
		    NOT = { has_war_with = SOV }
			NOT = { has_war_with = ENG }
		
        }
		activation = {
		    has_start_date > 1944.1.1
			has_start_date < 1945.1.1
		}
        icon = mission_icon
        is_good = no
        days_mission_timeout = 30
        selectable_mission = no
        complete_effect = {
        }
        timeout_effect = {
            GER = { country_event = germany_2.4 }
        }
	}
}

GER_1945 = {
    walter_model_suicide = {
	    available = {
		    NOT = { controls_state = 912 }
        }
		icon = mission_icon
		days_mission_timeout = 30
		is_good = yes
		highlight_states = {
    		highlight_state_targets = {
        		state = 912
    		}
    		highlight_color_while_active = 3
		}
		timeout_effect = { }
		complete_effect = {
		    GER = {
		        country_event = { id = germany_2.6 hours = 1 }
			}
		}
	}
}

GER_1944 = {
    romania_switches_sides = {
	    available = {
		    NOT = { ROM = { surrender_progress < 0.15 } }
        }
		icon = mission_icon
		days_mission_timeout = 200
		is_good = yes
		timeout_effect = { }
		complete_effect = {
		    GER = { country_event = { id = germany_2.7 days = 1 } }
			ROM = { country_event = { id = romania_1.1 days = 1 } }
		}
	}
	bulgaria_switches_sides = {
	    available = {
		    NOT = { BUL = { controls_state = 77 } }
        }
		icon = mission_icon
		days_mission_timeout = 200
		is_good = yes
		timeout_effect = { }
		complete_effect = {
		    GER = { country_event = { id = germany_2.8 days = 1 } }
			BUL = { country_event = { id = bulgaria_1.1 days = 1 } }
		}
	}
}

join_the_united_nations = {
    join_the_allies_gua = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = GUA
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
                USA = { has_war_with = JAP }
				date > 1941.12.9 #Historical join date
            }
		}
	}
	join_the_allies_pan = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = PAN
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
                USA = { has_war_with = JAP }
				date > 1941.12.7 #Historical join date
            }
		}
	}
	join_the_allies_cos = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = COS
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
                USA = { has_war_with = JAP }
				date > 1941.12.8 #Historical join date
            }
		}
	}
	join_the_allies_dom = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = DOM
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
                USA = { has_war_with = JAP }
				date > 1941.12.8 #Historical join date
            }
		}
	}
	join_the_allies_nic = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = NIC
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
                USA = { has_war_with = JAP }
				date > 1941.12.8 #Historical join date
            }
		}
	}
	join_the_allies_cub = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = CUB
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
                USA = { has_war_with = JAP }
				date > 1941.12.9 #Historical join date
            }
		}
	}
	join_the_allies_mex = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = MEX
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1942.5.22 #Historical join date
            }
		}
	}
	join_the_allies_bra = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = BRA
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1942.8.22 #Historical join date
            }
		}
	}
	join_the_allies_bol = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = BOL
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1943.4.7 #Historical join date
            }
		}
	}
	join_the_allies_col = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = COL
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1943.7.26 #Historical join date
            }
		}
	}
	join_the_allies_lib = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = LIB
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1944.1.27 #Historical join date
            }
		}
	}
	join_the_allies_ecu = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = ECU
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.2.2 #Historical join date
            }
		}
	}
	join_the_allies_par = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = PAR
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.2.7 #Historical join date
            }
		}
	}
	join_the_allies_pru = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = PRU
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.2.12 #Historical join date
            }
		}
	}
	join_the_allies_urg = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = URG
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.2.15 #Historical join date
            }
		}
	}
	join_the_allies_ven = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = VEN
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.2.15 #Historical join date
            }
		}
	}
	join_the_allies_tur = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = TUR
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.2.23 #Historical join date
            }
		}
	}
	join_the_allies_sau = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = SAU
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.3.1 #Historical join date
            }
		}
	}
	join_the_allies_arg = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = ARG
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.3.27 #Historical join date
            }
		}
	}
	join_the_allies_chl = {
	    available = {
            NOT = { is_in_faction_with = ENG } NOT = { has_war_with = ENG }
			ENG = { has_war_with = GER }
		}

		visible = {
			tag = CHL
		}
		
		cancel_effect = {
		
		}
		
		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			ENG = { news_event = { id = eng_1.1 } }
		}
		
		ai_will_do = {
			base = 0
			modifier = {
                add = 300
				date > 1945.4.11 #Historical join date
            }
		}
	}
}