9 lines
171 B
Plaintext
9 lines
171 B
Plaintext
|
score = function(t, team)
|
||
|
local result = 0
|
||
|
for opp, score in pairs(t[team]) do
|
||
|
if type(score) == 'number' then
|
||
|
result = result + score
|
||
|
end
|
||
|
end
|
||
|
return result
|
||
|
end
|