rename variables

This commit is contained in:
Chr1Z93 2023-01-11 00:29:45 +01:00
parent 9d522b5392
commit 24ca8865f4

View File

@ -5,7 +5,7 @@ Cleans up the table for the next scenario in a campaign:
- use the IGNORE_TAG to exclude objects from tidying (default: "CleanUpHelper_Ignore") - use the IGNORE_TAG to exclude objects from tidying (default: "CleanUpHelper_Ignore")
--]] --]]
local playAreaApi = require("core/PlayAreaApi") local tokenSpawnTracker = require("core/token/TokenSpawnTracker")
-- enable this for debugging -- enable this for debugging
local SHOW_RAYS = false local SHOW_RAYS = false
@ -175,6 +175,7 @@ function cleanUp()
removeBlessCurse() removeBlessCurse()
removeLines() removeLines()
discardHands() discardHands()
TokenSpawnTracker.resetAll()
printToAll("Tidying main play area...", "White") printToAll("Tidying main play area...", "White")
startLuaCoroutine(self, "tidyPlayareaCoroutine") startLuaCoroutine(self, "tidyPlayareaCoroutine")
@ -231,7 +232,7 @@ end
-- gets the GUID of a custom data helper (if present) and adds it to the ignore list -- gets the GUID of a custom data helper (if present) and adds it to the ignore list
function ignoreCustomDataHelper() function ignoreCustomDataHelper()
local playArea = getObjectFromGUID("721ba2") local playArea = getObjectFromGUID("721ba2")
local guid = playArea.getVar("custom_data_helper_guid") local guid = playArea.getVar("customDataHelper")
if guid then table.insert(IGNORE_GUIDS, guid) end if guid then table.insert(IGNORE_GUIDS, guid) end
end end
@ -321,8 +322,6 @@ function tidyPlayareaCoroutine()
end end
end end
playAreaApi.resetSpawnedCards()
printToAll("Tidying playermats and agenda mat...", "White") printToAll("Tidying playermats and agenda mat...", "White")
startLuaCoroutine(self, "tidyPlayerMatCoroutine") startLuaCoroutine(self, "tidyPlayerMatCoroutine")
return 1 return 1