From 25ffddeb7033c7286183492ff86d10fe72de3afc Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 1 Jul 2011 02:05:49 -0400 Subject: [PATCH] English comments please. Perhaps someone can better translate what was erased? --- Themes/_fallback/Scripts/04 Scoring.lua | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/Themes/_fallback/Scripts/04 Scoring.lua b/Themes/_fallback/Scripts/04 Scoring.lua index c918bb60d7..fa6b8b659e 100644 --- a/Themes/_fallback/Scripts/04 Scoring.lua +++ b/Themes/_fallback/Scripts/04 Scoring.lua @@ -142,17 +142,15 @@ r['HYBRID'] = function(params, pss) local radarValues = GetDirectRadar(params.Player); local totalItems = GetTotalItems(radarValues) - radarValues:GetValue('RadarCategory_Lifts'); - -- 1+2+3+...+totalItems の値 + -- the number of items to calculate. local sTotal = (totalItems+1)*totalItems/2; -- [en] Score for one song - -- [ja] 1つあたりのスコア local sOne = math.floor(100000000/sTotal); - -- [ja] 端数は最後の1ステップで加算するのでその値を取得 + -- Get the fractional value to add since the last step. local sLast = 100000000-(sOne*sTotal); - -- [ja] 現在何個目の譜面か + -- ...what's the reason for this line? pss:SetCurMaxScore(pss:GetCurMaxScore()+1); -- [en] current score - -- [ja] 今回のスコア local vScore = sOne*(pss:GetCurMaxScore()); if (params.HoldNoteScore == 'HoldNoteScore_Held') then vScore = vScore; @@ -215,20 +213,15 @@ r['DDR SuperNOVA 2'] = function(params, pss) else maxAdd = multLookup[params.TapNoteScore] if params.TapNoteScore == 'TapNoteScore_W2' or 'TapNoteScore_W3' then - -- [ja] 超最終手段 + -- use this only on last resort pss:SetCurMaxScore( pss:GetCurMaxScore() + 1000000 ) end end end pss:SetCurMaxScore(pss:GetCurMaxScore() + maxAdd); - - --[[ - [ja] パフェ数取得 この方法で取得するとロングノートの場合2つカウントされる そのため使えない - pss:GetTapNoteScores('TapNoteScore_W2') - 仕方がないのでパフェ数を 1000000 単位で GetCurMaxScore に記録 - その後、情報を分解して取り出す - --]] - + + -- remember to deal with hold notes when calculating max score. + local vScore = pss:GetCurMaxScore() % 1000000 local vSub = math.floor( pss:GetCurMaxScore()/1000000 ) pss:SetScore( math.floor(10000*vScore/totalItems) * 10 - (vSub*10) );