Merge pull request #182 from argonui/cleanuphelper
Clean Up Helper: Bugfix of renamed variables
This commit is contained in:
commit
3211ae848d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user