Space changes

This commit is contained in:
Alffd
2018-02-06 21:22:29 -05:00
parent 23988e92dc
commit d16f1a71f6
2 changed files with 8 additions and 8 deletions
@@ -123,15 +123,15 @@
/datum/computer_file/program/supermatter_monitor/Topic(href, href_list)
if(..())
return 1
if( href_list["clear"] )
if(href_list["clear"])
active = null
return 1
if( href_list["refresh"] )
if(href_list["refresh"])
refresh()
return 1
if( href_list["set"] )
if(href_list["set"])
var/newuid = text2num(href_list["set"])
for(var/obj/machinery/power/supermatter_shard/S in supermatters)
if(S.uid == newuid)
active = S
return 1
return 1
@@ -211,7 +211,7 @@
var/temp_factor
var/equilibrium_power
if (oxygen > 0.8)
if(oxygen > 0.8)
//If chain reacting at oxygen == 1, we want the power at 800 K to stabilize at a power level of 400
equilibrium_power = 400
icon_state = "[base_icon_state]_glow"
@@ -220,8 +220,8 @@
equilibrium_power = 250
icon_state = base_icon_state
temp_factor = ( (equilibrium_power/DECAY_FACTOR)**3 )/800
power = max( (removed.temperature * temp_factor) * oxygen + power, 0)
temp_factor = ((equilibrium_power / DECAY_FACTOR) ** 3) / 800
power = max((removed.temperature * temp_factor) * oxygen + power, 0)
var/device_energy = power * REACTION_POWER_MODIFIER
@@ -232,7 +232,7 @@
removed.oxygen += max((device_energy + removed.temperature - T0C) / OXYGEN_RELEASE_MODIFIER, 0)
var/thermal_power = THERMAL_RELEASE_MODIFIER * device_energy
if (debug)
if(debug)
var/heat_capacity_new = removed.heat_capacity()
visible_message("[src]: Releasing [round(thermal_power)] W.")
visible_message("[src]: Releasing additional [round((heat_capacity_new - heat_capacity)*removed.temperature)] W with exhaust gasses.")