tr_est_commerce_adopt = {
	unlocks_agenda = agenda_est_commerce
	modifier = {
		#job_clerk_add = 3 #(Ben_D): Screws things up with 3.12.1, on pc_cosmogenesis_world
		# planet_clerks_produces_mult = 0.15 #(Ben_D): added due to the above # (Metallichydra): Removed because clerks don't produce anything inherintly and removing it allows for more compatability and less overwrites
		planet_clerks_unity_produces_add = 1 #(Ben_D): added due to the above
		# planet_clerks_upkeep_mult = -0.05 #(Ben_D): added due to the above # (Metallichydra): Removed because clerks don't have any upkeep
	}
}

tr_est_commerce_finish = {
	modifier = {
		job_executive_per_pop = 0.02
		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

	modifier = {
		trade_value_mult = 0.20
	}

	ai_weight = { factor = 5000 }
}

tr_est_commerce_3 = {
	possible = {
		has_tradition = tr_est_commerce_1
		has_tradition = tr_est_commerce_2
	}
	
	modifier = {
		trade_value_mult = 0.25
	}

	ai_weight = { factor = 5000 }
}

tr_est_commerce_4 = {
	possible = { has_tradition = tr_est_commerce_1 }

	modifier = {
		local_trade_protection_add = 5
	}

	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 }
}