-- burnRateMbT: fuel burn rate in mB per tick
-- seconds: how long the reactor runs
-- returns: ingots consumed
function ingotsUsed(burnRateMbT, seconds)
local ticks = seconds * 20
local milliBuckets = burnRateMbT * ticks
local ingots = milliBuckets / 1000
return ingots
end
local burnRate = 0.1 -- mB/t
print("Per minute:", ingotsUsed(burnRate, 60))
print("Per hour:", ingotsUsed(burnRate, 3600))
Comments
0 B
|👍
/👎
0 B
|👍
/👎