tr_prosperity_adopt = {
	unlocks_agenda = agenda_favored_society
	modifier = {
		station_gatherers_produces_mult = 0.25
		bonus_automated_workforce_mult = 0.05
	}

	tradition_swap = {
		name = tr_prosperity_adopt_nomad
		inherit_icon = yes
		trigger = {
			is_nomadic = yes
			is_eager_explorer_empire = no
		}
		modifier = {
			arkship_harvest_resources_produces_mult = 0.25
			starbase_stockpile_capacity_mult = 0.25
			shipsize_nomads_constructor_stockpile_capacity_mult = 0.25
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_adopt_nomad_eager_explorer
		inherit_icon = yes
		inherit_effects = no
		trigger = {
			is_nomadic = yes
			is_eager_explorer_empire = yes
		}
		modifier = {
			arkship_harvest_resources_produces_mult = 0.25
			starbase_stockpile_capacity_mult = 0.25
			shipsize_nomads_constructor_stockpile_capacity_mult = 0.25
			shipsize_nomads_engineer_vessel_stockpile_capacity_mult = 0.25
		}
		weight = {
			factor = 1
		}
	}
}

tr_prosperity_finish = {
	modifier = {
		stations_produces_mult = 0.25
		megastructure_build_speed_mult = 0.15
		ascension_perks_add = 1
	}
	
	tradition_swap = {
		name = tr_prosperity_finish_nomad
		inherit_icon = yes
		trigger = {
			is_nomadic = yes
		}
		modifier = {
			starbase_collected_system_resources_mult = 0.25
			ascension_perks_add = 1
		}
		weight = {
			factor = 1
		}
	}
}

tr_prosperity_sct = {
	modifier = {
		planet_structures_cost_mult = -0.1
		planet_building_build_speed_mult = 0.2
	}

	tradition_swap = {
		name = tr_prosperity_sct_machine
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_nomadic = no
			OR = {
				is_machine_empire = yes
				AND = {
					is_hive_empire = yes
					is_wilderness_empire = no
				}
			}
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_sct_wilderness
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_wilderness_empire = yes
		}
		weight = {
			factor = 1
		}
	}
	
	tradition_swap = {
		name = tr_prosperity_sct_nomads
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			is_nomadic = yes
			is_machine_empire = no
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_sct_machine_nomads
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			is_nomadic = yes
			is_machine_empire = yes
		}
		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 1000
	}
}

tr_prosperity_administrative_operations = {
	modifier = {
		planet_structures_upkeep_mult = -0.15
		planet_automated_jobs_upkeep_mult = -0.05
	}

	tradition_swap = {
		name = tr_prosperity_administrative_operations_hive
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_hive_empire = yes
			is_nomadic = no
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_administrative_operations_machine
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			is_machine_empire = yes
			is_nomadic = no
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_administrative_operations_nomads
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			is_nomadic = yes
			is_machine_empire = no
			is_hive_empire = no
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_administrative_operations_machine_nomads
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			is_machine_empire = yes
			is_nomadic = yes
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_administrative_operations_hive_nomads
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			is_hive_empire = yes
			is_nomadic = yes
		}
		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 5000
	}
}

tr_prosperity_public_works = {
	possible = {
		has_tradition = tr_prosperity_sct
	}
	custom_tooltip_with_modifiers = tr_prosperity_public_works_desc

	modifier = {
			empire_size_districts_mult = -0.15
	}

	tradition_swap = {
		name = tr_prosperity_extended_hives
		custom_tooltip_with_modifiers = tr_prosperity_extended_hives_desc
		inherit_icon = yes
		trigger = {
			is_hive_empire = yes
			has_void_dweller_origin = no
			is_wilderness_empire = no
			is_nomadic = no
		}
		modifier = {
			empire_size_districts_mult = -0.15
		}	
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_optimized_nexus
		custom_tooltip_with_modifiers = tr_prosperity_optimized_nexus_desc
		trigger = {
			is_machine_empire = yes
			has_void_dweller_origin = no
			is_nomadic = no
		}
		modifier = {
			empire_size_districts_mult = -0.15
			pop_cat_maintenance_drone_bonus_workforce_mult = 0.15
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_void_works
		inherit_icon = yes
		custom_tooltip_with_modifiers = tr_prosperity_void_works_desc

		# Effects are implemented in 03_habitat_districts.txt

		modifier = {
			habitat_max_districts_add = 1
			empire_size_districts_mult = -0.1
			pop_cat_maintenance_drone_bonus_workforce_mult = 0.1
		}

		trigger = {
			has_void_dweller_origin = yes
			is_machine_empire = yes
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_void_works
		inherit_icon = yes
		custom_tooltip_with_modifiers = tr_prosperity_void_works_desc

		# Effects are implemented in 03_habitat_districts.txt

		modifier = {
			habitat_max_districts_add = 1
			empire_size_districts_mult = -0.1
		}

		trigger = {
			has_void_dweller_origin = yes
			is_machine_empire = no
		}
		weight = {
			factor = 1
		}
	}
	
	tradition_swap = {
		name = tr_prosperity_public_works_nomads
		inherit_icon = yes
		custom_tooltip_with_modifiers = tr_prosperity_public_works_nomads_desc
		# Effects are implemented in 07_ark_districts.txt
		trigger = {
			is_nomadic = yes
		}
		modifier = {
			planet_artificial_max_districts_add = 1
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_public_works_wilderness
		custom_tooltip_with_modifiers = tr_prosperity_public_works_wilderness_desc
		inherit_icon = yes
		trigger = {
			is_wilderness_empire = yes
		}
		modifier = {
			empire_size_districts_mult = -0.25
		}
		weight = {
			factor = 2
		}
	}

	ai_weight = {
		factor = 5000
	}
}

tr_prosperity_interstellar_franchising = {
	possible = {
		has_tradition = tr_prosperity_administrative_operations
	}

	modifier = {
		planet_jobs_upkeep_mult = -0.05
		planet_pops_consumer_goods_upkeep_mult = -0.05
	}

	tradition_swap = {
		name = tr_prosperity_efficiency_algorithms
		trigger = {
			is_machine_empire = yes
		}
		modifier = {
			planet_jobs_upkeep_mult = -0.05
			pop_amenities_usage_no_happiness_mult = -0.05
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_efficiency_instincts
		trigger = {
			is_hive_empire = yes
		}
		modifier = {
			planet_jobs_upkeep_mult = -0.05
			pop_housing_usage_mult = -0.05
		}
		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 1000
	}
}

tr_prosperity_pursuit_of_profit = {
	possible = {
		has_tradition = tr_prosperity_administrative_operations
	}

	modifier = {
		planet_jobs_produces_mult = 0.05
	}

	tradition_swap = {
		name = tr_prosperity_creative_collectives
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_egalitarian = yes
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_hive_neural_signal_boosters
		inherit_icon = yes
		trigger = {
			is_hive_empire = yes
		}
		modifier = {
			planet_jobs_produces_mult = 0.05
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_pursuit_of_profit_wilderness
		inherit_icon = yes
		trigger = {
			is_wilderness_empire = yes
		}
		modifier = {
			planet_jobs_produces_mult = 0.05
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_prosperity_peak_performance
		inherit_icon = yes
		trigger = {
			is_machine_empire = yes
		}
		modifier = {
			planet_jobs_produces_mult = 0.05
		}
		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 5000
	}
}
