Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. function TrackJudgment(self,j,p)
  2.     local pn = p or math.max(self:getaux(),1)
  3.     judge[pn].Score = GetScore(pn)
  4.     judge[pn][j] = judge[pn][j] + 1
  5.     judge[pn].CurDP = judge[pn].CurDP + ScoreWeight(j)
  6.     judge[pn].MaxDP = judge[pn].MaxDP + MaxScoreWeight(j)
  7.     local r = j
  8.     if j == 9 then r = 7 -- Large number of ok/ng judgments accounting for columns, set mines to 7 and start holds from 8.
  9.     elseif j > 6 then
  10.         judge[pn].Delay = true
  11.         for i,v in ipairs(holdJudgments) do
  12.             if self == v then r = (math.mod(i-1,16) + 1) + (NumColumns(pn) * (j-7)) + (7) end  -- (Column number, modded by columns per player) + (columns used in this chart, for NG) + (number of judgments in list before 1st ok)
  13.         end
  14.     else
  15.         judge[pn].T = judge[pn].T + 1
  16.         AddStepToStream(pn,j)
  17.     end
  18.     table.insert( judge[pn].Data , { r , MusicClock() } ) -- compressed to ghost data
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement