Make gas turbine constructable and operational

* Make gas turbine constructable, as well as modernizing its code. Borrowed some from /tg
* Converted the gas turbine control computer to nano ui.
This commit is contained in:
Leshana
2018-02-18 21:21:50 -05:00
parent a47ce58f0a
commit a1bfd1fb46
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)