﻿### TOOLING WORKSHOPS ###
pm_crude_tools = {
	texture = "gfx/interface/icons/production_method_icons/crude_tools.dds"

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 30		# 600

			# output goods
			goods_output_tools_add = 30		# 1200	# PROFIT 600
		}

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

pm_pig_iron = {
	texture = "gfx/interface/icons/production_method_icons/pig_iron_tools.dds"

	unlocking_technologies = {
		steelworking
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 20		# 400
			goods_input_iron_add = 20		# 800	# TOTAL 1200

			# output goods
			goods_output_tools_add = 50		# 2000	# PROFT 800
		}

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

pm_steel = {
	texture = "gfx/interface/icons/production_method_icons/bessemer_process.dds"
	unlocking_technologies = {
		mechanical_production
	}
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 30		# 600
			goods_input_steel_add = 24		# 1200	# TOTAL 1800

			# output goods
			goods_output_tools_add = 72.5	# 2900
		}

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

pm_rubber_grips = {
	texture = "gfx/interface/icons/production_method_icons/steel_tools.dds"
	unlocking_technologies = {
		vulcanization
	}
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_rubber_add = 10		# 400
			goods_input_hardwood_add = 10	# 400
			goods_input_steel_add = 32		# 1600	# TOTAL 2400

			# output goods
			goods_output_tools_add = 105
		}

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

### MILITARY FACTORIES ###

pm_muskets = {
	texture = "gfx/interface/icons/production_method_icons/muskets.dds"

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_iron_add = 10
			goods_input_wood_add = 20

			# output goods
			goods_output_small_arms_add = 30
		}

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

pm_bolt_action_rifles = {
	texture = "gfx/interface/icons/production_method_icons/bolt_action_rifles.dds"

	unlocking_technologies = {
		bolt_action_rifles
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_steel_add = 20
			goods_input_hardwood_add = 10
			goods_input_tools_add = 20
			goods_input_fuel_add = 8

			# output goods
			goods_output_small_arms_add = 100
		}

		level_scaled = {
			# employment
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 2500
			building_employment_machinists_add = 1250
			building_employment_engineers_add = 750
		}
	}
}

pm_cannons = {
	texture = "gfx/interface/icons/production_method_icons/artillery_production.dds"

	unlocking_technologies = {
		artillery
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_iron_add = 15
			goods_input_wood_add = 20

			# output goods
			goods_output_artillery_add = 25
		}

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

pm_recoiled_barrels = {
	texture = "gfx/interface/icons/production_method_icons/recoil_mechanism_artillery_production.dds"

	unlocking_technologies = {
		automatic_machine_guns
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_steel_add = 40
			goods_input_tools_add = 20
			goods_input_fuel_add = 8

			# output goods
			goods_output_artillery_add = 90
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 2500
			building_employment_machinists_add = 1250
			building_employment_engineers_add = 750
		}
	}
}

### CHEMICAL PLANTS ###

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

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_sulfur_add = 20			# 1000
			goods_input_copper_add = 7.5			# 300	# TOTAL 1300

			# output goods
			goods_output_fertilizer_add = 70	# 2100	# PROFIT 800
		}

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

pm_improved_fertilizer = {
	texture = "gfx/interface/icons/production_method_icons/improved_fertilizer.dds"
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 10
		}
	}

	unlocking_technologies = {
		improved_fertilizer
	}

	building_modifiers = {
		workforce_scaled = {
			goods_input_sulfur_add = 30			# 1500
			goods_input_copper_add = 10			# 400	# TOTAL 1900

			# output goods
			goods_output_fertilizer_add = 100	# 3000	# PROFIT 1100
		}

		level_scaled = {
			# employment
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 2000
			building_employment_machinists_add = 1500
			building_employment_engineers_add = 1000
		}
	}
}

pm_nitrogen_fixation = {
	texture = "gfx/interface/icons/production_method_icons/nitrogen_fixation.dds"
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 15
		}
	}

	unlocking_technologies = {
		nitrogen_fixation
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_sulfur_add = 32			# 1600
			goods_input_fuel_add = 10			# 500
			goods_input_copper_add = 10			# 400	# TOTAL 2500

			# output goods
			goods_output_fertilizer_add = 150	# 4500	# PROFIT 2000
		}

		level_scaled = {
			# employment
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 1000
			building_employment_machinists_add = 2000
			building_employment_engineers_add = 1500
		}
	}
}


