reverting scoring changes and probably some fucking eol bullshit

This commit is contained in:
AJ Kelly
2011-08-28 19:09:39 -05:00
2 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
local function Beat(self) local function Beat(self)
-- too many locals -- too many locals
local this = self:GetChildren() local this = self:GetChildren()
local player = GAMESTATE:GetMasterPlayerNumber() local player = Var "Player" or GAMESTATE:GetMasterPlayerNumber()
local playerstate = GAMESTATE:GetPlayerState( player ) local playerstate = GAMESTATE:GetPlayerState( player )
local songposition = playerstate:GetSongPosition() -- GAMESTATE:GetSongPosition() local songposition = playerstate:GetSongPosition() -- GAMESTATE:GetSongPosition()
+10 -5
View File
@@ -319,8 +319,13 @@ end
-- Formulas end here. -- Formulas end here.
for v in ivalues(DisabledScoringModes) do r[v] = nil end for v in ivalues(DisabledScoringModes) do r[v] = nil end
Scoring = {} Scoring = {}
setmetatable(Scoring, { __index = function(...) return function(params,pss) setmetatable(Scoring, {
--put any code here that should run before every scoring function __metatable = { "Letting you change the metatable sort of defeats the purpose." },
if not GAMESTATE:IsHumanPlayer(params.Player) and type(r[key]) == "function" then __index = function(tbl, key)
return r[key](...) end for v in ivalues(DisabledScoringModes) do
end }) if key == v then return r['DDR Extreme'] end
end
return r[key]
end,
}
);