Jackson_Pike icon

Blahhhh

Jackson_Pike | PRO | 02/05/26 02:44:12 AM UTC | 1 ⭐ | 12280 👁️ | Never ⏰ | []
Lua |

420 B

|

None

|

1 👍

/

0 👎

-- 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