# Example

#example = {
#	icon = "GFX_fleet_mission_button_passive_observation"
#	country_modifier = "propaganda"
#	planet_modifier = "propaganda"
#
#	cost = {
#		energy = 1
#		society_research = 1
#		influence = 2
#	}
#
#	gain = {
#		society_research = 6
#	}
#
#	monthly_progress = 0.04
#	completion_event = example.1
#
#	potential = {
#		OR = {
#			has_ethic = "ethic_xenophile"
#			has_ethic = "ethic_fanatic_xenophile"
#		}
#	}
#	valid = {
#		OR = {
#			has_ethic = "ethic_xenophile"
#			has_ethic = "ethic_fanatic_xenophile"
#		}
#	}
#}

# Passive Observation
passive_observation = {
	icon = "GFX_fleet_task_passive_observation"
	small_icon = 1

	gain = {
		society_research = 3
	}
	
	ai_weight = {
		weight = 1
	}
}

# Specimen Collection AKA "Aggressive Observation"
specimen_collection = {
	icon = "GFX_fleet_task_specimen_collection"
	small_icon = 2

	gain = {
		society_research = 6
	}

	potential = {}

	valid = {
		OR = {
			has_policy_flag = interference_active
			has_policy_flag = interference_full
		}
	}
	
	ai_weight = {
		weight = 5	# Use if policy allows it
	}
}

@enlighten_soc_cost = 5
@enlighten_nrg_cost = 5


# Technological Enlightenment - Bronze Age
technological_enlightenment_1 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3

	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.002
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = bronze_age }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 0
	}	
}

# Technological Enlightenment - Iron Age
technological_enlightenment_2 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3

	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.003
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = iron_age }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 0
	}
}

# Technological Enlightenment - Late Medieval Age
technological_enlightenment_3 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3
	
	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.004
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = late_medieval_age }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 0
	}
}

# Technological Enlightenment - Renaissance Age
technological_enlightenment_4 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3
	
	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.005
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = renaissance_age }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 0
	}
}

# Technological Enlightenment - Steam Age
technological_enlightenment_5 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3
	
	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.01
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = steam_age }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 0
			NOT = { has_ai_personality_behaviour = uplifter }
		}
		modifier = {
			factor = 0
			energy < 2000
		}
	}
}

# Technological Enlightenment - Industrial Age
technological_enlightenment_6 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3
	
	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.015
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = industrial_age  }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 0
			NOT = { has_ai_personality_behaviour = uplifter }
		}
		modifier = {
			factor = 0
			energy < 1500
		}
	}
}

# Technological Enlightenment - Machine Age
technological_enlightenment_7 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3
	
	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.02
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = machine_age }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 0
			NOT = { has_ai_personality_behaviour = uplifter }
		}
		modifier = {
			factor = 0
			energy < 1000
		}
	}
}

# Technological Enlightenment - Atomic Age
technological_enlightenment_8 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3
	
	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.025
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = atomic_age }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 0
			NOT = { has_ai_personality_behaviour = uplifter }
		}
		modifier = {
			factor = 0
			energy < 1000
		}
	}
}

# Technological Enlightenment - Early Space Age
technological_enlightenment_9 = {
	icon = "GFX_fleet_task_technological_enlightenment_action"
	small_icon = 3
	
	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.025
	completion_event = observation.2000

	potential = {
		FROM = {
			owner = { has_country_flag = early_space_age }
		}
	}

	valid = {
		has_policy_flag = enlightenment_allowed
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 0
			NOT = { has_ai_personality_behaviour = uplifter }
		}
		modifier = {
			factor = 0
			energy < 1000
		}
	}
}

# Covert Infiltration
covert_infiltration = {
	icon = "GFX_fleet_task_covert_infiltration_action"
	small_icon = 4
	
	cost = {
		society_research = @enlighten_soc_cost
		energy = @enlighten_nrg_cost
	}

	monthly_progress = 0.02
	completion_event = observation.3009

	potential = {}

	valid = {
		has_policy_flag = interference_full
		FROM = {
			owner = {
				OR = {
					has_country_flag = industrial_age
					has_country_flag = machine_age
					has_country_flag = atomic_age
					has_country_flag = early_space_age
				}
			}
		}
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 0
			NOT = { has_ai_personality_behaviour = infiltrator }
		}
		modifier = {
			factor = 0
			energy < 1000
		}
	}
}