Module:MOS modes: Difference between revisions
No edit summary |
No edit summary |
||
| Line 74: | Line 74: | ||
result = result .. "|" .. mos_modes[i] .. "\n" | result = result .. "|" .. mos_modes[i] .. "\n" | ||
-- Add the UDP, formatted as | -- 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 .. "|" | result = result .. "|" .. "<nowiki>6|0</nowiki>" .. "\n" | ||
end | end | ||