﻿### FOOD INDUSTRIES ###
pm_bakery = {
	texture = "gfx/interface/icons/production_method_icons/bakeries.dds"

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = 40		# x20 =  800

			# output goods
			goods_output_groceries_add = 45	# x30 = 1350
		}

		level_scaled = {
			# profit = 550
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 4000
		}
	}
}

pm_sweeteners = {
	texture = "gfx/interface/icons/production_method_icons/sweeteners.dds"

	unlocking_technologies = {
		distillation
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = 40		# x20 = 800
			goods_input_sugar_add = 15		# x30 = 450

			# output goods
			goods_output_groceries_add = 65	# x30 = 1950
		}

		level_scaled = {
			# profit = 700
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 3500
			building_employment_machinists_add = 500
		}
	}
}

pm_baking_powder = {
	texture = "gfx/interface/icons/production_method_icons/baking_powder.dds"

	unlocking_technologies = {
		baking_powder
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = 80		# x20 = 1600
			goods_input_sugar_add = 30		# x30 =  900

			# output goods
			goods_output_groceries_add = 120	# x30 = 3600
		}

		level_scaled = {
			# profit = 1100
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 3000
			building_employment_machinists_add = 750
			building_employment_engineers_add = 250
		}
	}
}

pm_disabled_canning = {
	texture = "gfx/interface/icons/production_method_icons/no_canning.dds"
}

pm_cannery = {
	texture = "gfx/interface/icons/production_method_icons/canneries.dds"

	unlocking_technologies = {
		canneries
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = -20		# x20 = -400
			goods_input_meat_add = 20		# x30 =  600
			goods_input_iron_add = 10		# x40 =  400

			# output goods
			goods_output_groceries_add = 30	# x30 =  900
		}

		level_scaled = {
			# profit = 300 (20.8)
			building_employment_machinists_add = 500	# x1.5 = 750 laborer wages
		}
	}
}

pm_cannery_fish = {
	texture = "gfx/interface/icons/production_method_icons/canneries.dds"

	unlocking_technologies = {
		canneries
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = -20		# x20 = -400
			goods_input_fish_add = 30		# x20 =  600
			goods_input_iron_add = 10		# x40 =  400

			# output goods
			goods_output_groceries_add = 30	# x30 =  900
		}

		level_scaled = {
			building_employment_machinists_add = 500	# x1.5 = 750 laborer wages
		}
	}
}

pm_vacuum_canning = {
	texture = "gfx/interface/icons/production_method_icons/vaccum_canning.dds"
	replacement_if_valid = pm_vacuum_canning_principle_3

	unlocking_technologies = {
		vacuum_canning
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = -30		# x20 = -600
			goods_input_fish_add = 30		# x20 = 600
			goods_input_meat_add = 20		# x30 = 600
			goods_input_iron_add = 10		# x40 =  400
			goods_input_oil_add = 5 			# x40 =  200

			# output goods
			goods_output_groceries_add = 60	# x30 = 1800
		}

		level_scaled = {
			building_employment_machinists_add = 300
			building_employment_engineers_add = 200
		}
	}
}

pm_vacuum_canning_principle_3 = {
	texture = "gfx/interface/icons/production_method_icons/vaccum_canning.dds"
	is_hidden_when_unavailable = yes

	unlocking_principles = {
		principle_food_standardization_3
	}

	unlocking_technologies = {
		vacuum_canning
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = -30		# x20 = -600
			goods_input_fish_add = 30		# x20 = 600
			goods_input_meat_add = 20		# x30 = 600
			goods_input_iron_add = 10		# x40 =  400
			goods_input_oil_add = 5 			# x40 =  200

			# output goods
			goods_output_groceries_add = 70	# x30 = 2100
		}

		level_scaled = {
			# profit = 600 (23.1)
			building_employment_machinists_add = 500	# x1.5 = 750 laborer wages
			building_employment_engineers_add = 200		# x3.0 = 600 laborer wages
		}
	}
}




### DISTILLERIES ###

