Module:MOS modes: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 77: Line 77:
-- d is the number of bright generators going down, and p is the number of periods
-- d is the number of bright generators going down, and p is the number of periods
-- (slightly different from standard UDP notation of u|d(p))
-- (slightly different from standard UDP notation of u|d(p))
local gens_up = (i - 1) * periods
local gens_down = (i - 1) * periods
local gens_down = (#mos_modes - i - 1) * periods
local gens_up = (#mos_modes - i) * periods
result = result .. "|" .. gens_up .. "<nowiki>|</nowiki>" .. gens_down .. "\n"
result = result .. "| " .. gens_up .. "<nowiki>|</nowiki>" .. gens_down .. "\n"
end
end