﻿naval_supplies_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 = weapons_industry_category
	
	employment_size = guild_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = guild_build_time
	
	unique_production_methods = {
		naval_supplies_guild_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.1963
			fiber_crops = 0.35
			tar = 0.35
			cloth = 0.0486

			produced = naval_supplies
			output = 1.2

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
	}

	custom_tags = { guild }
	construction_demand = guild_construction
}

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

	

	build_time = workshop_build_time
	
	unique_production_methods = {
		naval_supplies_workshop_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.1638
			fiber_crops = 0.4351
			tar = 0.5989
			cloth = 0.1088

			produced = naval_supplies
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
	}
	
	obsolete = naval_supplies_guild

	custom_tags = { workshop }
	construction_demand = workshop_construction
}

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

	

	build_time = manufactory_build_time
	
	obsolete = naval_supplies_workshop

	unique_production_methods = {
		naval_supplies_manufactory_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 0.8791
			fiber_crops = 0.6596
			tar = 0.6596
			cloth = 0.2194

			produced = naval_supplies
			output = 2.0
			
			debug_max_profit = manufactory_profit_margin
			
			category = manufactory_input
		}

	}


	custom_tags = { midgame_manufactory }
	construction_demand = manufactory_construction
}

naval_supplies_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 = weapons_industry_category
	
	employment_size = mills_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = mills_build_time
	
	obsolete = naval_supplies_manufactory

	unique_production_methods = {
		naval_supplies_mill_maintenance = {
			icon_type = goods
			icon = lumber
			lumber = 1.8236
			fiber_crops = 1.3673
			tar = 1.3673
			cloth = 0.2281

			produced = naval_supplies
			output = 4.0
			
			debug_max_profit = mills_profit_margin
			
			category = mills_input
		}

	}


	custom_tags = { lategame_manufactory }
	construction_demand = mill_construction

	raw_modifier = {
		local_burghers_desired_pop = 0.05
	}
}