
# We shall decide based on base price of these stuff

#Coal cost $30
#Electricity cost $30
#Tools cost $40
#sulfur cost $50
#radioactive_ore cost $40 (Same as iron ore
#irradiated_material cost $50
#nuclear_fuel $50
#electricity $30



# We should now do Nuclear Reactor.
# Aim around $2,400 profit
pm_backyard_pile_nuclear_reactor = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/backyard_pile_nuclear_reactor.jpg"
	pollution_generation = 20

	
	building_modifiers = { 
		workforce_scaled = {
			building_input_engines_add = 8
			building_input_tools_add = 8
			building_input_nuclear_fuel_add = 55
			# Cost: $3,630
			
			building_output_electricity_add = 200
			# Gain: $6,000
			# Profit: $2,470
		}

		level_scaled = {
			building_employment_laborers_add = 2900
			building_employment_machinists_add = 1400
			building_employment_engineers_add = 600
		}

		unscaled = {
			building_laborers_mortality_mult = 0.2
			building_machinists_mortality_mult = 0.15
			building_engineers_mortality_mult = 0.1
		}
	}
}

# Aim around $3,200 profit
pm_specialized_generating_nuclear_reactor = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/specialized_generating_nuclear_reactor.jpg"
	pollution_generation = 5

	unlocking_technologies = {
		sophisticated_nuclear_reactor
	}

	
	building_modifiers = { 
		workforce_scaled = {
			building_input_nuclear_engines_add = 12
			building_input_nuclear_fuel_add = 86
			# Cost: $5,020
			
			building_output_electricity_add = 280
			# Gain: $8,400
			# Profit: $3,380
		}


		level_scaled = {
			building_employment_laborers_add = 1600
			building_employment_machinists_add = 1500
			building_employment_engineers_add = 1400
		}

	}
}


############ Waste Processing

pm_waste_discard = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/waste_discard_nuclear_reactor.dds"
	pollution_generation = 25
}

#Nuclear Material costs $50

pm_waste_recycling_nuclear_reactor = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/waste_recycling_nuclear_reactor.jpg"
	pollution_generation = 5

	unlocking_production_methods = {
		pm_specialized_generating_nuclear_reactor
	}

	unlocking_technologies = {
		depleted_material_reprocess
	}


	building_modifiers = {
		workforce_scaled = {
			# input goods
			building_input_nuclear_engines_add = 3

			building_output_irradiated_material_add = 12

			# Additional cost: $180
			# Additional Gain: $600
			# Profit: $420
		}

		level_scaled = {
			building_employment_laborers_add = -300
			building_employment_machinists_add = 300
		}
	}
	
}

pm_waste_refinement_nuclear_reactor = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/waste_refinement_nuclear_reactor.jpg"
	pollution_generation = 5

	unlocking_production_methods = {
		pm_specialized_generating_nuclear_reactor
	}

	unlocking_technologies = {
		depleted_material_reprocess
	}



	building_modifiers = {
		workforce_scaled = {
			# input goods
			building_input_nuclear_engines_add = 3

			building_output_electricity_add = 20

			# Additional cost: $180
			# Additional Gain: $600
			# Profit: $420
		}

		level_scaled = {
			building_employment_laborers_add = -300
			building_employment_machinists_add = 300
		}
	}
	
}


############# For Vanilla Power Plants
# Aim around $3,200 profit
pm_specialized_generating_vanilla_power_plant_lv_1 = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/specialized_generating_nuclear_reactor.jpg"
	pollution_generation = 5

	unlocking_technologies = {
		sophisticated_nuclear_reactor
	}

	
	building_modifiers = { 
		workforce_scaled = {
			building_input_nuclear_engines_add = 12
			building_input_nuclear_fuel_add = 86
			# Cost: $5,020
			
			building_output_electricity_add = 280
			# Gain: $8,400
			# Profit: $3,380
		}


		level_scaled = {
			building_employment_laborers_add = 1600
			building_employment_machinists_add = 1500
			building_employment_engineers_add = 1400
		}

	}
}

pm_specialized_generating_vanilla_power_plant_lv_2 = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/waste_recycling_nuclear_reactor.jpg"
	pollution_generation = 10

	unlocking_technologies = {
		depleted_material_reprocess
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			building_input_nuclear_engines_add = 15
			building_input_nuclear_fuel_add = 86

			building_output_electricity_add = 300

			# Cost: $5,200
			# Gain: 9,000
			# Profit: $3,800
		}

		level_scaled = {
			building_employment_laborers_add = 1300
			building_employment_machinists_add = 1800
			building_employment_engineers_add = 1400
		}
	}
	
}