pm_alcohol_production = {
	texture = "gfx/pm_icons/alcohol_production.dds"
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = 19.5
			goods_input_sugar_add = 7				# TOTAL 600
			
			# output goods
			goods_output_liquor_add = 40				# 1200 # PROFIT 600
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 3500
		}
	}
}

pm_pot_stills = {
	texture = "gfx/interface/icons/production_method_icons/pot_stills.dds"

	unlocking_technologies = {
		fractional_distillation
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_grain_add = 40				# 800
			goods_input_sugar_add = 20				# 600	# TOTAL 1400

			# output goods
			goods_output_liquor_add = 75				# 2250
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 3000
			building_employment_machinists_add = 500
		}
	}
}

pm_patent_stills = {
	texture = "gfx/interface/icons/production_method_icons/patent_stills.dds"

	unlocking_technologies = {
		pasteurization
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_glass_add = 10				# 400
			goods_input_grain_add = 50				# 1000
			goods_input_sugar_add = 30				# 900	# TOTAL 2300

			# output goods
			goods_output_liquor_add = 135			# 4050
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 2000
			building_employment_machinists_add = 1000
			building_employment_engineers_add = 500
		}
	}
}



### LUMBER MILL	###

pm_manual_sawing_lm = {
	texture = "gfx/interface/icons/production_method_icons/saw_mills.dds"
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 5 # 200
			goods_input_wood_add = 40 # 800 # TOTAL 1000
			
			# output goods
			goods_output_hardwood_add = 45 # 1800 # PROFIT 800
		}

		level_scaled = {
			building_employment_laborers_add = 4500
			building_employment_shopkeepers_add = 500
		}
	}
}

pm_powered_sawing_lm = {
	texture = "gfx/pm_icons/powered_saw_lumber_mill.dds"
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}

	disallowing_laws = {
		law_industry_banned
	}
	
	
	unlocking_technologies = {
		mechanical_production
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 10.5		# 420
			goods_input_coal_add = 6 			# 180
			goods_input_wood_add = 50 			# 1000 # TOTAL 1500
			
			# output goods
			goods_output_hardwood_add = 62.5 # 2500 # PROFIT 1000
		}

		level_scaled = {
			building_employment_laborers_add = 3750
			building_employment_machinists_add = 500
			building_employment_engineers_add = 250
			building_employment_shopkeepers_add = 500
		}
	}
}

pm_electrical_saw_lm = {
	texture = "gfx/pm_icons/electric_saw_lumber_mill.dds"
	
	unlocking_technologies = {
		electrical_capacitors
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 10.5 		# >
			goods_input_electronics_add = 4.5 	# <+ 600
			goods_input_electricity_add = 10	# 300
			goods_input_wood_add = 60			# 1200 # TOTAL 2100
			
			# output goods
			goods_output_hardwood_add = 90		# 3600 # PROFIT 1500
		}

		level_scaled = {
			building_employment_laborers_add = 3000
			building_employment_machinists_add = 1000
			building_employment_engineers_add = 500
		}
	}

}

pm_no_secondary_treatment = {
	texture = "gfx/pm_icons/no_chemical.dds"
	

}

pm_minimal_chemical_treatment = {
	texture = "gfx/interface/icons/production_method_icons/leblanc_process.dds"
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}

	
	unlocking_technologies = {
		chemical_bleaching
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 3 			# 120
			goods_input_fertilizer_add = 6		# 180	# TOTAL 300
			
			# output goods
			goods_output_hardwood_add = 10	# 400 # PROFIT 100
		}

		level_scaled = {
			building_employment_machinists_add = 75
			building_employment_engineers_add = 75
		}
	}

}

pm_full_chemical_treatment = {
	texture = "gfx/interface/icons/production_method_icons/ammonia_soda_process.dds"
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 8
		}
	}

	
	unlocking_technologies = {
		aniline
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_electricity_add = 5		# 150
			goods_input_fertilizer_add = 10		# 300 # TOTAL 450
			
			# output goods
			goods_output_hardwood_add = 20	# 800 # PROFIT 300
		}

		level_scaled = {
			building_employment_machinists_add = 125
			building_employment_engineers_add = 125
		}
	}
	

}


