added sn2 scoring, misc

This commit is contained in:
Flameshadowxeroshin
2010-12-31 19:13:14 -06:00
parent fbf8f3d493
commit 098dbb4b1e
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ function UserPrefSpecialScoringMode()
SelectType = "SelectOne";
OneChoiceForAllPlayers = true;
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)
if ReadPrefFromFile("UserPrefSpecialScoringMode") ~= nil then
list[GetUserPref("UserPrefSpecialScoringMode")] = true;
+9 -1
View File
@@ -41,6 +41,14 @@ end;
r[4] = function(params, pss)
local dp = pss:GetPossibleDancePoints();
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;
SpecialScoring = r;