﻿distillers_guild = {
	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 = consumer_goods_category
	
	employment_size = guild_employment
	
	town = yes
	city = yes
	megalopolis = yes

	
	build_time = guild_build_time
	construction_demand = guild_construction
	
	unique_production_methods = {
		sugar_liquor_guild_maintenance = {
			icon_type = goods
			icon = sugar
			sugar = 0.6
			pottery = 0.0972
			glass = 0.0779

			produced = liquor
			output = 1.2

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
		rice_liquor_guild_maintenance = {
			icon_type = goods
			icon = rice
			rice = 1.0
			pottery = 0.0971
			glass = 0.0971

			produced = liquor
			output = 1.2

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
		potato_liquor_guild_maintenance = {
			icon_type = goods
			icon = potato
			potato = 1.0
			pottery = 0.0971
			glass = 0.0971

			produced = liquor
			output = 1.2

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
		wheat_liquor_guild_maintenance = {
			icon_type = goods
			icon = wheat
			wheat = 1.0
			pottery = 0.0971
			glass = 0.0971

			produced = liquor
			output = 1.2

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
		beer_liquor_guild_maintenance = {
			icon_type = goods
			icon = beer
			beer = 0.8
			pottery = 0.099
			glass = 0.099

			produced = liquor
			output = 1.2

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
		wine_liquor_guild_maintenance = {
			icon_type = goods
			icon = wine
			wine = 0.8
			pottery = 0.099
			glass = 0.099

			produced = liquor
			output = 1.2

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
	}
	custom_tags = { guild }
}

distillers_workshop = {
	audio_tier = 2
	is_foreign = no
	pop_type = burghers
	max_levels = workshop_max_level
	startup_ramp_target = workshop_startup_ramp_target

	
	category = consumer_goods_category
	
	employment_size = workshop_employment
	
	town = yes
	city = yes
	megalopolis = yes

	
	build_time = workshop_build_time
	construction_demand = workshop_construction
	
	unique_production_methods = {
		sugar_liquor_workshop_maintenance = {
			icon_type = goods
			icon = sugar
			sugar = 0.6258
			pottery = 0.1037
			glass = 0.0729
			
			produced = liquor
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
		rice_liquor_workshop_maintenance = {
			icon_type = goods
			icon = rice
			rice = 1.8417
			pottery = 0.1049
			glass = 0.0845
			
			produced = liquor
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
		potato_liquor_workshop_maintenance = {
			icon_type = goods
			icon = potato
			potato = 1.8417
			pottery = 0.1049
			glass = 0.0845
			
			produced = liquor
			output = 1.1
			
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
		wheat_liquor_workshop_maintenance = {
			icon_type = goods
			icon = wheat
			wheat = 1.8417
			pottery = 0.1049
			glass = 0.0845
			
			produced = liquor
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
		beer_liquor_workshop_maintenance = {
			icon_type = goods
			icon = beer
			beer = 0.8902
			pottery = 0.1049
			glass = 0.1049
			
			produced = liquor
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
		wine_liquor_workshop_maintenance = {
			icon_type = goods
			icon = wine
			wine = 0.8902
			pottery = 0.1049
			glass = 0.1049
			
			produced = liquor
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
	}
	
	custom_tags = { workshop }
	obsolete = distillers_guild
}

distiller_manufactory = {
	audio_tier = 3
	is_foreign = no
	pop_type = burghers
	max_levels = manufactory_max_level
	startup_ramp_target = manufactory_startup_ramp_target
	
	category = consumer_goods_category
	
	employment_size = manufactory_employment

	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = manufactory_build_time
	
	obsolete = distillers_workshop
	
	unique_production_methods = {
		sugar_distillery_maintenance = {
icon_type = goods
icon = sugar

			sugar = 1.0649
			pottery = 0.1064
			glass = 0.1817
			
			produced = liquor
			output = 2.0
			
			category = manufactory_input
			
			debug_max_profit = manufactory_profit_margin
		}
	
		rice_distillery_maintenance = {
			icon_type = goods
			icon = rice
			rice = 3.1948
			pottery = 0.1063
			glass = 0.1817
			
			
			produced = liquor
			output = 2.0
			
			category = manufactory_input
			debug_max_profit = manufactory_profit_margin
		}
	
		potato_distillery_maintenance = {
			icon_type = goods
			icon = potato
			potato = 3.1948
			pottery = 0.1063
			glass = 0.1817
			
			produced = liquor
			output = 2.0
			
			category = manufactory_input
			debug_max_profit = manufactory_profit_margin
		}
		wheat_distillery_maintenance = {
			icon_type = goods
			icon = wheat
			pottery = 0.1063
			wheat = 3.1948
			glass = 0.1817
			produced = liquor
			output = 2.0
			
			category = manufactory_input
			debug_max_profit = manufactory_profit_margin
		}

		scottish_whisky_distillery_maintenance = {
			icon_type = goods
			icon = millet
			millet = 3.1948
			pottery = 0.1063
			glass = 0.1817
			
			
			produced = liquor
			output = 2.0
			
			category = manufactory_input
			debug_max_profit = manufactory_profit_margin
		}
	}

	custom_tags = { midgame_manufactory }
	construction_demand = manufactory_construction
}

distiller_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 = consumer_goods_category
	
	employment_size = mills_employment

	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = mills_build_time
	
	obsolete = distiller_manufactory
	
	unique_production_methods = {
		sugar_distillery_mill_maintenance = {
icon_type = goods
icon = sugar

			sugar = 2.0082
			pottery = 0.1112
			glass = 0.4239
			
			produced = liquor
			output = 4.0
			
			category = mills_input
			
			debug_max_profit = mills_profit_margin
		}
	
		rice_distillery_mill_maintenance = {
			icon_type = goods
			icon = rice
			rice = 5.6248
			pottery = 0.1378
			glass = 0.5483
			
			
			produced = liquor
			output = 4.0
			
			category = mills_input
			debug_max_profit = mills_profit_margin
		}
	
		potato_distillery_mill_maintenance = {
			icon_type = goods
			icon = potato
			potato = 5.6737
			pottery = 0.1334
			glass = 0.5334
			
			produced = liquor
			output = 4.0
			
			category = mills_input
			debug_max_profit = mills_profit_margin
		}
		wheat_distillery_mill_maintenance = {
			icon_type = goods
			icon = wheat
			pottery = 0.1334
			wheat = 5.6737
			glass = 0.5334
			produced = liquor
			output = 4.0
			
			
			
			category = mills_input
			debug_max_profit = mills_profit_margin
		}

		scottish_whisky_distillery_mill_maintenance = {
			icon_type = goods
			icon = millet
			millet = 5.5917
			pottery = 0.14
			glass = 0.5586
			
			
			produced = liquor
			output = 4.0
			
			category = mills_input
			debug_max_profit = mills_profit_margin
		}
	}

	custom_tags = { lategame_manufactory }
	construction_demand = mill_construction

	raw_modifier = {
		local_burghers_desired_pop = 0.05
	}
}