namespace = anomaly

#对原版异常事件的修改


# Dimensional Duplicate followup
ship_event = {
	id = anomaly.211
	title = "anomaly.211.name"
	desc = "anomaly.211.desc"
	show_sound = event_mystic_reveal
	picture = GFX_evt_federation_fleet
	location = FROMFROM

	is_triggered_only = yes

	immediate = { fromfrom = { save_event_target_as = dimensional_planet } }

	option = {
		name = anomaly.211.a
		custom_tooltip = anomaly.211.a.tooltip
		hidden_effect = {
			owner = {
				save_event_target_as = owner_country
				create_fleet = {
					name = "NAME_Other_Science_Ship"
					effect = {
						set_owner = prev
						create_ship_design = {
							design = "NAME_Prototype"
						}
						if = {
							limit = { owner = { has_country_flag =f_xilin_empire } }
								create_ship = {
									name = "NAME_From_Beyond"
									design = last_created_design
									graphical_culture = "extra_dimensional_01"
									prefix = no
									upgradable = yes
								}
							else = {
								create_ship = {
									name = "NAME_From_Beyond"
									design = last_created_design
									graphical_culture = "extra_dimensional_01"
									prefix = no
									upgradable = no
								}
							}
						}
						set_location = fromfrom
					}
				}
			}
		}
	}

	option = {
		name = anomaly.211.b
		trigger = {
			owner = { NOT = { has_authority = auth_machine_intelligence } }
		}
		custom_tooltip = anomaly.211.b.tooltip
		hidden_effect = {
			ship_event = { id = anomaly.212 }
		}
	}
	option = {
		name = anomaly.211.c
		trigger = {
			owner = { has_authority = auth_machine_intelligence }
		}
		custom_tooltip = anomaly.211.b.tooltip
		hidden_effect = {
			ship_event = { id = anomaly.212 }
		}
	}
}



# Follow up(生命树漂流)
ship_event = {
	id = anomaly.4131
	title = "PROJECT_COMPLETE"
	desc = "anomaly.4131.desc"
	picture = GFX_evt_psionics
	show_sound = event_mystic_reveal
	location = from

	is_triggered_only = yes

	option = {
		name = anomaly.4131.a
		owner = {
			add_modifier = {
				modifier = youthful_elite
				days = -1
			}
		}
	}
	option = {
		name = anomaly.4131.b
		owner = {
			add_modifier = {
				modifier = youthful_people
				days = -1
			}
		}
	}
	
	#带回去研究
	option = {
		name = anomaly.4131.d
		trigger = {
			NOT = { has_global_flag = gf_kala_con_we }
			owner = { has_authority = auth_xilin_mind }
		}
		hidden_effect = { 
				set_global_flag = gf_kala_con_we
				#带回去研究，发现是叮当女神的造物
				owner = { 
				    set_country_flag =  gf_kala_con_we
				    #叮当支线
						set_country_flag = f_kala_dingdang
						country_event = { id = kala_story_dlg.7  days = 2 }
			  }
		}		
	}
	
	option = {
		name = anomaly.4131.c
	}
}