Cleans up SM temp change using thermal energy

This commit is contained in:
mwerezak
2014-07-11 15:18:16 -04:00
parent f2a74327fb
commit 7c0541da5e

View File

@@ -205,7 +205,7 @@
//This shouldn't be necessary. If the number of moles is low, then heat_capacity should be tiny.
//if(removed.total_moles < 35) thermal_power += 750 //If you don't add coolant, you are going to have a bad time.
removed.temperature += ((device_energy * thermal_power) / removed.heat_capacity())
removed.add_thermal_energy(device_energy * thermal_power)
removed.temperature = max(0, min(removed.temperature, 10000))