### FURNITURE MANUFACTORY ###

pm_handcrafted_furniture = {
	texture = "gfx/interface/icons/production_method_icons/furniture_handicraft.dds"
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 25		# 500
			goods_input_fabric_add = 8		# 160	# TOTAL 660
			
			# output goods
			goods_output_furniture_add = 42	# 1260	# PROFIT 600
		}

		level_scaled = {
			# profit = 550 (6.4)
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 4500
		}
	}
}		

pm_lathe = {
	texture = "gfx/interface/icons/production_method_icons/lathes.dds"
	
	unlocking_technologies = {
		lathe
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 35		# 700
			goods_input_fabric_add = 15		# 300
			goods_input_tools_add = 5		# 200	# TOTAL 1200
			
			# output goods
			goods_output_furniture_add = 67	# 2010
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 3500
			building_employment_machinists_add = 1000
		}
	}
}

pm_mechanized_workshops = {
	texture = "gfx/interface/icons/production_method_icons/dye_workshops.dds"
	
	unlocking_technologies = {
		mechanized_workshops
	}

	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 30			# 600
			goods_input_fabric_add = 15			# 300
			goods_input_hardwood_add = 15		# 600
			goods_input_tools_add = 7.5			# 300	# TOTAL 1800
			
			# output goods
			goods_output_furniture_add = 96		# 2880	# PROFIT 1530
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 3000
			building_employment_machinists_add = 1000
			building_employment_engineers_add = 500
		}
	}
}

pm_plastic_furniture = {
	texture = "gfx/interface/icons/production_method_icons/mechanized_workshops.dds"
	
	unlocking_technologies = {
		dough_rollers
	}

	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_plastics_add = 20		# 1000
			goods_input_fabric_add = 15			# 300
			goods_input_hardwood_add = 12.5		# 500
			goods_input_tools_add = 10			# 400
			goods_input_electronics_add = 5		# 200	# TOTAL 2400
			
			# output goods
			goods_output_furniture_add = 140	# 4200	# PROFIT 1800
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 3000
			building_employment_machinists_add = 500
			building_employment_engineers_add = 1000
		}
	}
}

pm_luxury_furniture = {
	texture = "gfx/interface/icons/production_method_icons/luxury_furniture.dds"
	
	
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
	
			# output goods
			goods_output_furniture_add = -40		#
			goods_output_luxury_furniture_add = 20	# NO PROFIT
		}
				
	}
}

pm_precision_tools = {
	texture = "gfx/interface/icons/production_method_icons/luxury_furniture_increased.dds"

	unlocking_production_methods = {
		pm_mechanized_workshops
		pm_plastic_furniture
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			
			# output goods
			goods_output_furniture_add = -70			# 
			goods_output_luxury_furniture_add = 35		# NO PROFIT
		}						
	}
}

pm_luxury_furniture_focus = {
	texture = "gfx/interface/icons/production_method_icons/precision_tools.dds"

	unlocking_production_methods = {
		pm_plastic_furniture
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			
			# output goods
			goods_output_furniture_add = -100			# 
			goods_output_luxury_furniture_add = 50		# NO PROFIT
		}					
	}
}

### PAPER MILL #
pm_handcrafting_paper = {
	texture = "gfx/interface/icons/production_method_icons/furniture_handicraft.dds"	# VANILLA FILE
	
	building_modifiers = {
		level_scaled = {
			building_employment_laborers_add = 4500
			building_employment_shopkeepers_add = 500
		}
	}
}

pm_rotary_press_paper = {
	texture = "gfx/pm_icons/pneumatic_main.dds"
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}
	
	unlocking_technologies = {
		mechanical_production
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 10 			# 400
			goods_input_coal_add = 5 			# 150	# 550
			
			# output goods
			goods_output_paper_add = 25 # 750	# PROFIT 200
		}

		level_scaled = {
			building_employment_laborers_add = 3000
			building_employment_machinists_add = 500
			building_employment_shopkeepers_add = 500
		}
	}
}

