resolving comments
This commit is contained in:
parent
eb899b1790
commit
ba5d277995
@ -370,7 +370,7 @@ function handleStatTrackerClick(_, _, isRightClick)
|
||||
playerColor = playmatApi.getPlayerColor(MAT_GUID_TO_COLOR[key])
|
||||
playerName = Player[playerColor].steam_name or playerColor
|
||||
|
||||
local playerSquidCount = personalStats["Auto-fail"] or 0
|
||||
local playerSquidCount = personalStats["Auto-fail"]
|
||||
if playerSquidCount > maxSquid then
|
||||
squidKing = playerName
|
||||
maxSquid = playerSquidCount
|
||||
@ -403,39 +403,17 @@ function handleStatTrackerClick(_, _, isRightClick)
|
||||
printToAll("------------------------------")
|
||||
printToAll(squidKing .. " is an auto-fail magnet.", {255, 0, 0})
|
||||
else
|
||||
printToAll("Couldn't find any stats for chaos token draws.")
|
||||
printToAll("No tokens have been drawn yet.", "Yellow")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- resets the count for each token to 0
|
||||
function resetChaosTokenStatTracker()
|
||||
local tokenNameList = {
|
||||
"+1",
|
||||
"0",
|
||||
"-1",
|
||||
"-2",
|
||||
"-3",
|
||||
"-4",
|
||||
"-5",
|
||||
"-6",
|
||||
"-7",
|
||||
"-8",
|
||||
"Skull",
|
||||
"Cultist",
|
||||
"Tablet",
|
||||
"Elder Thing",
|
||||
"Curse",
|
||||
"Bless",
|
||||
"Frost",
|
||||
"Elder Sign",
|
||||
"Auto-fail"
|
||||
}
|
||||
|
||||
for key, _ in pairs(tokenDrawingStats) do
|
||||
tokenDrawingStats[key] = {}
|
||||
for _, tokenName in ipairs(tokenNameList) do
|
||||
tokenDrawingStats[key][tokenName] = 0
|
||||
for _, token in pairs(ID_URL_MAP) do
|
||||
tokenDrawingStats[key][token.name] = 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user