#######################################
# Scripted Values - Extreme Frontiers #
#######################################

num_planet_of_class_in_system = {
	complex_trigger_modifier = {
		trigger = count_system_planet
		trigger_scope = solar_system
		parameters = {
			limit = {
				is_planet_class = $CLASS$
			}
		}
		mode = add
	}
}

num_owned_dendrus_biotechs = {
	base = 0
	modifier = {
		add = 1
		has_technology = tech_eco_simulation
	}
	modifier = {
		add = 1
		has_technology = tech_hydroponics
	}
	modifier = {
		add = 1
		has_technology = tech_food_processing_1
	}
	modifier = {
		add = 1
		has_technology = tech_gene_crops
	}
	modifier = {
		add = 1
		has_technology = tech_nano_vitality_crops
	}
	modifier = {
		add = 1
		has_technology = tech_nutrient_replication
	}
}

num_dendrus_given_biotechs = {
	base = 6
	modifier = {
		subtract = value:num_owned_dendrus_biotechs
	}
	modifier = {
		max = 3
	}
}
