icon = GFX_district_specialization_exotic_gases
base_buildtime = @zone_buildtime

potential = { # planet scope
	has_exotic_gases_deposit = yes
}

unlock = { # planet scope
	hidden_trigger = {
		has_exotic_gases_deposit = yes
		exists = owner
	}
	owner = {
		has_technology = tech_mine_exotic_gases
	}
}

resources = {
	category = planet_zones
	inline_script = {
		script = buildings/nomadic_cost_switcher
		REGULAR_RESOURCE = minerals
		NOMADIC_RESOURCE = alloys
		COST = @zone_cost
		NOMADIC_COST_MULT = 0.5
	}
}

included_building_sets = {
	farming
	hydroponics
	fallen_empire_farming
	farming_automation
}

convert_to = {
	zone_exotic_gases
	zone_exotic_gases_nexus
	zone_exotic_gases_hive
}

inline_script = {
	script = jobs/zone_farmers_add
	AMOUNT = $AMOUNT$
}

planet_modifier = {
	zone_building_slots_add = @TINYGROX_MAX_BUILDINGS
	planet_farmers_exotic_gases_produces_add = 0.75
	planet_farmers_food_produces_add = -3
}

ai_priority = 10

triggered_desc = {
	text = farmer_is_gas_extractor_tt
	trigger = {
		exists = owner
		owner = { is_gestalt = no }
	}
}
triggered_desc = {
	text = agri_drone_is_gas_extractor_tt
	trigger = {
		exists = owner
		owner = { is_gestalt = yes }
	}
}

max_buildings = @TINYGROX_MAX_BUILDINGS
