English comments please.
Perhaps someone can better translate what was erased?
This commit is contained in:
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user