#@cost = 56

tr_plentiful_robotics_adopt = {
#	cost = { unity = @cost }
	
	modifier = {
		category_computing_research_speed_mult = 0.2
	}
	
	tradition_swap = {
		name = tr_plentiful_robotics_hive_adopt
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}
		
		modifier = {
			category_computing_research_speed_mult = 0.2
		}
		
		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 5
		modifier = {
			factor = 5
			has_ethic = ethic_fanatic_materialist
		}
		modifier = {
			factor = 2
			has_origin = origin_mechanists
		}
		modifier = {
			factor = 5
			has_authority = auth_machine_intelligence
		}
		modifier = {
			factor = 0
			has_civic = civic_machine_servitor
		}
	}
}

tr_plentiful_robotics_finish = {
	on_enabled = {
#		add_research_option = tech_machine_templates
		give_technology = { message = no tech = tech_plentiful_traditions_robotics_construct_amplifiers }
	}
	
	modifier = {
		planet_jobs_robotic_produces_mult = 0.1
		ROBOT_species_trait_points_add = 1
		MACHINE_species_trait_points_add = 1
		ascension_perks_add = 1
	}

	tradition_swap = {
		name = tr_plentiful_robotics_hive_finish
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}
		
		modifier = {
			BIOLOGICAL_species_trait_points_add = 1
			ascension_perks_add = 1
		}
		on_enabled = {
			add_research_option = tech_basic_science_lab_3
			add_research_option = tech_mine_volatile_motes
		}
		
		weight = {
			factor = 1
		}
	}
}

tr_plentiful_robotics_1 = {
#	cost = { unity = @cost }
	
	modifier = {
# Robotics Facility
	}
	on_enabled = {
		add_research_option = tech_basic_science_lab_3
		add_research_option = tech_mine_volatile_motes
	}

	tradition_swap = {
		name = tr_plentiful_robotics_hive_1
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}
		
		modifier = {
			# Robotics Facility
		}
		
		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_robotics_2 = {
#	cost = { unity = @cost }
	
	modifier = {
		planet_pops_robotics_upkeep_mult = -0.10
#		tradition_cost_num_sapient_robots_mult = -0.25
	}

	tradition_swap = {
		name = tr_plentiful_robotics_hive_2
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}
		
		modifier = {
			pop_housing_usage_mult = -0.25
		}
		
		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_robotics_3 = {
#	cost = { unity = @cost }
	
	possible = {
		has_tradition = tr_plentiful_robotics_2
	}
	
	modifier = {
		planet_pop_assembly_mult = 0.15
	}

	tradition_swap = {
		name = tr_plentiful_robotics_hive_3
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}
		
		modifier = {
			planet_resettlement_unemployed_mult =  0.15
		}
		
		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_robotics_4 = {
#	cost = { unity = @cost }
	
	possible = {
		has_tradition = tr_plentiful_robotics_3
	}
	
	modifier = {
		planet_researchers_engineering_research_produces_mult = 0.15
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_robotics_5 = {
#	cost = { unity = @cost }
	
	possible = {
		has_tradition = tr_plentiful_robotics_1
		has_tradition = tr_plentiful_robotics_2
	}
	on_enabled = {
		give_technology = { message = no tech = tech_plentiful_traditions_orbital_a_s_p_i }
	}
	
	modifier = {
# Adaptive Foundry
	}
	
	ai_weight = {
		factor = 1000
	}
}