Merge pull request #389 from argonui/cleanuphelper

Clean Up Helper: return drawn tokens to the chaos bag
This commit is contained in:
Entrox-Licher 2023-10-05 11:23:46 -04:00 committed by GitHub
commit 0a18c98515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -190,6 +190,7 @@ function cleanUp(_, color)
removeLines()
discardHands()
tokenSpawnTrackerApi.resetAll()
chaosBagApi.returnChaosTokens()
chaosBagApi.releaseAllSealedTokens(color)
printToAll("Tidying main play area...", "White")

View File

@ -28,6 +28,11 @@ do
return Global.call("releaseAllSealedTokens", playerColor)
end
-- returns all drawn tokens to the chaos bag
ChaosBagApi.returnChaosTokens = function(playerColor)
return Global.call("returnChaosTokens", playerColor)
end
-- removes the specified chaos token from the chaos bag
---@param id String ID of the chaos token
ChaosBagApi.removeChaosToken = function(id)