tr_xt_agriculture_adopt = {
	unlocks_agenda = agenda_xt_agriculture
	possible = {
		has_technology = tech_eco_simulation
	}
	on_enabled = {
		custom_tooltip = tr_xt_agriculture_adopt_1
		hidden_effect = {
			country_event = { id = xt.12}
		}
	}
	modifier = {
		job_farmer_per_pop = 0.05
	}
}

tr_xt_agriculture_finish = {
    possible = {
		has_tradition = tr_xt_agriculture_4
		has_tradition = tr_xt_agriculture_5
	}
	modifier = {
		ascension_perks_add = 1
		planet_farmers_unity_produces_add = 1
	}
}
# Local Delicacies
tr_xt_agriculture_1 = {
    on_enabled = {
		custom_tooltip = tr_xt_agriculture_1_effects
		every_planet_within_border = {
			limit = {
				OR = {
					is_planet_class = pc_alpine
					is_planet_class = pc_arctic
					is_planet_class = pc_tundra
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_savannah
					is_planet_class = pc_continental
					is_planet_class = pc_ocean
					is_planet_class = pc_tropical
					is_planet_class = pc_gaia
				}
				NOT = { has_planet_flag = xt_agriculture_1_deposit_present }
			}
			hidden_effect = {
				planet_event = {
					id = xt.13
				}
			}
		}
	}
}
# UV Growth Chambers
tr_xt_agriculture_2 = {
	modifier = {
		planet_farmers_food_produces_mult = 0.1
	}
}
# Xeno Climate Adaptation
tr_xt_agriculture_3 = {
    possible = {
		has_tradition = tr_xt_agriculture_1
		has_tradition = tr_xt_agriculture_2
	}
	on_enabled = {
		set_country_flag = has_tr_xt_agriculture_3
	}	
	triggered_modifier = {
		pop_environment_tolerance = 0.02
		multiplier = xt_is_other_planet_class_than_capital
	}
	custom_tooltip = tr_xt_agriculture_3_effects
}
# Hydroponics Laboratories
tr_xt_agriculture_4 = {
    possible = {
		has_tradition = tr_xt_agriculture_3
	}
	modifier = {
		planet_farmers_society_research_produces_add = 0.5
	}
}
# Synthetic Protein
tr_xt_agriculture_5 = {
	custom_tooltip = tr_xt_agriculture_5_effects
    possible = {
		has_tradition = tr_xt_agriculture_3
	}
}