[sm130score] Don't rely on the PREFS.
Also get _fallback ready just in case.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
local t = Def.ActorFrame {};
|
||||
|
||||
t[#t+1] = Def.Actor{
|
||||
JudgmentMessageCommand = function(self, params)
|
||||
SpecialScoring[GetUserPref("UserPrefSpecialScoringMode")](params,
|
||||
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
|
||||
end;
|
||||
};
|
||||
|
||||
return t;
|
||||
@@ -168,11 +168,12 @@ t[#t+1] = Def.ActorFrame {
|
||||
};
|
||||
CreateStops();
|
||||
};
|
||||
if PREFSMAN:GetPreference("ScoringType") == 'ScoringType_Custom' then
|
||||
t[#t+1] = Def.Actor{
|
||||
JudgmentMessageCommand = function(self, params)
|
||||
SpecialScoring[GetUserPref("UserPrefSpecialScoringMode")](params, STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
|
||||
end;
|
||||
};
|
||||
end;
|
||||
|
||||
t[#t+1] = Def.Actor{
|
||||
JudgmentMessageCommand = function(self, params)
|
||||
SpecialScoring[GetUserPref("UserPrefSpecialScoringMode")](params,
|
||||
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
|
||||
end;
|
||||
};
|
||||
|
||||
return t
|
||||
|
||||
Reference in New Issue
Block a user