pm_automated_generating_vanilla_power_plant = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/waste_refinement_nuclear_reactor.jpg"
	pollution_generation = 10

	unlocking_technologies = {
		automated_systems
	}

	building_modifiers = {
		workforce_scaled = {
			# input goods
			building_input_nuclear_engines_add = 15
			building_input_nuclear_fuel_add = 86
			building_input_programmables_add = 24 #720

			building_output_electricity_add = 300

			# Cost: $5,200
			# Gain: 9,000
			# Profit: $3,800
		}

		level_scaled = {
			building_employment_laborers_add = 300
			building_employment_machinists_add = 1200
			building_employment_engineers_add = 1420
		}

	}
	
}
############# Atomic-Powered Trains
pm_atomic_powered_trains = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/atomic_powered_trains.jpg"
	pollution_generation = 10

	unlocking_technologies = {
		sophisticated_nuclear_reactor
	}
	
	building_modifiers = {
		workforce_scaled = {
			#cost: 25 * 110 = 2,750

			building_input_nuclear_engines_add = 15 #$900
			building_input_engines_add = 10 #$600
			building_input_nuclear_fuel_add = 25	#1,250

			building_output_transportation_add = 180 #$5,400
			## Same profit as airport, with steel passenger trains on
		}

		level_scaled = {
			building_employment_laborers_add = 1500
			building_employment_machinists_add = 1500
			building_employment_engineers_add = 500
			building_employment_clerks_add = 750
		}
	}

	state_modifiers = {
		level_scaled = {
			state_infrastructure_add = 100
		}
	}

}

pm_automated_train_scheduling = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/atomic_powered_trains.jpg"
	pollution_generation = 10

	unlocking_technologies = {
		automated_systems
	}
	
	building_modifiers = {
		workforce_scaled = {
			#cost: 25 * 110 = 2,750

			building_input_nuclear_engines_add = 15 #$900
			building_input_engines_add = 10 #$600
			building_input_nuclear_fuel_add = 25	#1,250
			building_input_radios_add = 6 #480
			building_input_programmables_add = 8 #240

			building_output_transportation_add = 200 #$6,000
			## Same profit as airport, with steel passenger trains on
		}

		level_scaled = {
			building_employment_laborers_add = 400
			building_employment_machinists_add = 1000
			building_employment_engineers_add = 500
			building_employment_clerks_add = 900
		}
	}

	state_modifiers = {
		level_scaled = {
			state_infrastructure_add = 100
		}
	}

}

############## Nuclear Jet Airport
#############

# Profit Aim: $2,500 
pm_all_domestic_flight_nuclear_jet_airport = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/nuclear_jet_airport.jpg"
	pollution_generation = 10
	
	building_modifiers = {
		workforce_scaled = {
			#Cost: 20*60 (engine) + 20*40 (oil) = $2,000
			#Output: $3,000

			building_input_nuclear_jet_add = 25 #$3,000
			building_input_nuclear_fuel_add = 25
			building_output_air_transportation_add = 240 #$7,200
		}

		level_scaled = {
			# Total 4,900
			building_employment_laborers_add = 1400
			building_employment_machinists_add = 1200	
			building_employment_engineers_add = 600
			building_employment_clerks_add = 750
			building_employment_capitalists_add = 50
		}
	}

	state_modifiers = {
		level_scaled = {
			state_infrastructure_add = 96
		}
	}

}

pm_quarter_international_flight_nuclear_jet_airport = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/nuclear_jet_airport.jpg"
	pollution_generation = 10
	

	building_modifiers = {
		workforce_scaled = {
			#Cost: 20*60 (engine) + 20*40 (oil) = $2,000
			#Output: $3,000

			building_input_nuclear_jet_add = 25 #$3,000
			building_input_nuclear_fuel_add = 25
			building_output_air_transportation_add = 240 #$7,200
		}

		level_scaled = {
			# Total 4,900
			building_employment_laborers_add = 1400
			building_employment_machinists_add = 1200	
			building_employment_engineers_add = 600
			building_employment_clerks_add = 750
			building_employment_capitalists_add = 50
		}
	}

	state_modifiers = {
		level_scaled = {
			state_infrastructure_add = 72
		}
	}

	country_modifiers = {
		level_scaled = {
			country_convoys_capacity_add = 300 #0 to 1,200
		}
	}
}

pm_half_half_flight_nuclear_jet_airport = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/nuclear_jet_airport.jpg"
	pollution_generation = 10
	

	building_modifiers = {
		workforce_scaled = {
			#Cost: 20*60 (engine) + 20*40 (oil) = $2,000
			#Output: $3,000

			building_input_nuclear_jet_add = 25 #$3,000
			building_input_nuclear_fuel_add = 25
			building_output_air_transportation_add = 240 #$7,200
		}

		level_scaled = {
			# Total 4,900
			building_employment_laborers_add = 1400
			building_employment_machinists_add = 1200	
			building_employment_engineers_add = 600
			building_employment_clerks_add = 750
			building_employment_capitalists_add = 50
		}
	}

	state_modifiers = {
		level_scaled = {
			state_infrastructure_add = 48
		}
	}

	country_modifiers = {
		level_scaled = {
			country_convoys_capacity_add = 600 #0 to 1,200
		}
	}
}

