# species_trait_points: base number of species trait points available for this species class
# species_max_traits: maximum number of traits that species of this class can have (doesn't count those with cost == 0)

#EXAMPLE OF MODDED SPECIES ARCHETYPE
#Will be able to use traits valid for BIOLOGICAL, ROBOT and BIOLOGICAL2
#Has the exact same trait points as BIOLOGICAL
#BIOLOGICAL2 = {
#	inherit_trait_points_from = BIOLOGICAL
#	inherit_traits_from = { BIOLOGICAL ROBOT }

#	robotic: is this archetype's species robotic? Governs various things:
#		- does the species count as robotic (for is_robotic = yes, and various hardcoded checks)
#		- notably can the species grow, or is just assembled?
#	uses_modifiers: should modifiers be generated for this archetype at all?
#}


@robot_trait_points = 0
@robot_max_traits = 4
@machine_trait_points = 1
@machine_max_traits = 5
@species_trait_points = 2
@species_max_traits = 5

BIOLOGICAL = {
	species_trait_points = @species_trait_points
	species_max_traits = @species_max_traits

	resources = {
		category = planet_pops
		# Resource production from other sources
		inline_script = "pop_resources/pop_misc_production"
		produces = {
			trigger = {
				exists = planet
				planet = {
					has_modifier = astralnomical_interest_modifier
				}
				is_enslaved = no
			}
			physics_research = 1
		}
	}
}
ROBOT = { # Localized as "Mechanical" but kept as ROBOT for script compatibility
	species_trait_points = @robot_trait_points
	species_max_traits = @robot_max_traits
	robotic = yes
	resources = {
		category = planet_pops

		# Resource production from other sources
		inline_script = "pop_resources/pop_misc_production"
	}
}
MACHINE = {
	species_trait_points = @machine_trait_points
	species_max_traits = @machine_max_traits
	robotic = yes
	resources = {
		category = planet_pops

		# Resource production from other sources
		inline_script = "pop_resources/pop_misc_production"
	}
}
PRESAPIENT = {
	species_trait_points = @species_trait_points
	species_max_traits = @species_max_traits
	uses_modifiers = no
	resources = {
		category = planet_pops

		# Resource production from other sources
		inline_script = "pop_resources/pop_misc_production"
	}
}
LITHOID = {
	inherit_trait_points_from = BIOLOGICAL
	resources = {
		category = planet_pops

		# Resource production from other sources
		inline_script = "pop_resources/pop_misc_production"
		produces = {
			trigger = {
				exists = planet
				planet = {
					has_modifier = astralnomical_interest_modifier
				}
				is_enslaved = no
			}
			physics_research = 1
		}
	}
}
OTHER = {
	uses_modifiers = no
	resources = {
		category = planet_pops

		# Resource production from other sources
		inline_script = "pop_resources/pop_misc_production"
		produces = {
			trigger = {
				exists = planet
				planet = {
					has_modifier = astralnomical_interest_modifier
				}
				is_enslaved = no
			}
			physics_research = 1
		}
	}
}
