Skip to content

Commit

Permalink
eoh
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Jun 2, 2024
1 parent c6a4b8e commit 0be6ef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EOH/v2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ end

local hydrogenAmount = tonumber(args[1])
local nitrogenAmount = tonumber(args[2])
local transferAmount = 1 -- G
local transferAmount = 0.25 -- G
--local transferAmount = tonumber(args[3])
local eohRuntime = tonumber(args[3])
colorPrint(GREEN, "参数: 氢气数量 = " .. tostring(hydrogenAmount) .. " G")
Expand Down Expand Up @@ -253,13 +253,13 @@ local function update()

colorPrint(GREEN, "请求转移 " .. tostring(thisTimePush) .. " G, 总共还缺少 " .. tostring(remainingToPush) .. " G")
local success, transferred = inputH.transferFluid(outputSide, thisTimePush * ONE_G)
os.sleep(2)
if success then
pushedH = pushedH + transferred / ONE_G;
colorPrint(GREEN, "转移: " .. tostring(transferred / ONE_G) .. " G")
else
colorPrint(RED, "转移失败, 睡一会")
end
os.sleep(2)
end

colorPrint(GREEN, "开始转移氮气")
Expand All @@ -274,13 +274,13 @@ local function update()

colorPrint(GREEN, "请求转移 " .. tostring(thisTimePush) .. " G, 总共还缺少 " .. tostring(remainingToPush) .. " G")
local success, transferred = inputN.transferFluid(outputSide, thisTimePush * ONE_G)
os.sleep(2)
if success then
pushedN = pushedN + transferred / ONE_G;
colorPrint(GREEN, "转移成功: " .. tostring(transferred / ONE_G) .. " G")
else
colorPrint(RED, "转移失败, 睡一会")
end
os.sleep(2)
end

colorPrint(BLUE, "鸿蒙开始工作了, 开始等待 " .. tostring(eohRuntime) .. "")
Expand Down

0 comments on commit 0be6ef5

Please sign in to comment.