Module:MOS: Difference between revisions
m mode_from_mos() goes by bright generators going up |
m Realized mode code wasn't by bright gens going up; changed to bright gens going down (based on some of frostburn's own code) |
||
| Line 173: | Line 173: | ||
-- Given a mos, return a mode based on how it's ranked by modal brightness. | -- Given a mos, return a mode based on how it's ranked by modal brightness. | ||
-- | -- Ordering here is based on the number of bright gens going DOWN: 0 is the | ||
-- | -- brightest mode, 1 is 2nd brightest, etc... | ||
function p.mode_from_mos(mos, bright_gens_going_down) | |||
function p.mode_from_mos(mos, | return p.rotate_mode(p.brightest_mode(mos), bright_gens_going_down * p.bright_gen_step_count(mos)) | ||
return p.rotate_mode(p.brightest_mode(mos), | |||
end | end | ||