
####Hydroponics
tech_oeo_hydroponics_upgrade_1 = {
	cost = @tier1cost1
	area = society
	tier = 1
	category = { biology }
	prerequisites = { "tech_oeo_orbtital_industry_1" }
	weight = @tier1weight1

	modifier = {
		starbase_constructions_food_produces_mult = 0.10
		megastructures_oeo_hydroponics_food_produces_mult = 0.10
	}

	weight_modifier = {
		modifier = {
			factor = 0.01
			OR = {
				is_machine_empire = yes
				is_lithoid_empire = yes
				is_individual_machine = yes
				has_origin = origin_synthetic_fertility
			}
			NOR = {
				has_country_flag = non_lithoid_subspecies
				has_valid_civic = civic_machine_servitor
				has_valid_civic = civic_machine_assimilator
				any_owned_planet = {
					OR = {
						has_any_capped_planet_farming_district = yes
						has_any_agriculture_zone = yes
					}
				}
			}
		}
		modifier = {
			factor = 0.5
			OR = {
				is_machine_empire = yes
				is_lithoid_empire = yes
				AND = {
					is_individual_machine = yes
					NOT = { has_country_flag = non_lithoid_subspecies }
				}
			}
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_pacifist
		}
		modifier = {
			factor = 2
			has_relic = r_pox_sample
		}
		modifier = {
			factor = 2
			country_uses_bio_ships = yes
		}
		modifier = {
			factor = 5
			OR = {
				has_country_flag = non_lithoid_subspecies
				country_uses_bio_ships = yes
				AND = {
					is_machine_empire = no
					is_lithoid_empire = no
					is_individual_machine = no
				}
			}
			any_owned_planet = {
				OR = {
					has_any_capped_planet_farming_district = yes
					has_any_agriculture_zone = yes
				}
			}
		}
	}

	ai_weight = {
		modifier = {
			factor = 1.25
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_pacifist
		}
	}
}


tech_oeo_hydroponics_upgrade_2 = {
	cost = @tier2cost1
	area = society
	tier = 2
	category = { biology }
	prerequisites = { "tech_oeo_hydroponics_upgrade_1" }
	weight = @tier2weight1

	modifier = {
		starbase_constructions_food_produces_mult = 0.10
		megastructures_oeo_hydroponics_food_produces_mult = 0.10
	}

	potential = {
		is_wilderness_empire = no
	}

	weight_modifier = {
		modifier = {
			factor = 0.01
			OR = {
				is_machine_empire = yes
				is_lithoid_empire = yes
				is_individual_machine = yes
				has_origin = origin_synthetic_fertility
			}
			NOR = {
				has_country_flag = non_lithoid_subspecies
				has_valid_civic = civic_machine_servitor
				has_valid_civic = civic_machine_assimilator
				any_owned_planet = {
					OR = {
						has_any_capped_planet_farming_district = yes
						has_any_agriculture_zone = yes
					}
				}
			}
		}
		modifier = {
			factor = 0.5
			OR = {
				is_machine_empire = yes
				is_lithoid_empire = yes
				AND = {
					is_individual_machine = yes
					NOT = { has_country_flag = non_lithoid_subspecies }
				}
			}
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_pacifist
		}
		modifier = {
			factor = 2
			has_relic = r_pox_sample
		}
		modifier = {
			factor = 2
			country_uses_bio_ships = yes
		}
	}

	ai_weight = {
		factor = @farming_ai_weight_factor
		modifier = {
			factor = 1.25
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_pacifist
		}
	}
}

tech_oeo_hydroponics_upgrade_3 = {
	cost = @tier3cost1
	area = society
	tier = 3
	category = { biology }
	prerequisites = { "tech_oeo_hydroponics_upgrade_2" }
	weight = @tier3weight1

	modifier = {
		starbase_constructions_food_produces_mult = 0.10
		megastructures_oeo_hydroponics_food_produces_mult = 0.10
	}

	potential = {
		is_wilderness_empire = no
	}

	weight_modifier = {
		modifier = {
			factor = 0.01
			OR = {
				is_machine_empire = yes
				is_lithoid_empire = yes
				is_individual_machine = yes
				has_origin = origin_synthetic_fertility
			}
			NOR = {
				has_country_flag = non_lithoid_subspecies
				has_valid_civic = civic_machine_servitor
				has_valid_civic = civic_machine_assimilator
				any_owned_planet = {
					OR = {
						has_any_capped_planet_farming_district = yes
						has_any_agriculture_zone = yes
					}
				}
			}
		}
		modifier = {
			factor = 0.5
			OR = {
				is_machine_empire = yes
				is_lithoid_empire = yes
				AND = {
					is_individual_machine = yes
					NOT = { has_country_flag = non_lithoid_subspecies }
				}
			}
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_pacifist
		}
		modifier = {
			factor = 2
			has_relic = r_pox_sample
		}
		modifier = {
			factor = 2
			country_uses_bio_ships = yes
		}
	}

	ai_weight = {
		factor = @farming_ai_weight_factor
		modifier = {
			factor = 1.25
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_pacifist
		}
	}
}