pm_electric_drive_paper = {
	texture = "gfx/interface/icons/production_method_icons/electric_engines.dds" # VANILLA FILE
	
	unlocking_technologies = {
		electrification
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 10 			# 400
			goods_input_electricity_add = 9 	# 240	# TOTAL 670
			
			# output goods
			goods_output_paper_add = 30 # 900	# PROFIT 230
		}

		level_scaled = {
			building_employment_laborers_add = 1000
			building_employment_machinists_add = 1000
			building_employment_engineers_add = 500
			building_employment_shopkeepers_add = 500
		}
	}
}

pm_auto_press_paper = {
	texture = "gfx/pm_icons/assembly_main.dds"
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 10
		}
	}
	
	unlocking_technologies = {
		automatic_machines
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 10 			# 400
			goods_input_electricity_add = 10 	# 300
			goods_input_electronics_add = 6.25	# 50
			goods_input_fuel_add = 1 			# 50	# TOTAL 750
			
			# output goods
			goods_output_paper_add = 60 		# 1800	# PROFIT 900
		}

		level_scaled = {
			building_employment_laborers_add = 500
			building_employment_machinists_add = 500
			building_employment_engineers_add = 500
			building_employment_shopkeepers_add = 500
		}
	}
}


# PAPER MILL

pm_pulp_pressing = {
	texture = "gfx/interface/icons/production_method_icons/pulp_pressing.dds"			
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 30		# 600
			
			# output goods
			goods_output_paper_add = 40		# 1200	# PROFIT 600
		}
	}
}

pm_sulfite_pulping = {
	texture = "gfx/interface/icons/production_method_icons/sulfite_pulping.dds"
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 3
		}
	}
	
	unlocking_technologies = {
		mechanical_tools
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 30		# 600
			goods_input_sulfur_add = 10		# 500	# TOTAL 1100
			
			# output goods
			goods_output_paper_add = 60		# 1800	# PROFIT 700
		}
		level_scaled = {
			building_employment_laborers_add = -250
			building_employment_machinists_add = 250
		}
	}
}

pm_ink_paper = {
	texture = "gfx/pm_icons/ink_paper.dds"
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 3
		}
	}
	
	unlocking_technologies = {
		mechanical_tools
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 30 	# 600
			goods_input_oil_add = 12 	# 480 # TOTAL 1080
			
			# output goods
			goods_output_paper_add = 60 # 2050	# PROFIT 970
		}
		
		level_scaled = {
			building_employment_laborers_add = -250
			building_employment_machinists_add = 250
		}
	}
}

pm_bleached_paper = {
	texture = "gfx/interface/icons/production_method_icons/bleached_paper.dds"
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}
	
	unlocking_technologies = {
		chemical_bleaching
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 30	# 600
			goods_input_sulfur_add = 10	# 500
			goods_input_dye_add = 10	# 400	# TOTAL 1500
			
			# output goods
			goods_output_paper_add = 80	# 2400	# PROFIT 900
		}
		
		level_scaled = {
			building_employment_laborers_add = -500
			building_employment_machinists_add = 500
		}
	}
}

### TEXTILE MILLS ###

### EQUIPMENT ###
pm_handsewn_clothes = {
	texture = "gfx/interface/icons/production_method_icons/handsewn_clothes.dds"
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_fabric_add = 30			# 600
			
			# output goods
			goods_output_clothes_add = 40		# 1200	# PROFIT 600
		}
		
		level_scaled = {
			building_employment_laborers_add = 4500
			building_employment_shopkeepers_add = 500
		}
	}
}