pm_quarter_domestic_flight_nuclear_jet_airport = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/nuclear_jet_airport.jpg"
	pollution_generation = 10


	building_modifiers = {
		workforce_scaled = {
			#Cost: 20*60 (engine) + 20*40 (oil) = $2,000
			#Output: $3,000

			building_input_nuclear_jet_add = 25 #$3,000
			building_input_nuclear_fuel_add = 25
			building_output_air_transportation_add = 240 #$7,200
		}

		level_scaled = {
			# Total 4,900
			building_employment_laborers_add = 1400
			building_employment_machinists_add = 1200	
			building_employment_engineers_add = 600
			building_employment_clerks_add = 750
			building_employment_capitalists_add = 50
		}
	}

	state_modifiers = {
		level_scaled = {
			state_infrastructure_add = 24
		}
	}

	country_modifiers = {
		level_scaled = {
			country_convoys_capacity_add = 900 #0 to 1,200
		}
	}
}

pm_all_international_flight_nuclear_jet_airport = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/nuclear_jet_airport.jpg"
	pollution_generation = 10


	building_modifiers = {
		workforce_scaled = {
			#Cost: 20*60 (engine) + 20*40 (oil) = $2,000
			#Output: $3,000

			building_input_nuclear_jet_add = 25 #$3,000
			building_input_nuclear_fuel_add = 25
			building_output_air_transportation_add = 240 #$7,200
		}

		level_scaled = {
			# Total 4,900
			building_employment_laborers_add = 1400
			building_employment_machinists_add = 1200	
			building_employment_engineers_add = 600
			building_employment_clerks_add = 750
			building_employment_capitalists_add = 50
		}
	}

	country_modifiers = {
		level_scaled = {
			country_convoys_capacity_add = 1200 #0 to 1,200
		}
	}
}

##### Airport Automation

### Airport Automation Methods
pm_automated_cargo_handler = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/integrated_circuitry_automation.dds"
	
	pollution_generation = 10
	
	unlocking_technologies = {
		automated_systems
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			## remember always that radios are now "electronic device and radios"
		
			building_input_programmables_add = 24 #720

			building_output_air_transportation_add = 20 #600

		}

		level_scaled = {
			building_employment_clerks_add = 150
			building_employment_laborers_add = -1000
			building_employment_machinists_add = -600
			building_employment_engineers_add = -180
		}
	}
}

pm_algorithmic_flight_control = {
	texture = "gfx/interface/icons/Mod_Nuclear_Production_Method_Icons/automated_production_line.jpg"
	
	pollution_generation = 10
	
	unlocking_technologies = {
		automated_systems
	}
	
	building_modifiers = {
		workforce_scaled = {
			# input goods
			## remember always that radios are now "electronic device and radios"
		
			building_input_radios_add = 9 #720
			building_output_air_transportation_add = 20 #600

		}

		level_scaled = {
			building_employment_clerks_add = 150
			building_employment_laborers_add = -1000
			building_employment_machinists_add = -600
			building_employment_engineers_add = -200
		}
	}
}


######### Ownership for airports



pm_privately_owned_advanced_nuclear_industry = {
	texture = "gfx/interface/icons/production_method_icons/privately_owned.dds"

	disallowing_laws = {
		law_command_economy
		law_cooperative_ownership
	}

	building_modifiers = {
		level_scaled = {
			building_employment_capitalists_add = 100
		}
		unscaled = {
			building_capitalists_shares_add = 10
		}
	}
}

pm_publicly_traded_advanced_nuclear_industry = {
	texture = "gfx/interface/icons/production_method_icons/publicly_traded.dds"

	unlocking_technologies = {
		mutual_funds
	}

	disallowing_laws = {
		law_command_economy
		law_cooperative_ownership
	}

	building_modifiers = {
		level_scaled = {
			building_employment_capitalists_add = 150
		}
		unscaled = {
			building_capitalists_shares_add = 10
		}
	}
}

pm_government_run_advanced_nuclear_industry = {
	texture = "gfx/interface/icons/production_method_icons/government_run.dds"
	
	unlocking_laws = {
		law_command_economy
	}
	
	building_modifiers = {
		level_scaled = {
			building_employment_bureaucrats_add = 150
		}
		unscaled = {
			building_government_shares_add = 1
		}
	}
}

pm_worker_cooperative_advanced_nuclear_industry = {
	texture = "gfx/interface/icons/production_method_icons/worker_cooperative.dds"

	unlocking_laws = {
		law_cooperative_ownership
	}

	building_modifiers = {
		level_scaled = {
			building_employment_shopkeepers_add = 250
		}
		unscaled = {
			building_workforce_shares_add = 1
		}
	}
}



################## Reference: Output of normal power plant