﻿paper_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.00
	category = basic_industry_category
	
	employment_size = guild_employment
	
	
	town = yes
	city = yes
	megalopolis = yes

	

	build_time = guild_build_time
	
	unique_production_methods = {
		paper_guild_leather_maintenance = {
			icon_type = goods
			icon = leather
			leather = 0.1852
			lumber = 0.1852
			produced = paper
			output = 0.8

			debug_max_profit = guild_profit_margin
			
			category = guild_input
		}
		paper_guild_fiber_pulp_maintenance = {
			icon_type = goods
			icon = fiber_crops
			# unlocked by paper_guild_fiber_pulp_maintenance_advance
			fiber_crops = 0.7
			lumber = 0.2222
			produced = paper
			output = 1.2

			debug_max_profit = guild_profit_margin
			
			category = guild_input
		}
		paper_guild_cloth_maintenance = {
			icon_type = goods
			icon = cloth
			# unlocked by paper_guild_cloth_maintenance_advance
			cloth = 0.6
			lumber = 0.1008
			produced = paper
			output = 1.2

			debug_max_profit = guild_profit_margin
			category = guild_input
		}
	}

	custom_tags = { guild }
	construction_demand = guild_construction
}

paper_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 = {
	
		paper_workshop_fiber_pulp_maintenance = {
			icon_type = goods
			icon = fiber_crops
			fiber_crops = 0.8
			produced = paper
			output = 1.0

			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
		paper_workshop_cloth_maintenance = {
			icon_type = goods
			icon = cloth
			cloth = 0.5279
			lumber = 0.1176
			produced = paper
			output = 1.1
			
			debug_max_profit = workshop_profit_margin
			
			category = workshop_input
		}
	}
	
	obsolete = paper_guild

	custom_tags = { workshop }
	construction_demand = workshop_construction
}

paper_manufactory = {
	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 = {
		paper_manufactory_maintenance = {
		icon_type = goods
		icon = cloth
		
			cloth = 0.3696 #Lump
			fiber_crops = 0.9841
			lumber = 0.2464
		
			
			produced = paper
			output = 2.0
			
			debug_max_profit = manufactory_profit_margin
			category = manufactory_input
		}

	}
	
	obsolete = paper_workshop

	custom_tags = { midgame_manufactory }
	construction_demand = manufactory_construction
}

paper_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 = {
		paper_mill_maintenance = {
			icon_type = goods
			icon = cloth
			cloth = 0.1288
			fiber_crops = 1.2882
			
			produced = paper
			output = 2.0
			
			debug_max_profit = mills_profit_margin
			category = mills_input
		}
		
		paper_wood_pulp_maintenance = {
			icon_type = goods
			icon = lumber
			# unlocked by paper_guild_wood_pulp_maintenance_advance
			lumber = 4.4444
			produced = paper
			output = 4.5
			
			debug_max_profit = mills_profit_margin		#better one
			
			category = mills_input
		}

	}
	
	obsolete = paper_manufactory


	custom_tags = { lategame_manufactory }
	construction_demand = mill_construction

	raw_modifier = {
		local_burghers_desired_pop = 0.05
	}
}