pm_sewing_machines = {
	texture = "gfx/interface/icons/production_method_icons/sewing_machines.dds"
	
	unlocking_technologies = {
		precise_metalworking
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_fabric_add = 40			# 800
			goods_input_tools_add = 10			# 400	# TOTAL 1200
			
			# output goods
			goods_output_clothes_add = 80		# 2400	# PROFIT 1200
		}

		level_scaled = {
			building_employment_laborers_add = 4000
			building_employment_machinists_add = 500
			building_employment_shopkeepers_add = 500
		}
	}
}

pm_electric_sewing_machines = {
	texture = "gfx/interface/icons/production_method_icons/electric_sewing_machines.dds"
	
	unlocking_technologies = {
		electrical_capacitors
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_fabric_add = 50			# 1000
			goods_input_electronics_add = 5		# 200
			goods_input_wire_add = 6.5			# 195
			goods_input_electricity_add = 10	# 300	# TOTAL 1695
			
			# output goods
			goods_output_clothes_add = 115		# 3450	# PROFIT 1755
		}

		level_scaled = {
			building_employment_laborers_add = 3000
			building_employment_machinists_add = 1000
			building_employment_engineers_add = 500
			building_employment_shopkeepers_add = 500
		}
	}
}

#
pm_no_dye_textile = {
	texture = "gfx/pm_icons/no_dye_main.dds"
	
}

pm_dyed_clothes = {
	texture = "gfx/interface/icons/production_method_icons/synthetic_dyes.dds"
	unlocking_technologies = {
		lathe
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_dye_add = 10			# 400
			
			# output goods
			goods_output_clothes_add = 15		# 450	# PROFIT 50
		}
	}
}

pm_dyed_clothes_2 = {
	texture = "gfx/pm_icons/pot_stills.dds"
	unlocking_technologies = {
		aniline
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_dye_add = 20			# 800
			
			# output goods
			goods_output_clothes_add = 30		# 900	# PROFIT 100
		}
	}
}

# LUXURY CLOTHES

pm_no_luxury_clothes = {
	texture = "gfx/interface/icons/production_method_icons/no_luxury_clothes.dds"
}

pm_luxury_clothes_production = {
	texture = "gfx/interface/icons/production_method_icons/craftsman_sewing.dds"
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_fabric_add = -20			# +400
			goods_input_silk_add = 10				# 400	# TOTAL 0
			
			# output goods
			goods_output_clothes_add = -40			# -1200
			goods_output_luxury_clothes_add = 20	# 1200	# PROFIT 0
		}
	}
}

pm_craftsman_sewing = {
	texture = "gfx/interface/icons/production_method_icons/craftsman_sewing.dds"
	
	unlocking_production_methods = {
		pm_sewing_machines
		pm_electric_sewing_machines
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_fabric_add = -30			# +600
			goods_input_silk_add = 15				# 600	# TOTAL 0
			
			# output goods
			goods_output_clothes_add = -60			# -1800
			goods_output_luxury_clothes_add = 30	# 1800	# PROFIT 0
		}
	}
	
}

pm_elastics = {
	texture = "gfx/interface/icons/production_method_icons/elastics.dds"
	
	unlocking_technologies = {
		vulcanization
	}
	
	unlocking_production_methods = {
		pm_electric_sewing_machines
	}
	
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_fabric_add = -40			# -800
			goods_input_silk_add = 15				# 600
			goods_input_rubber_add = 10 			# 400	# TOTAL 200
			
			# output goods
			goods_output_clothes_add = -90			# -2700
			goods_output_luxury_clothes_add = 48.5	# 2910	# PROFIT 210
		}
	}
}

pm_luxury_clothes_focus = {
	texture = "gfx/interface/icons/production_method_icons/elastics.dds"

	unlocking_technologies = {
		vulcanization
	}
	
	unlocking_production_methods = {
		pm_electric_sewing_machines
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_fabric_add = -30			# -600
			goods_input_silk_add = 15				# 600
			goods_input_rubber_add = 15 			# 600	# TOTAL 600
			
			# output goods
			goods_output_clothes_add = -110			# -3300
			goods_output_luxury_clothes_add = 65	# 3900	# PROFIT 600
		}
	}
}