tech_oeo_hydroponics_upgrade_4 = {
	cost = @tier4cost3
	area = society
	tier = 4
	is_rare = yes
	category = { biology }
	prerequisites = { "tech_oeo_hydroponics_upgrade_3" }
	weight = @tier4weight3

	modifier = {
		starbase_constructions_food_produces_mult = 0.10
		megastructures_oeo_hydroponics_food_produces_mult = 0.10
	}

	potential = {
		is_machine_empire = no
		is_wilderness_empire = no
	}

	weight_modifier = {
		modifier = {
			factor = 0.01
			OR = {
				is_machine_empire = yes
				is_lithoid_empire = yes
				is_individual_machine = yes
				has_origin = origin_synthetic_fertility
			}
			NOR = {
				has_country_flag = non_lithoid_subspecies
				has_valid_civic = civic_machine_servitor
				has_valid_civic = civic_machine_assimilator
				any_owned_planet = {
					OR = {
						has_any_capped_planet_farming_district = yes
						has_any_agriculture_zone = yes
					}
				}
			}
		}
		modifier = {
			factor = 0.5
			OR = {
				is_machine_empire = yes
				is_lithoid_empire = yes
				AND = {
					is_individual_machine = yes
					NOT = { has_country_flag = non_lithoid_subspecies }
				}
			}
		}
		modifier = {
			factor = 0.50
			NOR = {
				has_trait_in_council = { TRAIT = leader_trait_expertise_biology }
				has_trait_in_council = { TRAIT = leader_trait_curator }
			}
		}
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_nutrient_replication
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_pacifist
		}
		modifier = {
			factor = 2
			has_relic = r_pox_sample
		}
		modifier = {
			factor = 2
			country_uses_bio_ships = yes
		}
	}

	ai_weight = {
		factor = @farming_ai_weight_factor
		modifier = {
			factor = 1.25
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_pacifist
		}
	}
}

#Industrial
tech_oeo_industrial_upgrade_1 = {
	cost = @tier2cost1
	area = engineering
	tier = 2
	category = { materials }
	prerequisites = { "tech_oeo_orbtital_industry_2" }
	weight = @tier2weight1

	modifier = {
		megastructures_oeo_industrial_produces_mult = 0.10
		starbase_constructions_alloys_produces_mult = 0.10
		starbase_constructions_consumer_goods_produces_mult = 0.10
	}

	weight_modifier = {
		factor = 2
	}

	ai_weight = { }
}
tech_oeo_industrial_upgrade_2 = {
	cost = @tier3cost1
	area = engineering
	tier = 3
	category = { materials }
	prerequisites = { "tech_oeo_industrial_upgrade_1" }
	weight = @tier3weight1

	modifier = {
		megastructures_oeo_industrial_produces_mult = 0.10
		starbase_constructions_alloys_produces_mult = 0.10
		starbase_constructions_consumer_goods_produces_mult = 0.10
	}

	weight_modifier = {
		factor = 2
	}

	ai_weight = { }
}
tech_oeo_industrial_upgrade_3 = {
	cost = @tier4cost1
	area = engineering
	tier = 4
	category = { materials }
	prerequisites = { "tech_oeo_industrial_upgrade_2" }
	weight = @tier4weight1

	modifier = {
		megastructures_oeo_industrial_produces_mult = 0.10
		starbase_constructions_alloys_produces_mult = 0.10
		starbase_constructions_consumer_goods_produces_mult = 0.10
	}

	weight_modifier = {
		factor = 2
	}

	ai_weight = { }
}
tech_oeo_industrial_upgrade_4 = {
	cost = @tier5cost1
	area = engineering
	tier = 5
	category = { materials }
	prerequisites = { "tech_oeo_industrial_upgrade_3" }
	weight = @tier5weight1

	modifier = {
		megastructures_oeo_industrial_produces_mult = 0.10
		starbase_constructions_alloys_produces_mult = 0.10
		starbase_constructions_consumer_goods_produces_mult = 0.10
	}

	weight_modifier = {
		factor = 2
	}

	ai_weight = { }
}
#Solar
tech_oeo_solar_upgrade_1 = {
	cost = @tier1cost1
	area = physics
	tier = 1
	category = { field_manipulation }
	prerequisites = { "tech_oeo_orbtital_industry_1" }
	weight = @tier1weight1

	modifier = {
		starbase_constructions_energy_produces_mult = 0.10
		megastructures_oeo_solar_energy_produces_mult = 0.10
	}

	weight_modifier = {
		modifier = {
			factor = 1.25
			has_tradition = tr_prosperity_adopt
		}
	}

	ai_weight = {
		factor = @technician_ai_factor
	}
}

tech_oeo_solar_upgrade_2 = {
	cost = @tier2cost1
	area = physics
	tier = 2
	category = { field_manipulation }
	prerequisites = { "tech_oeo_solar_upgrade_1" }
	weight = @tier2weight1

	modifier = {
		starbase_constructions_energy_produces_mult = 0.10
		megastructures_oeo_solar_energy_produces_mult = 0.10
	}

	weight_modifier = {
		modifier = {
			factor = 1.25
			has_tradition = tr_prosperity_adopt
		}
	}

	ai_weight = {
		factor = @technician_ai_factor
	}
}

tech_oeo_solar_upgrade_3 = {
	cost = @tier3cost1
	area = physics
	tier = 3
	category = { field_manipulation }
	prerequisites = { "tech_oeo_solar_upgrade_2" }
	weight = @tier3weight1

	modifier = {
		starbase_constructions_energy_produces_mult = 0.10
		megastructures_oeo_solar_energy_produces_mult = 0.10
	}

	weight_modifier = {
		modifier = {
			factor = 1.25
			has_tradition = tr_prosperity_adopt
		}
	}

	ai_weight = {
		factor = @technician_ai_factor
	}
}
tech_oeo_solar_upgrade_4 = {
	cost = @tier4cost1
	area = physics
	tier = 4
	category = { field_manipulation }
	prerequisites = { "tech_oeo_solar_upgrade_3" }
	weight = @tier4weight1

	modifier = {
		starbase_constructions_energy_produces_mult = 0.10
		megastructures_oeo_solar_energy_produces_mult = 0.10
	}

	weight_modifier = {
		modifier = {
			factor = 1.25
			has_tradition = tr_prosperity_adopt
		}
	}

	ai_weight = {
		factor = @technician_ai_factor
	}
}