Restore foot limiter for Extreme scoring.
Needs to be tested by someone more accurate than me for any rounding errors and whatnot.
This commit is contained in:
@@ -84,14 +84,19 @@ r['DDR Extreme'] = function(params, pss)
|
|||||||
setmetatable(judgmentBase, ZeroIfNotFound);
|
setmetatable(judgmentBase, ZeroIfNotFound);
|
||||||
local steps = GAMESTATE:GetCurrentSteps(params.Player);
|
local steps = GAMESTATE:GetCurrentSteps(params.Player);
|
||||||
local radarValues = steps:GetRadarValues(params.Player);
|
local radarValues = steps:GetRadarValues(params.Player);
|
||||||
local baseScore = (steps:IsAnEdit() and
|
local meter = steps:GetMeter();
|
||||||
5 or steps:GetMeter()) * 1000000;
|
if (steps:IsAnEdit()) then
|
||||||
|
meter = 5;
|
||||||
|
elseif (meter < 1) then
|
||||||
|
meter = 1;
|
||||||
|
elseif (meter > 10) then
|
||||||
|
meter = 10;
|
||||||
|
end;
|
||||||
|
local baseScore = meter * 1000000;
|
||||||
if (GAMESTATE:GetCurrentSong():IsMarathon()) then
|
if (GAMESTATE:GetCurrentSong():IsMarathon()) then
|
||||||
baseScore = baseScore * 3;
|
baseScore = baseScore * 3;
|
||||||
else
|
elseif (GAMESTATE:GetCurrentSong():IsLong()) then
|
||||||
if (GAMESTATE:GetCurrentSong():IsLong()) then
|
baseScore = baseScore * 2;
|
||||||
baseScore = baseScore * 2;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
local totalItems = GetTotalItems(radarValues);
|
local totalItems = GetTotalItems(radarValues);
|
||||||
local singleStep = (1 + totalItems) * totalItems / 2;
|
local singleStep = (1 + totalItems) * totalItems / 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user