[sm130futures] Allow currentStep to all modes.

This commit is contained in:
Jason Felds
2011-03-28 23:22:25 -04:00
parent a6c014a52d
commit 052100a98e
@@ -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'];