added tekelili deck exclusion

This commit is contained in:
Chr1Z93 2024-04-05 20:46:09 +02:00
parent 5b474a6b77
commit 34b820e97e

View File

@ -271,6 +271,14 @@ end
function tidyPlayerMatCoroutine()
local tekeliliHelper = getTekeliliHelper()
-- maybe ignore cards / decks on the tekelili helper
if tekeliliHelper then
local searchResult = searchLib.onObject(tekeliliHelper, "isCardOrDeck")
for _, obj in ipairs(searchResult) do
obj.addTag(IGNORE_TAG)
end
end
for i = 1, 5 do
-- only continue for playermat (1-4) if option enabled
if options["tidyPlayermats"] or i == 5 then
@ -336,6 +344,14 @@ function tidyPlayerMatCoroutine()
::continue::
end
-- maybe remove ignore tag from cards / decks on the tekelili helper
if tekeliliHelper then
local searchResult = searchLib.onObject(tekeliliHelper, "isCardOrDeck")
for _, obj in ipairs(searchResult) do
obj.removeTag(IGNORE_TAG)
end
end
-- reset "activeInvestigatorId"
local playerMats = guidReferenceApi.getObjectsByType("Playermat")
for _, mat in pairs(playerMats) do