[READ-ONLY] Mirror of https://github.com/thoda-dev/sb-fuel-time. a small script that show you how long will last your fuel
0

Configure Feed

Select the types of activity you want to include in your feed.

increased refresh time from 2s to 1.2s

Thomas (Aug 26, 2021, 9:21 PM +0200) cf23b871 8f07780d

+11 -11
+11 -11
fueltime.yolol
··· 1 - n="\n" h="h " m="m " s="s" hs=3600 hm=60 r="Fuel Rods" p="Propellant" 2 - fr=:FuelChamberFuel pr=:GasNetworkStoredResource frt="-" prt="-" 3 - fr2=:FuelChamberFuel pr2=:GasNetworkStoredResource frs=(fr-fr2)*5 4 - prs=(pr-pr2)*5 frsec=fr2/(frs+(frs==0)) prsec=pr2/(prs+(prs==0)) 5 - frhm=frsec%hs frh=(frsec-frhm)/hs frmm=frhm%hm frm=(frhm-frmm)/hm 6 - frsm=frmm%1 frss=frmm-frsm prhm=prsec%hs prh=(prsec-prhm)/hs 7 - prmm=prhm%hm prm=(prhm-prmm)/hm prsm=prmm%1 prss=prmm-prsm 8 - if frs>0 then frt=frh+h+frm+m+frss+s end 9 - if prs>0 then prt=prh+h+prm+m+prss+s end 10 - :FuelTime=n+r+n+frt+n+n+p+n+prt goto1 1 + a=:FuelChamberFuel b=:GasNetworkStoredResource c="-" d="-" 2 + e=:FuelChamberFuel f=:GasNetworkStoredResource g=(a-e)*5 h=(b-f)*5 3 + i=e/(g+g==0) j=f/(h+h==0) k=i%3600 l=(i-k)/3600 m=k%60 n=(k-m)/60 4 + o=m%1 p=m-o q=j%3600 r=(j-q)/3600 s=q%60 t=(q-s)/60 u=s%1 v=s-u 5 + ifg>0thenc=l+"h "+n+"m "+p+"s"end ifh>0thend=r+"h "+t+"m "+v+"s"end 6 + :FuelTime="\nFuel Rods\n"+c+"\n"+"\n"+"Propellant"+"\n"+d goto1 7 + 11 8 12 9 13 10 ··· 16 13 17 14 18 15 19 - // SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060) 16 + 17 + 18 + 19 + // SHIP FUEL TIME By Jericho (Discord: jericho#1060) 20 20 // https://github.com/Jericho1060/sb-energy-management