You can now fasten the TEG circulators, to make your own TEG

This commit is contained in:
Crazylemon64
2016-05-21 14:33:05 -07:00
parent 0c85e809be
commit b44b40d387
2 changed files with 16 additions and 3 deletions
+6 -3
View File
@@ -17,6 +17,7 @@
var/image/overlay_image
var/power_multiplier = 1 // This is so admins can tweak how good it is to find a good balance for effort -> power
var/powercap = 500000 //Not a hard cap, but outputs above this have a 10% chance to cause the TeG to lose half it's power.
/obj/machinery/power/generator/New()
@@ -81,7 +82,7 @@
var/efficiency = 0.65
var/energy_transfer = delta_temperature*air2_heat_capacity*air1_heat_capacity/(air2_heat_capacity+air1_heat_capacity)
var/heat = energy_transfer*(1-efficiency)
lastgen = energy_transfer*efficiency*0.05
lastgen = energy_transfer*efficiency*0.05*power_multiplier
if(air2.temperature > air1.temperature)
air2.temperature = air2.temperature - energy_transfer/air2_heat_capacity
@@ -97,8 +98,10 @@
circ2.air2.merge(air2)
//Update the gas networks
circ1.parent2.update = 1
circ2.parent2.update = 1
if(circ1.parent2)
circ1.parent2.update = 1
if(circ2.parent2)
circ2.parent2.update = 1
// update icon overlays and power usage only if displayed level has changed
if(lastgen > powercap && prob(10))