﻿# Age of Traditions

tools_guild = {
	audio_tier = 1
	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 = 1.00
	category = basic_industry_category
	
	employment_size = guild_employment

	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = guild_build_time
	
	unique_production_methods = {
		metalwork_guild_maintenance = {
			icon_type = goods
			icon = iron
			iron = 0.8
			produced = tools
			output = 1.25
			
			debug_max_profit = guild_profit_margin
			category = guild_input
		}
		stone_tools_guild_maintenance = {
			icon_type = goods
			icon = stone
			stone = 0.625
			produced = tools
			output = 0.75
			debug_max_profit = guild_profit_margin

			category = guild_input
		}
		
		bronze_tools_guild_maintenance = {
			icon_type = goods
			icon = copper
			copper = 0.475
			tin = 0.038
			produced = tools
			output = 0.8
			debug_max_profit = guild_profit_margin

			category = guild_input
		}
		copper_tools_guild_maintenance = {
			icon_type = goods
			icon = copper
			# unlocked by copperworking advance
			copper = 0.35
			produced = tools
			output = 0.6
			debug_max_profit = guild_profit_margin

			category = guild_input
		}
	}

	construction_demand = guild_construction

}

tools_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 = {
		metalwork_workshop_maintenance = {
			icon_type = goods
			icon = iron
			iron = 0.88
			produced = tools
			output = 1.4
			debug_max_profit = workshop_profit_margin
			category = workshop_input
		}
		
	}

	construction_demand = workshop_construction
	
	obsolete = tools_guild
	
}

iron_foundry = {
	audio_tier = 3
	is_foreign = no
	pop_type = laborers		#unique
	max_levels = manufactory_max_level
	startup_ramp_target = manufactory_startup_ramp_target
	
	employment_size = manufactory_employment

	
	category = basic_industry_category
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = manufactory_build_time
	
	unique_production_methods = {
		
		iron_foundry_maintenance = {
			icon_type = goods
			icon = iron
			iron = 1.3187
			coal = 0.3297
			
			category = manufactory_input
			produced = tools
			output = 2.0
			
			debug_max_profit = manufactory_profit_margin
		}
	}
	
	obsolete = tools_workshop

	construction_demand = manufactory_construction
}

iron_mill = {
	audio_tier = 5
	is_foreign = no
	pop_type = laborers
	is_mill = yes		#unique
	max_levels = mills_max_level
	startup_ramp_target = mills_startup_ramp_target
	
	employment_size = mills_employment

	
	category = basic_industry_category
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = mills_build_time
	
	unique_production_methods = {
		
		iron_mill_maintenance = {
			icon_type = goods
			icon = iron
			iron = 2.5393
			coal = 0.6356
			
			category = mills_input
			produced = tools
			output = 4.0
			
			debug_max_profit = mills_profit_margin
		}
		
		steel_tools = {
			icon_type = goods
			icon = steel
			steel = 1.7778
			
			category = mills_input
			produced = tools
			output = 4.0
			
			debug_max_profit = mills_profit_margin
		}
	}
	
	obsolete = iron_foundry

	construction_demand = mill_construction

	raw_modifier = {
		local_burghers_desired_pop = 0.05
	}
}