[sm130futures] Add judged segments to PSS.

LUA DDR Extreme scoring is more accurate,
but needs hold tweaks.
This commit is contained in:
Jason Felds
2011-03-30 00:15:31 -04:00
parent d5dde0a35a
commit 6ef2d62ea0
4 changed files with 43 additions and 12 deletions
@@ -63,12 +63,11 @@ r['DDR Extreme'] = function(params, pss)
local steps = GAMESTATE:GetCurrentSteps(params.Player);
local radarValues = steps:GetRadarValues(params.Player);
local baseScore = (steps:IsAnEdit() and
5 or steps:GetMeter()) * 10000000;
if not Shared.CurrentStep then Shared.CurrentStep = -1 end;
Shared.CurrentStep = Shared.CurrentStep + 1;
5 or steps:GetMeter()) * 1000000;
local currentStep = pss:GetJudgedSegments();
local totalItems = GetTotalItems(radarValues);
local singleStep = (1 + totalItems) * totalItems / 2;
local stepLast = math.floor(baseScore / singleStep) * (Shared.CurrentStep + 1);
local stepLast = math.floor(baseScore / singleStep) * (currentStep);
local judgeScore = 0;
if (params.HoldNoteScore == 'HoldNoteScore_Held') then
judgeScore = judgmentBase['TapNoteScore_W1'];