commit
10d00ce305
@ -4,7 +4,7 @@ do
|
|||||||
-- respawns the chaos bag with a new state of tokens
|
-- respawns the chaos bag with a new state of tokens
|
||||||
---@param tokenList table List of chaos token ids
|
---@param tokenList table List of chaos token ids
|
||||||
ChaosBagApi.setChaosBagState = function(tokenList)
|
ChaosBagApi.setChaosBagState = function(tokenList)
|
||||||
return Global.call("setChaosBagState", tokenList)
|
Global.call("setChaosBagState", tokenList)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- returns a Table List of chaos token ids in the current chaos bag
|
-- returns a Table List of chaos token ids in the current chaos bag
|
||||||
@ -31,30 +31,30 @@ do
|
|||||||
-- returns all sealed tokens on cards to the chaos bag
|
-- returns all sealed tokens on cards to the chaos bag
|
||||||
---@param playerColor string Color of the player to show the broadcast to
|
---@param playerColor string Color of the player to show the broadcast to
|
||||||
ChaosBagApi.releaseAllSealedTokens = function(playerColor)
|
ChaosBagApi.releaseAllSealedTokens = function(playerColor)
|
||||||
return Global.call("releaseAllSealedTokens", playerColor)
|
Global.call("releaseAllSealedTokens", playerColor)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- returns all drawn tokens to the chaos bag
|
-- returns all drawn tokens to the chaos bag
|
||||||
ChaosBagApi.returnChaosTokens = function()
|
ChaosBagApi.returnChaosTokens = function()
|
||||||
return Global.call("returnChaosTokens")
|
Global.call("returnChaosTokens")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- removes the specified chaos token from the chaos bag
|
-- removes the specified chaos token from the chaos bag
|
||||||
---@param id string ID of the chaos token
|
---@param id string ID of the chaos token
|
||||||
ChaosBagApi.removeChaosToken = function(id)
|
ChaosBagApi.removeChaosToken = function(id)
|
||||||
return Global.call("removeChaosToken", id)
|
Global.call("removeChaosToken", id)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- returns a chaos token to the bag and calls all relevant functions
|
-- returns a chaos token to the bag and calls all relevant functions
|
||||||
---@param token tts__Object Chaos token to return
|
---@param token tts__Object Chaos token to return
|
||||||
ChaosBagApi.returnChaosTokenToBag = function(token)
|
ChaosBagApi.returnChaosTokenToBag = function(token)
|
||||||
return Global.call("returnChaosTokenToBag", token)
|
Global.call("returnChaosTokenToBag", token)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- spawns the specified chaos token and puts it into the chaos bag
|
-- spawns the specified chaos token and puts it into the chaos bag
|
||||||
---@param id string ID of the chaos token
|
---@param id string ID of the chaos token
|
||||||
ChaosBagApi.spawnChaosToken = function(id)
|
ChaosBagApi.spawnChaosToken = function(id)
|
||||||
return Global.call("spawnChaosToken", id)
|
Global.call("spawnChaosToken", id)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Checks to see if the chaos bag can be manipulated. If a player is searching the bag when tokens
|
-- Checks to see if the chaos bag can be manipulated. If a player is searching the bag when tokens
|
||||||
|
@ -445,6 +445,9 @@ function returnAndRedraw(_, tokenGUID)
|
|||||||
end
|
end
|
||||||
|
|
||||||
redrawData = {}
|
redrawData = {}
|
||||||
|
|
||||||
|
-- return a reference to the freshly drawn token
|
||||||
|
return chaosTokens[indexOfReturnedToken]
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Checks to see if the chaos bag can be manipulated. If a player is searching the bag when tokens
|
-- Checks to see if the chaos bag can be manipulated. If a player is searching the bag when tokens
|
||||||
|
Loading…
Reference in New Issue
Block a user