Merge pull request #4926 from VOREStation/vplk-gas-turbine

Make gas turbine constructable and operational
This commit is contained in:
Anewbe
2018-02-23 13:16:56 -06:00
committed by GitHub
4 changed files with 346 additions and 191 deletions

View File

@@ -509,6 +509,16 @@ Turf and target are seperate in case you want to teleport some distance from a t
// mob_list.Add(M)
return moblist
// Format a power value in W, kW, MW, or GW.
/proc/DisplayPower(powerused)
if(powerused < 1000) //Less than a kW
return "[powerused] W"
else if(powerused < 1000000) //Less than a MW
return "[round((powerused * 0.001),0.01)] kW"
else if(powerused < 1000000000) //Less than a GW
return "[round((powerused * 0.000001),0.001)] MW"
return "[round((powerused * 0.000000001),0.0001)] GW"
//Forces a variable to be posative
/proc/modulus(var/M)
if(M >= 0)