# FOCUS CARDS
#
# Documentation: common\country_focus\focus_cards\99_HOW_TO_FOCUS.txt

##########################
# Exploration Focus Cards
##########################

# Investigate an Anomaly
exploration_focus_100 = {
	category = exploration
	tier = 1
	background = "GFX_focus_card_background_exploration_tier_1"

	name = "exploration.100.name"
	desc = "exploration.100.desc"
	hint = "exploration.100.hint"
	lore = "exploration.100.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.100.fail"
			success_text = "exploration.100.success"
			has_country_flag = first_anomaly_finished
		}
	}

	on_success = {
		create_focus_completed_message = { CATEGORY = EXPLORATION }
		add_focus_progress = { category = exploration amount = 10 }
	}
}

# Survey a System
exploration_focus_105 = {
	base = exploration_focus_100

	name = "exploration.105.name"
	desc = "exploration.105.desc"
	hint = "exploration.105.hint"
	lore = "exploration.105.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.105.fail"
			success_text = "exploration.105.success"
			has_country_flag = first_system_survey_finished
		}
	}
}

# Finish a Special Project
exploration_focus_110 = {
	base = exploration_focus_100

	name = "exploration.110.name"
	desc = "exploration.110.desc"
	hint = "exploration.110.hint"
	lore = "exploration.110.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.110.fail"
			success_text = "exploration.110.success"
			has_country_flag = first_special_project_finished
		}
	}
}

# Find Alien Life
exploration_focus_115 = {
	base = exploration_focus_100
	category = exploration
	tier = 1
	background = "GFX_focus_card_background_exploration_tier_1"

	name = "exploration.115.name"
	desc = "exploration.115.desc"
	hint = "exploration.115.hint"
	lore = "exploration.115.lore"

	possible = {}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.115.fail"
			success_text = "exploration.115.success"
			has_country_flag = first_alien_life
		}
	}
}

# Get Permanent Research Option
exploration_focus_120 = {
	base = exploration_focus_100

	name = "exploration.120.name"
	desc = "exploration.120.desc"
	hint = "exploration.120.hint"
	lore = "exploration.120.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.120.fail"
			success_text = "exploration.120.success"
			has_country_flag = research_option_added
		}
	}
}

# Hire a Scientist
exploration_focus_125 = {
	base = exploration_focus_100

	name = "exploration.125.name"
	desc = "exploration.125.desc"
	hint = "exploration.125.hint"
	lore = "exploration.125.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.125.fail"
			success_text = "exploration.125.success"
			has_country_flag = hired_scientist
		}
	}
}

# Finish an Archaeology Site
exploration_focus_200 = {
	category = exploration
	tier = 2
	background = "GFX_focus_card_background_exploration_tier_2"

	name = "exploration.200.name"
	desc = "exploration.200.desc"
	hint = "exploration.200.hint"
	lore = "exploration.200.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.200.fail"
			success_text = "exploration.200.success"
			has_country_flag = first_archaeology_site_finished
		}
	}

	on_success = {
		create_focus_completed_message = { CATEGORY = EXPLORATION }
		add_focus_progress = { category = exploration amount = 25 }
	}
}

# Level Up a Scientist
exploration_focus_205 = {
	base = exploration_focus_200

	name = "exploration.205.name"
	desc = "exploration.205.desc"
	hint = "exploration.205.hint"
	lore = "exploration.205.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.205.fail"
			success_text = "exploration.205.success"
			has_country_flag = scientist_level_up
		}
	}

	on_success = {
		create_focus_completed_message = { CATEGORY = EXPLORATION }
		add_focus_progress = { category = exploration amount = 25 }
		set_country_flag = exploration_focus_205_completed
	}
}

# Observe Pre-FTL
exploration_focus_210 = {
	base = exploration_focus_200

	name = "exploration.210.name"
	desc = "exploration.210.desc"
	hint = "exploration.210.hint"
	lore = "exploration.210.lore"

	possible = {
		is_nomadic = no
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.210.fail"
			success_text = "exploration.210.success"
			has_country_flag = built_observation_station
		}
	}
}

# Assign a Scientist as Governor
exploration_focus_215 = {
	base = exploration_focus_200

	name = "exploration.215.name"
	desc = "exploration.215.desc"
	hint = "exploration.215.hint"
	lore = "exploration.215.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.215.fail"
			success_text = "exploration.215.success"
			has_country_flag = scientist_governor_assigned
		}
	}
}

# Explore a Wormhole
exploration_focus_220 = {
	base = exploration_focus_200

	name = "exploration.220.name"
	desc = "exploration.220.desc"
	hint = "exploration.220.hint"
	lore = "exploration.220.lore"

	possible = {
		has_technology = tech_wormhole_stabilization
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.220.fail"
			success_text = "exploration.220.success"
			has_country_flag = entered_wormhole
		}
	}
}

# Sign a research Agreement
exploration_focus_225 = {
	base = exploration_focus_200

	name = "exploration.225.name"
	desc = "exploration.225.desc"
	hint = "exploration.225.hint"
	lore = "exploration.225.lore"

	possible = {
		is_diplomatic = yes
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.225.fail"
			success_text = "exploration.225.success"
			has_country_flag = has_research_pact
		}
	}
}

# Complete a Deep Scan Contract - Nomadic Empires
exploration_focus_230 = {
	base = exploration_focus_200

	name = "exploration.230.name"
	desc = "exploration.230.desc"
	hint = "exploration.230.hint"
	lore = "exploration.230.lore"

	possible = {
		is_nomadic = yes
		has_deep_scan_capability = yes
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.230.fail"
			success_text = "exploration.230.success"
			has_country_flag = completed_contract_deep_scan
		}
	}
}

# Build a Dyson Swarm (30 Science)
exploration_focus_300 = {
	category = exploration
	tier = 3
	background = "GFX_focus_card_background_exploration_tier_3"

	name = "exploration.300.name"
	desc = "exploration.300.desc"
	hint = "exploration.300.hint"
	lore = "exploration.300.lore"

	possible = {
		has_machine_age_dlc = yes
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.300.fail"
			success_text = "exploration.300.success"
			has_country_flag = swarm_30_research
		}
	}

	on_success = {
		create_focus_completed_message = { CATEGORY = EXPLORATION }
		add_focus_progress = { category = exploration amount = 50 }
	}
}

# Get Enclave Research Support
exploration_focus_305 = {
	base = exploration_focus_300

	name = "exploration.305.name"
	desc = "exploration.305.desc"
	hint = "exploration.305.hint"
	lore = "exploration.305.lore"

	possible = {
		is_homicidal = no
		OR = {
			has_leviathans = yes
			has_distar = yes
			has_grand_archive_dlc = yes
		}
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.305.fail"
			success_text = "exploration.305.success"
			has_country_flag = curator_insight_obtained
		}
	}
}

# Build 5 Science Labs
exploration_focus_310 = {
	base = exploration_focus_300

	name = "exploration.310.name"
	desc = "exploration.310.desc"
	hint = "exploration.310.hint"
	lore = "exploration.310.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.310.fail"
			success_text = "exploration.310.success"
			check_variable_arithmetic = { which = value:num_active_research_labs value >= 5 }
		}
	}
}

# Finish an Astral Rift
exploration_focus_315 = {
	base = exploration_focus_300

	name = "exploration.315.name"
	desc = "exploration.315.desc"
	hint = "exploration.315.hint"
	lore = "exploration.315.lore"

	possible = {
		has_astral_planes_dlc = yes
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.315.fail"
			success_text = "exploration.315.success"
			has_country_flag = first_astral_rift_finished
		}
	}
}

# Have a Veteran Scientist (level 4+)
exploration_focus_320 = {
	base = exploration_focus_300

	name = "exploration.320.name"
	desc = "exploration.320.desc"
	hint = "exploration.320.hint"
	lore = "exploration.320.lore"

	possible = {
		has_country_flag = exploration_focus_205_completed
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.320.fail"
			success_text = "exploration.320.success"
			has_country_flag = scientist_level_4
		}
	}

	on_success = {
		create_focus_completed_message = { CATEGORY = EXPLORATION }
		add_focus_progress = { category = exploration amount = 50 }
		set_country_flag = exploration_focus_320_completed
	}
}

# Terraform 3 Worlds
exploration_focus_325 = {
	base = exploration_focus_300

	name = "exploration.325.name"
	desc = "exploration.325.desc"
	hint = "exploration.325.hint"
	lore = "exploration.325.lore"

	possible = {
		is_lithoid_devouring_swarm = no
		is_nomadic = no
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.325.fail"
			success_text = "exploration.325.success"
			check_variable = {
				which = "focus_terraformed_worlds"
				value >= @focus_goal_terraformed_worlds
			}
		}
	}
}

# Research a Repeatable Tech
exploration_focus_400 = {
	category = exploration
	tier = 4
	background = "GFX_focus_card_background_exploration_tier_4"

	name = "exploration.400.name"
	desc = "exploration.400.desc"
	hint = "exploration.400.hint"
	lore = "exploration.400.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.400.fail"
			success_text = "exploration.400.success"
			num_repeatable_techs > 0
		}
	}

	on_success = {
		create_focus_completed_message = { CATEGORY = EXPLORATION }
		add_focus_progress = { category = exploration amount = 100 }
	}
}

