﻿# Age of Traditions

glass_guild = {
	audio_tier = 1
	is_foreign = no
	pop_type = burghers
	max_levels = guild_max_level
	startup_ramp_target = guild_startup_ramp_target
	price = base_price
	increase_per_level_cost = 1.00
	category = basic_industry_category
	
	employment_size = guild_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	
	
	location_potential = {
		is_produced_in_location_market = goods:sand
	}
	

	build_time = guild_build_time

	unique_production_methods = {
		glass_guild_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.1933
			sand = 0.9657
			tools = 0.3674
			produced = glass
			output = 1.0

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
		metal_glass_guild_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.3126
			sand = 1.0103
			tools = 0.4141
			alum = 0.0408
			lead = 0.0805
			produced = glass
			output = 1.2
			
			debug_max_profit = guild_profit_margin		#ok, with better, as it requires more.
		
			category = guild_input
		}
	}
	construction_demand = guild_construction
	
	modifier = {
	}
	custom_tags = { guild }
}

###########################################
glass_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 = {
		metal_glass_workshop_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.3365
			sand = 1.0517
			tools = 0.4312
			alum = 0.0422
			lead = 0.0947
			produced = glass
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
		
			category = workshop_input
		}
	}
	construction_demand = workshop_construction
	
	custom_tags = { workshop }
	obsolete = glass_guild

}

###########################################
glassworks = {
	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 = {
		glassworks_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.4039
			sand = 2.1273
			stone = 0.1912
			tools = 0.6059
			coal = 0.4039
			alum = 0.0431

			produced = glass
			output = 2.0
			
			debug_max_profit = manufactory_profit_margin
			
			category = workshop_input
		}
	}
	
	obsolete = glass_workshop

	custom_tags = { midgame_manufactory }
	construction_demand = manufactory_construction
}


glass_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 = {
		glassmill_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.5556
			sand = 3.3378
			stone = 0.2785
			tools = 1.3348
			coal = 0.8341
			alum = 0.1452

			produced = glass
			output = 4.0
			
			debug_max_profit = mills_profit_margin
			
			category = guild_input
		}
	}
	
	obsolete = glassworks

	custom_tags = { lategame_manufactory }
	construction_demand = manufactory_construction

	raw_modifier = {
		local_burghers_desired_pop = 0.05
	}
}