﻿tannery = {
	is_foreign = no
	pop_type = burghers
	max_levels = guild_max_level
	startup_ramp_target = guild_startup_ramp_target
	price = low_base_price
	increase_per_level_cost = 0.25	
	category = basic_industry_category
	
	employment_size = guild_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = guild_build_time
	
	unique_production_methods = {
		leather_guild_maintenance = {
			icon_type = goods
			icon = livestock
			livestock = 0.75
			sand = 0.4345
			tar = 0.0819
			tools = 0.1627
			
			
			debug_max_profit = guild_profit_margin
			produced = leather
			output = 1.2
			
			category = guild_input
		}
	
		tannery_maintenance = {
			icon_type = goods
			icon = wild_game
			wild_game = 0.8
			sand = 0.4345
			tar = 0.0819
			tools = 0.1627
			
			produced = leather
			output = 1.2
			
			debug_max_profit = guild_profit_margin
			
			category = guild_input
		}

	}


	custom_tags = { guild }
	construction_demand = guild_construction
}

tanning_workshop = {
	audio_tier = 2
	is_foreign = no
	pop_type = burghers
	max_levels = workshop_max_level
	startup_ramp_target = workshop_startup_ramp_target
	
	category = basic_industry_category
	
	employment_size = workshop_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = workshop_build_time
	
	unique_production_methods = {
		leather_livestock_workshop_maintenance = {
			icon_type = goods
			icon = livestock
			livestock = 1.145
			sand = 0.4452
			tar = 0.064
			tools = 0.1906
			
			produced = leather
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
	
		leather_wildgame_workshop_maintenance = {
			icon_type = goods
			icon = wild_game
			wild_game = 1.7374
			sand = 0.4347
			tar = 0.0626
			tools = 0.1867
			
			produced = leather
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}

	}
	
	obsolete = tannery


	custom_tags = { workshop }
	construction_demand = workshop_construction
}

tannery_manufactory = {
	audio_tier = 3
	is_foreign = no
	pop_type = burghers
	max_levels = manufactory_max_level
	startup_ramp_target = manufactory_startup_ramp_target
	
	category = basic_industry_category
	
	employment_size = manufactory_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = manufactory_build_time
	
	unique_production_methods = {
		leather_manufactory_maintenance = {
			icon_type = goods
			icon = livestock
			livestock = 2.065
			sand = 0.9679
			tar = 0.1292
			tools = 0.2585
			
			
			
			produced = leather
			output = 2.0
			debug_max_profit = manufactory_profit_margin
			
			category = manufactory_input
		}
	
		tannery_manufactory_maintenance = {
			icon_type = goods
			icon = wild_game
			wild_game = 3.0549
			sand = 0.9963
			tar = 0.1333
			tools = 0.2652
			
			produced = leather
			output = 2.0
			debug_max_profit = manufactory_profit_margin
			category = manufactory_input
		}

	}
	
	obsolete = tanning_workshop
	

	custom_tags = { midgame_manufactory }
	construction_demand = manufactory_construction
}

tannery_mill = {
	audio_tier = 5
	is_foreign = no
	pop_type = laborers
	is_mill = yes
	max_levels = mills_max_level
	startup_ramp_target = mills_startup_ramp_target
	
	category = basic_industry_category
	
	employment_size = mills_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = mills_build_time
	
	unique_production_methods = {
		leather_mill_maintenance = {
			icon_type = goods
			icon = livestock
			livestock = 4.2156
			sand = 1.7567
			tar = 0.2103
			tools = 0.4222
			
			
			
			produced = leather
			output = 4.0
			debug_max_profit = mills_profit_margin
			
			category = mills_input
		}
	
		tannery_mill_maintenance = {
			icon_type = goods
			icon = wild_game
			wild_game = 6.511
			sand = 1.6277
			tar = 0.1955
			tools = 0.391
			
			produced = leather
			output = 4.0
			debug_max_profit = mills_profit_margin
			category = mills_input
		}

	}
	
	obsolete = tannery_manufactory
	

	custom_tags = { lategame_manufactory }
	construction_demand = mill_construction

	raw_modifier = {
		local_burghers_desired_pop = 0.05
	}
}