From f07e67c238421b1ce44043d0e9133cfed1d64ef8 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Tue, 12 Apr 2011 15:55:50 -0400 Subject: [PATCH] [sm130score] Cleanup, prepare for bonus? --- Themes/_fallback/Scripts/04 Scoring.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Themes/_fallback/Scripts/04 Scoring.lua b/Themes/_fallback/Scripts/04 Scoring.lua index be63b7ac05..c0bf2b9bda 100644 --- a/Themes/_fallback/Scripts/04 Scoring.lua +++ b/Themes/_fallback/Scripts/04 Scoring.lua @@ -90,7 +90,8 @@ r['DDR Extreme'] = function(params, pss) Shared.CurrentStep = 0 end; 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() + (stepLast * judgmentBase['TapNoteScore_W1'])); local judgeScore = 0; @@ -103,10 +104,11 @@ r['DDR Extreme'] = function(params, pss) end; end; local stepScore = judgeScore * stepLast; + pss:SetScore(pss:GetScore() + stepScore); if (Shared.CurrentStep >= totalItems) then -- Just in case. + -- TODO: Implement the bonus for the last step? Shared.CurrentStep = 0; -- Reset for the next song. end; - pss:SetScore(pss:GetScore() + stepScore); end; ----------------------------------------------------------- --DDR SuperNOVA(-esque) scoring