Merge pull request #8056 from deathride58/tegnerf

Makes the efficiency of the TEG be dependant on how much gas is actively combusting in the hot pipe
This commit is contained in:
kevinz000
2019-03-10 13:48:42 -07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -61,6 +61,8 @@
//Actually transfer the gas
var/datum/gas_mixture/removed = air2.remove(transfer_moles)
removed.react(src)
update_parents()
return removed

View File

@@ -65,7 +65,7 @@
if(delta_temperature > 0 && cold_air_heat_capacity > 0 && hot_air_heat_capacity > 0)
var/efficiency = 0.45
var/efficiency = 0.00025 + (hot_air.reaction_results["fire"]*0.01)
var/energy_transfer = delta_temperature*hot_air_heat_capacity*cold_air_heat_capacity/(hot_air_heat_capacity+cold_air_heat_capacity)