Merge pull request #951 from argonui/deck-import
Updated deck importer to skip removed mats
This commit is contained in:
commit
884ddc2b4e
@ -201,7 +201,8 @@ function loadDecksCoroutine()
|
||||
if not allCardsBagApi.isIndexReady() then return end
|
||||
matsWithInvestigator = playermatApi.getUsedMatColors()
|
||||
|
||||
for _, matColor in ipairs({ "White", "Orange", "Green", "Red" }) do
|
||||
local matObjects = guidReferenceApi.getObjectsByType("Playermat")
|
||||
for matColor, _ in pairs(matObjects) do
|
||||
local deckId = _G[string.lower(matColor) .. "DeckId"]
|
||||
if deckId ~= nil and deckId ~= "" then
|
||||
buildDeck(matColor, deckId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user