added sn2 scoring, misc
This commit is contained in:
@@ -240,7 +240,7 @@ function UserPrefSpecialScoringMode()
|
|||||||
SelectType = "SelectOne";
|
SelectType = "SelectOne";
|
||||||
OneChoiceForAllPlayers = true;
|
OneChoiceForAllPlayers = true;
|
||||||
ExportOnChange = false;
|
ExportOnChange = false;
|
||||||
Choices = { 'DDR 1st', 'DDR 3rd', 'DDR 4th', 'DDR SuperNOVA' };
|
Choices = { 'DDR 1stMIX', 'DDR 3rdMIX', 'DDR 4thMIX', 'DDR SuperNOVA', 'DDR SuperNOVA 2' };
|
||||||
LoadSelections = function(self, list, pn)
|
LoadSelections = function(self, list, pn)
|
||||||
if ReadPrefFromFile("UserPrefSpecialScoringMode") ~= nil then
|
if ReadPrefFromFile("UserPrefSpecialScoringMode") ~= nil then
|
||||||
list[GetUserPref("UserPrefSpecialScoringMode")] = true;
|
list[GetUserPref("UserPrefSpecialScoringMode")] = true;
|
||||||
|
|||||||
@@ -41,6 +41,14 @@ end;
|
|||||||
r[4] = function(params, pss)
|
r[4] = function(params, pss)
|
||||||
local dp = pss:GetPossibleDancePoints();
|
local dp = pss:GetPossibleDancePoints();
|
||||||
if dp == 0 then pss:SetScore(0) return nil end
|
if dp == 0 then pss:SetScore(0) return nil end
|
||||||
pss:SetScore(math.round((pss:GetActualDancePoints()/dp)*1000000);
|
pss:SetScore(math.round((pss:GetActualDancePoints()/dp)*1000000));
|
||||||
|
end;
|
||||||
|
-----------------------------------------------------------
|
||||||
|
--DDR SuperNOVA 2(-esque) scoring
|
||||||
|
-----------------------------------------------------------
|
||||||
|
r[5] = function(params, pss)
|
||||||
|
local dp = pss:GetPossibleDancePoints();
|
||||||
|
if dp == 0 then pss:SetScore(0) return nil end
|
||||||
|
pss:SetScore(math.round((pss:GetActualDancePoints()/dp)*100000)*10);
|
||||||
end;
|
end;
|
||||||
SpecialScoring = r;
|
SpecialScoring = r;
|
||||||
|
|||||||
Reference in New Issue
Block a user