Module:MOS modes: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 74: Line 74:
result = result .. "|" .. mos_modes[i] .. "\n"
result = result .. "|" .. mos_modes[i] .. "\n"
-- Add the UDP, formatted as upUdpD because... pipe symbol ain't working
-- Add the UDP, formatted as up|dp, where u is the number of bright generators going up,
-- 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))
local gens_down = (i - 1) * periods
local gens_down = (i - 1) * periods
local gens_up = (#mos_modes - i) * periods
local gens_up = (#mos_modes - i) * periods
result = result .. "|" .. gens_up .. "U" .. gens_down .. "D\n"
result = result .. "|" .. "<nowiki>6|0</nowiki>" .. "\n"
end
end