From 052100a98e7f3fcb19ff2fa603dc30862d5b8c39 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 28 Mar 2011 23:22:25 -0400 Subject: [PATCH] [sm130futures] Allow currentStep to all modes. --- Themes/_fallback/Scripts/04 SpecialScoring.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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'];