### GLASSWORKS ###

pm_forest_glass = {
	texture = "gfx/interface/icons/production_method_icons/forest_glass.dds"
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 30		# 600
			
			# output goods
			goods_output_glass_add = 30		# 1200	# PROFIT 600
		}

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

pm_leaded_glass = {
	texture = "gfx/interface/icons/production_method_icons/leaded_glass.dds"
	
	unlocking_technologies = { 
		lathe 
	}
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 20		# 400
			goods_input_lead_add = 10		# 400	# TOTAL 800
			
			# output goods
			goods_output_glass_add = 36		# 1440	# PROFIT 640
		}

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

pm_crystal_glass = {
	texture = "gfx/interface/icons/production_method_icons/crystal_glass.dds"
	
	unlocking_technologies = {
		crystal_glass
	}
	
	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 10
		}
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_lead_add = 30		# 1200
			
			# output goods
			goods_output_glass_add = 50		# 2000	# PROFIT 800
		}

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

pm_no_houseware = {
	texture = "gfx/pm_icons/no_use.dds"
}

pm_wooden_appliances = {
	texture = "gfx/interface/icons/production_method_icons/furniture_handicraft.dds"
	
	unlocking_technologies = {
		canneries
	}
	

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_wood_add = 20	# 400
			
			# output goods
			goods_output_glass_add = 14	# 560	# PROFIT 160
		}

		level_scaled = {
			building_employment_laborers_add = 1000
		}
	}
}

pm_metallic_utensils = {
	texture = "gfx/interface/icons/production_method_icons/butchering_tools.dds"
	
	unlocking_technologies = {
		precise_metalworking
	}
	

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_steel_add = 10	# 500
			
			# output goods
			goods_output_glass_add = 22.5	# 900	# PROFIT 400
		}

		level_scaled = {
			building_employment_machinists_add = 1000
		}
	}
}

pm_houseware_plastics = {
	texture = "gfx/interface/icons/production_method_icons/houseware_plastics.dds"
	
	unlocking_technologies = {
		plastics
	}
	
	unlocking_production_methods = {
		crystal_glass
		leaded_glass
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_plastics_add = 16	# 800
			
			# output goods
			goods_output_glass_add = 40		# 1600	# PROFIT 800
		}

		level_scaled = {
			building_employment_machinists_add = 500
			building_employment_engineers_add = 500
		}
	}
}

pm_disabled_ceramics = {
	texture = "gfx/interface/icons/production_method_icons/no_ceramics.dds"
}

pm_ceramics = {
	texture = "gfx/interface/icons/production_method_icons/ceramics.dds"
	
	building_modifiers = {
		workforce_scaled = {
			goods_input_dye_add = 5			# 200
			goods_output_glass_add = -25	# 1000	# TOTAL 1200

			goods_output_porcelain_add = 18	# 1260	# PROFIT 60
		}
	}
}

pm_bone_china = {
	texture = "gfx/interface/icons/production_method_icons/bone_china.dds"
	
	unlocking_technologies = {
		chemical_bleaching
	}

	unlocking_production_methods = {
		pm_crystal_glass
		pm_houseware_plastics
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_dye_add = 15		# 600
			goods_output_glass_add = -60	# 2400	# 3000
			
			# output goods
			goods_output_porcelain_add = 43	# 3010	# PROFIT 10
		}	
	}														
}

pm_manual_glassblowing = {
	texture = "gfx/interface/icons/production_method_icons/glassworks_handicraft.dds"
}

pm_glass_rollers = {
	texture = "gfx/interface/icons/production_method_icons/rotary_valve_engine.dds"
	
	unlocking_technologies = {
		shift_work
	}

	disallowing_laws = {
		law_industry_banned
	}

	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 2	# 80
			goods_input_electricity_add = 4	# 120	# TOTAL 200
		}

		level_scaled = {
			building_employment_laborers_add = -1250
		}
		
		unscaled = {
			building_throughput_add = 0.07
		}
	}
}

pm_automatic_bottle_blowers = {
	texture = "gfx/interface/icons/production_method_icons/automated_bottle_blowers.dds"
	
	unlocking_technologies = {
		automatic_bottle_blowers
	}

	disallowing_laws = {
		law_industry_banned
	}

	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_tools_add = 4	# 160
			goods_input_fuel_add = 4	# 200	# TOTAL 360
		}

		level_scaled = {
			building_employment_laborers_add = -2500
			building_employment_machinists_add = -500
		}
		
		unscaled = {
			building_throughput_add = 0.15
		}
	}
}

