From 8b66c7cf4c6b3767e2478f37869d2369f5cb7799 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 14 Jan 2011 14:58:45 -0500 Subject: [PATCH] Fix simple errors. TeruFSX, I may need you to verify the ones at the bottom. --- Themes/default/Scripts/04 SpecialScoring.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Themes/default/Scripts/04 SpecialScoring.lua b/Themes/default/Scripts/04 SpecialScoring.lua index 1b13beb6a5..2e354ecd5c 100644 --- a/Themes/default/Scripts/04 SpecialScoring.lua +++ b/Themes/default/Scripts/04 SpecialScoring.lua @@ -60,7 +60,7 @@ r['DDR Extreme'] = function(params, pss) local currentStep = 0; -- TODO: Get current step/hold. local totalItems = GetTotalItems(radarValues); local singleStep = (1 + totalItems) * totalItems / 2; - local stepLast = math.floor(baseScore / singleStep) * currentStep); + local stepLast = math.floor(baseScore / singleStep) * currentStep; local judgeScore = 0; if (params.HoldNoteScore == 'HoldNoteScore_Held') then judgeScore = judgmentBase['TapNoteScore_W1']; @@ -141,7 +141,7 @@ r['MIGS'] = function(params,pss) pss:SetScore(clamp(curScore,0,math.huge)); end; SpecialScoring = {}; -setmetatable(SpecialScoring), { +setmetatable(SpecialScoring, { __metatable = { "Letting you change the metatable sort of defeats the purpose." }; __index = function(tbl, key) for v in ivalues(DisabledScoringModes) do @@ -149,5 +149,5 @@ setmetatable(SpecialScoring), { end; return r[key]; end; - }; + } );