Module:MOS modes: Difference between revisions
No edit summary |
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 | local gens_down = (i - 1) * periods | ||
local | 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 | ||