testing issues
This commit is contained in:
parent
62d9671864
commit
34de9c1d01
@ -184,6 +184,7 @@ function readBag()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function resetSealedTokens()
|
function resetSealedTokens()
|
||||||
|
log("Resetting")
|
||||||
sealedTokens = {}
|
sealedTokens = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -244,6 +245,8 @@ function releaseOneToken(playerColor)
|
|||||||
else
|
else
|
||||||
printToColor("Releasing token", playerColor)
|
printToColor("Releasing token", playerColor)
|
||||||
putTokenAway(table.remove(sealedTokens))
|
putTokenAway(table.remove(sealedTokens))
|
||||||
|
log("Removed one")
|
||||||
|
log(#sealedTokens)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -275,6 +278,8 @@ function releaseAllTokens(playerColor)
|
|||||||
for _, guid in ipairs(sealedTokens) do
|
for _, guid in ipairs(sealedTokens) do
|
||||||
putTokenAway(guid)
|
putTokenAway(guid)
|
||||||
end
|
end
|
||||||
|
log("Removed all")
|
||||||
|
log(#sealedTokens)
|
||||||
sealedTokens = {}
|
sealedTokens = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user