﻿add_namespace = eu4_like_ideas_flavor_events

country_event = {
	id = eu4_like_ideas_flavor_events.1
	title = eu4_like_ideas_flavor_events.EVTNAME1
	desc = eu4_like_ideas_flavor_events.EVTDESC1
	picture = GFX_report_event_bismarck_launch

	fire_only_once = yes

	trigger = {
		tag = GER
		has_government = fascism
		date > 1939.2.13
		set_temp_variable = { idea_group_out_of_context = 11 }
		has_completed_idea_group = yes
		OR = {
			AND = {
				has_dlc = "Man the Guns"
				has_tech = improved_ship_hull_heavy
			}
			AND = {
				NOT = { has_dlc = "Man the Guns" }
				has_tech = improved_battleship
			}
		}
		58 = {
			is_owned_and_controlled_by = ROOT
			any_province_building_level = {
				province = {
					id = 9347
				}
				building = naval_base
				level > 0
			}
		}
	}

	mean_time_to_happen = {
		months = 1
	}

	option = {
		name = eu4_like_ideas_flavor_events1.EVTOPT1

		ai_chance = { factor = 100 }

		custom_effect_tooltip = EU4_LIKE_IDEAS_GAIN_BISMARCK_TT
		if = {
			limit = {
				has_dlc = "Man the Guns"
			}
			custom_effect_tooltip = EU4_LIKE_IDEAS_GAIN_BISMARCK_TT_POTF
		}
		hidden_effect = {
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				load_oob = "GER_Bismarck"
			}
			else = {
				load_oob = "GER_Bismarck_legacy"
			}
		}
	}
}