20 lines
959 B
Plaintext
20 lines
959 B
Plaintext
a=36 //Number of generators
|
|
b=2000 //Max power per second of generators
|
|
c=264 //Number of batteries
|
|
d=10000 //Max power stored in batteries
|
|
e=16 //Number of heat sink's
|
|
f=15000 //Capacity of heat sink
|
|
g=9950 //Below what battery level turn on 100% generators
|
|
ECO=0 //Slow power down on 100% of battery (1 ON / 0 OFF)
|
|
o=1 //Amount of % per 0,2 second generators will power down (no ECO)
|
|
Boost=1 //Preheat generators to p level (1 ON / 0 OFF)
|
|
p=100 //Preheat level in % for Boost mode
|
|
h=100 q=100 i=a*b j=c*d k=j/i
|
|
s=:high l=(:bat*c) m=((l/k)/i)*h n=((:heat*e)/(f*e))*h goto14+r+s
|
|
r=0 :gm=0 if :bat<g then :gen=h-n else :gen=(h-m)-n end goto13
|
|
if:eco thengoto14end if:boost then:gm=1 :gen=p-n else goto13 end
|
|
if s==1 and :boost and :pow<p then r=0 goto13 else r=2 goto17 end
|
|
ifs==0 then r=0 end if :bat<g then:gm=2 :gen=h-n elsegoto18end goto13
|
|
:gm=3 if :bat==d then q=:pow q-=o else q+=o end :gen=q-n goto13
|
|
|
|
//Designed by Adrian202 (ingame AdrianRC) version 7 |