[sm130score] Cleanup, prepare for bonus?
This commit is contained in:
@@ -90,7 +90,8 @@ r['DDR Extreme'] = function(params, pss)
|
|||||||
Shared.CurrentStep = 0
|
Shared.CurrentStep = 0
|
||||||
end;
|
end;
|
||||||
Shared.CurrentStep = Shared.CurrentStep + 1;
|
Shared.CurrentStep = Shared.CurrentStep + 1;
|
||||||
local stepLast = math.floor(baseScore / singleStep) * (Shared.CurrentStep);
|
local stepValue = math.floor(baseScore /singleStep);
|
||||||
|
local stepLast = stepValue * Shared.CurrentStep;
|
||||||
pss:SetCurMaxScore(pss:GetCurMaxScore() +
|
pss:SetCurMaxScore(pss:GetCurMaxScore() +
|
||||||
(stepLast * judgmentBase['TapNoteScore_W1']));
|
(stepLast * judgmentBase['TapNoteScore_W1']));
|
||||||
local judgeScore = 0;
|
local judgeScore = 0;
|
||||||
@@ -103,10 +104,11 @@ r['DDR Extreme'] = function(params, pss)
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
local stepScore = judgeScore * stepLast;
|
local stepScore = judgeScore * stepLast;
|
||||||
|
pss:SetScore(pss:GetScore() + stepScore);
|
||||||
if (Shared.CurrentStep >= totalItems) then -- Just in case.
|
if (Shared.CurrentStep >= totalItems) then -- Just in case.
|
||||||
|
-- TODO: Implement the bonus for the last step?
|
||||||
Shared.CurrentStep = 0; -- Reset for the next song.
|
Shared.CurrentStep = 0; -- Reset for the next song.
|
||||||
end;
|
end;
|
||||||
pss:SetScore(pss:GetScore() + stepScore);
|
|
||||||
end;
|
end;
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
--DDR SuperNOVA(-esque) scoring
|
--DDR SuperNOVA(-esque) scoring
|
||||||
|
|||||||
Reference in New Issue
Block a user