Code: Select all
local remainingtime = "4.2 " .. ReadText(1001, 112)
if proddata.state == "producing" and proddata.remainingtime == 0 then
local clustermacro = GetComponentData(GetComponentData(menu.object, "clusterid"), "macro")
if clustermacro == "cluster_a_macro" then
-- Maelstrom
remainingtime = "0.9 " .. ReadText(1001, 112)
elseif clustermacro == "cluster_b_macro" then
-- Albion
remainingtime = "4.2 " .. ReadText(1001, 112)
elseif clustermacro == "cluster_c_macro" then
-- Omycron Lyrae
remainingtime = "3.7 " .. ReadText(1001, 112)
elseif clustermacro == "cluster_d_macro" then
-- DeVries
remainingtime = "11.4 " .. ReadText(1001, 112)
end
else
remainingtime = ConvertTimeString(proddata.remainingtime , "%h" .. ReadText(1001, 102) .. " %M" .. ReadText(1001, 103) .. " %S" .. ReadText(1001, 100))
end
I'm sure most others have observed this in-game, but I haven't properly played in a while, so this is all unfamiliar to me.