add_namespace = CDP #communist diplomacy events for Poland

#Revolution In LIT
country_event = {
	id = CDP.1
	title = CDP.1.t
	desc = CDP.1.d
	picture = GFX_report_event_red_guards

	is_triggered_only = yes

	option = {
		name = CDP.1.o1
		POL = {country_event = CDP.2 }
		POL = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		every_state = {
			limit = { is_core_of = ROOT }
			add_core_of = POL
		}

		ai_chance = {
			factor = 60
		}
	}
	option = {
		name = CDP.1.o2

		POL = {country_event = poland.17 }

		add_political_power = -25

		ai_chance = {
			factor = 40
		}
	}
}
#Victory for the revolt
country_event = {
	id = CDP.2
	title = CDP.2.t
	desc = CDP.2.d
	picture = GFX_report_event_red_guards

	is_triggered_only = yes

	option = {
		name = CDP.2.o1
		add_political_power = 50

		ai_chance = {
			factor = 100
		}
	}
}

#The revolt lost
country_event = {
	id = CDP.3
	title = CDP.3.t
	desc = CDP.3.d
	picture = GFX_report_event_red_guards

	is_triggered_only = yes

	option = {
		name = CDP.3.o1
		hidden_effect = {
			create_wargoal = {
				type = annex_everything
				target = LIT
			}
		}
		declare_war_on = {
			type = annex_everything
			target = LIT
		}

		ai_chance = {
			factor = 100
		}
	}
}
#Poland offers Hungary to join them
country_event = {
	id = CDP.4
	title = CDP.4.t
	desc = CDP.4.d
	picture = GFX_report_event_red_guards

	is_triggered_only = yes

	option = {
		name = CDP.4.o1
		POL = {country_event = CDP.5 }
		POL = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		every_state = {
			limit = { is_core_of = ROOT }
			add_core_of = POL
		}

		ai_chance = {
			factor = 60
		}
	}
	option = {
		name = CDP.4.o2

		POL = {country_event = poland.17 }

		add_political_power = -25

		ai_chance = {
			factor = 40
		}
	}
}

#Hungary agreed
country_event = {
	id = CDP.5
	title = CDP.5.t
	desc = CDP.5.d
	picture = GFX_report_event_red_guards

	is_triggered_only = yes

	option = {
		name = CDP.2.o1
		add_political_power = 50

		ai_chance = {
			factor = 100
		}
	}
}
#Hungary declined
country_event = {
	id = CDP.6
	title = CDP.6.t
	desc = CDP.6.d
	picture = GFX_report_event_red_guards

	is_triggered_only = yes

	option = {
		name = CDP.6.o1
		hidden_effect = {
			create_wargoal = {
				type = annex_everything
				target = HUN
			}
		}
		declare_war_on = {
			type = annex_everything
			target = HUN
		}

		ai_chance = {
			factor = 100
		}
	}
}
