tr_est_commerce_adopt = {
	# custom_tooltip = tr_est_commerce_adopt_desc
	unlocks_agenda = agenda_est_commerce
	modifier = {
		planet_traders_unity_produces_add = 1 
		planet_traders_upkeep_mult = -0.05 
	}
}

tr_est_commerce_finish = {
	modifier = {
		pop_trader_bonus_workforce_mult = 0.10
		ascension_perks_add = 1
	}
}


tr_est_commerce_1 = {
	custom_tooltip = tr_est_commerce_1_desc

	on_enabled = {
		if = {
			limit = {
				running_balance > 0
			}
			add_modifier = {
				modifier = "mod_est_commerce_1"
			}
		}
	}

	ai_weight = { factor = 5000 }
}

tr_est_commerce_2 = {
	custom_tooltip = tr_est_commerce_2_desc

	ai_weight = { factor = 5000 }
}

tr_est_commerce_3 = {
	possible = {
		has_tradition = tr_est_commerce_1
		has_tradition = tr_est_commerce_2
	}
	
	modifier = {
		country_trade_fee = -0.05
		country_edict_fund_add = 20
	}

	ai_weight = { factor = 5000 }
}

tr_est_commerce_4 = {
	possible = { has_tradition = tr_est_commerce_1 }
			
	modifier = {
		planet_amenities_mult = 0.10
		planet_buildings_upkeep_mult = -0.05
	}
	
	ai_weight = { factor = 5000 }
}

tr_est_commerce_5 = {
	possible = { has_tradition = tr_est_commerce_4 }

	modifier = {
		country_trade_attractiveness = 0.05
		country_trade_fee = -0.05
	}
	
	tradition_swap = {
		name = tr_est_commerce_5_no_dip
		inherit_icon = yes
		trigger = {
			OR = {
				has_civic = civic_inwards_perfection
				has_civic = civic_fanatic_purifiers
			}
		}	
		modifier = {
			country_trade_fee = -0.10
		}
		weight = {factor = 1 }
	}

	ai_weight = { factor = 5000 }
}