Added token verification to cards that seal
This commit is contained in:
parent
55c8926385
commit
ffab6d5c43
@ -114,7 +114,14 @@ function updateSave()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function onLoad(savedData)
|
function onLoad(savedData)
|
||||||
sealedTokens = JSON.decode(savedData) or {}
|
-- verify sealed tokens
|
||||||
|
for _, guid in ipairs(JSON.decode(savedData) or {}) do
|
||||||
|
local token = getObjectFromGUID(guid)
|
||||||
|
if token ~= nil then
|
||||||
|
table.insert(sealedTokens, guid)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
ID_URL_MAP = chaosBagApi.getIdUrlMap()
|
ID_URL_MAP = chaosBagApi.getIdUrlMap()
|
||||||
generateContextMenu()
|
generateContextMenu()
|
||||||
updateStackSize()
|
updateStackSize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user