2023-10-17 04:35:42 +01:00
|
|
|
score = function(t, team)
|
|
|
|
local result = 0
|
|
|
|
for opp, score in pairs(t[team]) do
|
2024-04-26 05:45:08 +01:00
|
|
|
if opp ~= 'count' and type(score) == 'number' then
|
2023-10-17 04:35:42 +01:00
|
|
|
result = result + score
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return result
|
|
|
|
end
|