Commit 3ffd18e6 authored by DeadPoolJ's avatar DeadPoolJ Committed by Exxion
Browse files

Adds heat capacity to analyzer output. (#12515)

parent e329cd86
......@@ -323,6 +323,7 @@ Subject's pulse: ??? BPM"})
var/n2_concentration = scanned.nitrogen/total_moles
var/co2_concentration = scanned.carbon_dioxide/total_moles
var/plasma_concentration = scanned.toxins/total_moles
var/heat_capacity = scanned.heat_capacity()
var/unknown_concentration = 1 - (o2_concentration + n2_concentration + co2_concentration + plasma_concentration)
......@@ -338,6 +339,7 @@ Subject's pulse: ??? BPM"})
message += "<br><span class='notice'>Unknown: [round(unknown_concentration*100)]%</span>"
message += "<br>[human_standard && !(scanned.temperature in range(BODYTEMP_COLD_DAMAGE_LIMIT, BODYTEMP_HEAT_DAMAGE_LIMIT)) ? "<span class='bad'>" : "<span class='notice'>"] Temperature: [round(scanned.temperature-T0C)]&deg;C"
message += "<br><span class='notice'>Heat capacity: [round(heat_capacity, 0.01)]</span>"
else
message += "<br><span class='warning'>No gasses detected[container && !istype(container, /turf) ? " in \the [container]." : ""]!</span>"
return message
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment