From 3b2f6989a6c55d3053b014f7b6a3f59d980f5e0f Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 20 Jun 2011 00:51:28 -0400 Subject: [PATCH] Restore foot limiter for Extreme scoring. Needs to be tested by someone more accurate than me for any rounding errors and whatnot. --- Themes/_fallback/Scripts/04 Scoring.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Themes/_fallback/Scripts/04 Scoring.lua b/Themes/_fallback/Scripts/04 Scoring.lua index fd579db996..c918bb60d7 100644 --- a/Themes/_fallback/Scripts/04 Scoring.lua +++ b/Themes/_fallback/Scripts/04 Scoring.lua @@ -84,14 +84,19 @@ r['DDR Extreme'] = function(params, pss) setmetatable(judgmentBase, ZeroIfNotFound); local steps = GAMESTATE:GetCurrentSteps(params.Player); local radarValues = steps:GetRadarValues(params.Player); - local baseScore = (steps:IsAnEdit() and - 5 or steps:GetMeter()) * 1000000; + local meter = steps:GetMeter(); + 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 baseScore = baseScore * 3; - else - if (GAMESTATE:GetCurrentSong():IsLong()) then - baseScore = baseScore * 2; - end; + elseif (GAMESTATE:GetCurrentSong():IsLong()) then + baseScore = baseScore * 2; end; local totalItems = GetTotalItems(radarValues); local singleStep = (1 + totalItems) * totalItems / 2;