# Obtain Fallen Empire Building
exploration_focus_405 = {
	base = exploration_focus_400

	name = "exploration.405.name"
	desc = "exploration.405.desc"
	hint = "exploration.405.hint"
	lore = "exploration.405.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.405.fail"
			success_text = "exploration.405.success"
			simple_progress = {
				OR = {
					has_country_flag = conquered_fallen_empire_world
					can_build_fallen_empire_buildings = yes
				}
			}
		}
	}
}

# Research Fallen Empire Debris
exploration_focus_410 = {
	base = exploration_focus_400

	name = "exploration.410.name"
	desc = "exploration.410.desc"
	hint = "exploration.410.hint"
	lore = "exploration.410.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.410.fail"
			success_text = "exploration.410.success"
			has_country_flag = fallen_empire_debris_researched
		}
	}
}

# Research Crisis Debris
exploration_focus_415 = {
	base = exploration_focus_400

	name = "exploration.415.name"
	desc = "exploration.415.desc"
	hint = "exploration.415.hint"
	lore = "exploration.415.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.415.fail"
			success_text = "exploration.415.success"
			has_country_flag = crisis_debris_researched
		}
	}
}

# Have 3 Level 5 Scientists
exploration_focus_420 = {
	base = exploration_focus_400

	name = "exploration.420.name"
	desc = "exploration.420.desc"
	hint = "exploration.420.hint"
	lore = "exploration.420.lore"

	possible = {
		has_country_flag = exploration_focus_320_completed
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.420.fail"
			success_text = "exploration.420.success"
			check_variable = {
				which = "level_5_scientist"
				value >= @focus_goal_scientists_level_5
			}
		}
	}
}


# Build a Scientific Arkship - Nomadic Empires
exploration_focus_425 = {
	base = exploration_focus_400

	name = "exploration.425.name"
	desc = "exploration.425.desc"
	hint = "exploration.425.hint"
	lore = "exploration.425.lore"

	possible = {
		is_nomadic = yes
		has_technology = tech_arkship_construction
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.425.fail"
			success_text = "exploration.425.success"
			has_country_flag = arkship_built_science_arkship
		}
	}

	on_success = {
		create_focus_completed_message = { CATEGORY = EXPLORATION }
		add_focus_progress = { category = exploration amount = 100 }
		set_country_flag = exploration_focus_425_completed
	}
}

# Build a Science Nexus
exploration_focus_500 = {
	category = exploration
	tier = 5
	background = "GFX_focus_card_background_exploration_tier_5"

	name = "exploration.500.name"
	desc = "exploration.500.desc"
	hint = "exploration.500.hint"
	lore = "exploration.500.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.500.fail"
			success_text = "exploration.500.success"
			simple_progress = {
				OR = {
					has_country_flag = built_think_tank
					has_country_flag = built_think_tank_contingency
				}
			}
		}
	}

	on_success = {
		create_focus_completed_message = { CATEGORY = EXPLORATION }
		add_focus_progress = { category = exploration amount = 200 }
	}
}

# Have 1000 Research per Month
exploration_focus_505 = {
	base = exploration_focus_500

	name = "exploration.505.name"
	desc = "exploration.505.desc"
	hint = "exploration.505.hint"
	lore = "exploration.505.lore"

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.505.fail"
			success_text = "exploration.505.success"
			has_country_flag = research_income_1000
		}
	}
}

# Activate 10 Relics
exploration_focus_510 = {
	base = exploration_focus_500

	name = "exploration.510.name"
	desc = "exploration.510.desc"
	hint = "exploration.510.hint"
	lore = "exploration.510.lore"

	possible = {
		always = yes
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.510.fail"
			success_text = "exploration.510.success"
			check_variable = {
				which = "focus_activated_relics"
				value >= @focus_goal_activated_relics
			}
		}
	}
}

# Find a Leviathan
exploration_focus_600 = {
	base = exploration_focus_200
	category = exploration
	tier = 2
	background = "GFX_focus_card_background_exploration_tier_2"

	name = "exploration.600.name"
	desc = "exploration.600.desc"
	hint = "exploration.600.hint"
	lore = "exploration.600.lore"

	possible = {
		has_space_monster_dlc = yes
	}

	condition_for_achievement = {
		custom_tooltip = {
			fail_text = "exploration.600.fail"
			success_text = "exploration.600.success"
			has_country_flag = encountered_leviathan
		}
	}
}
