diff --git a/Themes/_fallback/Scripts/04 SpecialScoring.lua b/Themes/_fallback/Scripts/04 SpecialScoring.lua index a6261fa260..0cc2103a86 100644 --- a/Themes/_fallback/Scripts/04 SpecialScoring.lua +++ b/Themes/_fallback/Scripts/04 SpecialScoring.lua @@ -1,3 +1,5 @@ +--internals table +local Shared = {}; --Special Scoring types. local r = {}; local DisabledScoringModes = { '[SSC] Radar Master' }; @@ -62,10 +64,11 @@ r['DDR Extreme'] = function(params, pss) local radarValues = steps:GetRadarValues(params.Player); local baseScore = (steps:IsAnEdit() and 5 or steps:GetMeter()) * 10000000; - local currentStep = 0; -- TODO: Get current step/hold. + if not Shared.CurrentStep then Shared.CurrentStep = -1 end; + Shared.CurrentStep = Shared.CurrentStep + 1; local totalItems = GetTotalItems(radarValues); local singleStep = (1 + totalItems) * totalItems / 2; - local stepLast = math.floor(baseScore / singleStep) * currentStep; + local stepLast = math.floor(baseScore / singleStep) * (Shared.CurrentStep + 1); local judgeScore = 0; if (params.HoldNoteScore == 'HoldNoteScore_Held') then judgeScore = judgmentBase['TapNoteScore_W1'];