﻿dyes_guild = {
	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.0	
	category = basic_industry_category
	
	employment_size = guild_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = guild_build_time
	
	unique_production_methods = {
		dyes_guild_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.4444

			produced = dyes
			output = 0.8

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
		alum_dyes_guild_maintenance = {
			icon_type = goods
			icon = alum
			alum = 0.021
			lumber = 0.6247
			
			
			produced = dyes
			output = 0.8
			
			debug_max_profit = guild_profit_margin		#better one
			category = guild_input
		}
	}

	construction_demand = guild_construction

}

#####################
dyes_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
	
	obsolete = dyes_guild
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = workshop_build_time
	
	unique_production_methods = {
		dyes_workshop_maintenance = {
			icon_type = goods
			icon = alum
			alum = 0.0614
			lumber = 0.7305
		
			produced = dyes
			output = 0.4
			
			debug_max_profit = workshop_profit_margin
			category = workshop_input
		}
	}

	construction_demand = workshop_construction

}

###########################################
dyesworks = {
	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 = {
		dyesworks_maintenance = {
			icon_type = goods
			icon = alum
			alum = 0.3311
			lumber = 3.4403
			
			produced = dyes
			output = 2.0
			
			debug_max_profit = manufactory_profit_margin
			
			category = workshop_input
		}
	}
	
	obsolete = dyes_workshop

	construction_demand = manufactory_construction
}

dyes_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 = {
		dyesmill_maintenance = {
			icon_type = goods
			icon = alum
			alum = 0.3586
			lumber = 7.184
			
			produced = dyes
			output = 4.0
			
			debug_max_profit = mills_profit_margin
			
			category = guild_input
		}
	}
	
	obsolete = dyesworks

	construction_demand = manufactory_construction

	raw_modifier = {
		local_burghers_desired_pop = 0.05
	}
}