### WIREMILL ###

pm_solid_wire_extrusion = {
	texture = "gfx/pm_icons/wire_solid_extrusion.dds"
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_copper_add = 15		# 600
			
			# output goods
			goods_output_wire_add = 40		# 1200	# PROFIT 600
		}

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

pm_stranded_wire_twisting = {
	texture = "gfx/pm_icons/wire_stranded_twisting.dds"
	
	unlocking_technologies = {
		precise_metalworking
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_copper_add = 22.5		# 900
			
			# output goods
			goods_output_wire_add = 53.5	# 1605	# PROFIT 705
		}

		level_scaled = {
			building_employment_laborers_add = 3500
			building_employment_engineers_add = 200
			building_employment_machinists_add = 800
			building_employment_shopkeepers_add = 500
		}
	}
}

pm_electroplated_wire = {
	texture = "gfx/pm_icons/wire_electroplated.dds"
	
	unlocking_technologies = {
		electric_arc_process
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_copper_add = 30			# 1200
			goods_input_electricity_add = 15	# 450
			goods_input_fertilizer_add = 2		# 60	# TOTAL 1710
			
			# output goods
			goods_output_wire_add = 110			# 3300	# PROFIT 
		}

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

pm_copper_wire = {
	texture = "gfx/pm_icons/basic_wire.dds"
}

pm_insulated_cable = {
	texture = "gfx/pm_icons/insulated_cable.dds"
	
	unlocking_technologies = {
		rubber_mastication
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_fabric_add = 15		# 300
			
			# output goods
			goods_output_wire_add = 13.5	# 405	# PROFIT 105
		}
	}
}

pm_rubber_insulation = {
	texture = "gfx/pm_icons/rubber_insulation.dds"
	
	
	unlocking_technologies = {
		vulcanization
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_rubber_add = 10		# 400
			goods_input_fabric_add = 10		# 200	# TOTAL 600
			
			# output goods
			goods_output_wire_add = 30		# 900	# PROFIT 300
		}
	}
}

### MOTOR INDUSTRIES ###

pm_early_steam_engines = {
	texture = "gfx/interface/icons/production_method_icons/steamworks.dds"

	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 10
		}
	}

	building_modifiers = {
		workforce_scaled = {
			goods_input_iron_add = 20		# 800
			goods_input_tools_add = 5		# 200	# TOTAL 1000

			goods_output_engines_add = 27	# 1620	# PROFIT 620
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 3000
			building_employment_machinists_add = 1250
			building_employment_engineers_add = 250
		}
	}
}

pm_steam_engines = {
	texture = "gfx/interface/icons/production_method_icons/steamworks.dds"
	
	unlocking_technologies = {
		rotary_valve_engine
	}

	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 10
		}
	}

	building_modifiers = {
		workforce_scaled = {
			goods_input_steel_add = 20		# 1000
			goods_input_tools_add = 10		# 400	# TOTAL 1400

			goods_output_engines_add = 40	# 2400	# PROFIT 1000
		}

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

pm_electric_engines = {
	texture = "gfx/interface/icons/production_method_icons/electric_engines.dds"

	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 5
		}
	}

	unlocking_technologies = {
		electric_railway
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_steel_add = 20				# 1000
			goods_input_tools_add = 10				# 400
			goods_input_electronics_add = 10		# 400
			goods_input_oil_add = 2.5				# 100	# TOTAL 1900

			# output goods
			goods_output_engines_add = 52			# 3120	# PROFIT 1220
		}

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

}

pm_diesel_engines = {
	texture = "gfx/interface/icons/production_method_icons/diesel_engines.dds"

	state_modifiers = {
		workforce_scaled = {
			state_pollution_generation_add = 10
		}
	}

	unlocking_technologies = {
		compression_ignition
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			goods_input_steel_add = 24				# 1200
			goods_input_tools_add = 15				# 600
			goods_input_electronics_add = 15		# 600
			goods_input_fuel_add = 4				# 200	# TOTAL 2600

			# output goods
			goods_output_engines_add = 75			# 4500	# PROFIT 
		}

		level_scaled = {
			building_employment_shopkeepers_add = 500
			building_employment_laborers_add = 2500
			building_employment_machinists_add = 250
			building_employment_engineers_add = 1500
		}
	}
}
