From 9a9d427902d93b8c6ceb63f0e914b2fdca96512b Mon Sep 17 00:00:00 2001 From: Flameshadowxeroshin Date: Sun, 28 Aug 2011 16:54:47 +0000 Subject: [PATCH] scoring junk --- Themes/_fallback/Scripts/04 Scoring.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Themes/_fallback/Scripts/04 Scoring.lua b/Themes/_fallback/Scripts/04 Scoring.lua index 8c5e02655f..8cc2e39cd1 100644 --- a/Themes/_fallback/Scripts/04 Scoring.lua +++ b/Themes/_fallback/Scripts/04 Scoring.lua @@ -318,4 +318,9 @@ end ------------------------------------------------------------------------------- -- Formulas end here. for v in ivalues(DisabledScoringModes) do r[v] = nil end -Scoring = r +Scoring = {} +setmetatable(Scoring, { __index = function(...) return function(params,pss) +--put any code here that should run before every scoring function +if not GAMESTATE:IsHumanPlayer(params.Player) and r[key] +then return r[key](...) end +end }