diff --git a/objects/AllPlayerCards.15bb07/JimsTrumpet.03c6a7.json b/objects/AllPlayerCards.15bb07/JimsTrumpet.03c6a7.json index fdab72ab..4d0078bf 100644 --- a/objects/AllPlayerCards.15bb07/JimsTrumpet.03c6a7.json +++ b/objects/AllPlayerCards.15bb07/JimsTrumpet.03c6a7.json @@ -22,7 +22,7 @@ "UniqueBack": false } }, - "Description": "The Dead Speak", + "Description": "The Dead Listen", "DragSelectable": true, "GMNotes_path": "AllPlayerCards.15bb07/JimsTrumpet.03c6a7.gmnotes", "GUID": "03c6a7", diff --git a/objects/AllPlayerCards.15bb07/JimsTrumpet.7dfd5f.json b/objects/AllPlayerCards.15bb07/JimsTrumpet.7dfd5f.json index 67d9855d..10247fae 100644 --- a/objects/AllPlayerCards.15bb07/JimsTrumpet.7dfd5f.json +++ b/objects/AllPlayerCards.15bb07/JimsTrumpet.7dfd5f.json @@ -22,7 +22,7 @@ "UniqueBack": false } }, - "Description": "The Dead Speak (Advanced)", + "Description": "The Dead Listen (Advanced)", "DragSelectable": true, "GMNotes_path": "AllPlayerCards.15bb07/JimsTrumpet.7dfd5f.gmnotes", "GUID": "7dfd5f", diff --git a/src/arkhamdb/DeckImporterMain.ttslua b/src/arkhamdb/DeckImporterMain.ttslua index 8f8151a3..b839bfb3 100644 --- a/src/arkhamdb/DeckImporterMain.ttslua +++ b/src/arkhamdb/DeckImporterMain.ttslua @@ -331,7 +331,7 @@ end ---@param playerColor String Color this deck is being loaded for function handleSpiritDeck(investigatorId, cardList, playerColor) if investigatorId == "02004-p" or investigatorId == "02004-pb" then -- Parallel Jim Culver - local spritList = {} + local spiritList = {} for i, card in ipairs(cardList) do if card.metadata.id == "90053" or ( card.metadata.type == "Asset" @@ -339,7 +339,7 @@ function handleSpiritDeck(investigatorId, cardList, playerColor) and string.match(card.metadata.traits, "Ally") and card.metadata.level ~= nil and card.metadata.level < 3) then - table.insert(spritList, i) + table.insert(spiritList, i) end end -- Process allies to move them to the spirit deck. This is done in reverse @@ -347,17 +347,17 @@ function handleSpiritDeck(investigatorId, cardList, playerColor) -- Performance here may be an issue, as table.remove() is an O(n) operation -- which makes the full shift O(n^2). But keep it simple unless it becomes -- a problem - for i = #spritList, 1, -1 do - local moving = cardList[spritList[i]] + for i = #spiritList, 1, -1 do + local moving = cardList[spiritList[i]] moving.zone = "SetAside5" - table.remove(cardList, spritList[i]) + table.remove(cardList, spiritList[i]) table.insert(cardList, moving) end - if #spritList < 10 then - printToAll("Jim's spirit deck must have 9 Ally assets but the deck only has " .. (#spritList - 1) .. + if #spiritList < 10 then + printToAll("Jim's spirit deck must have 9 Ally assets but the deck only has " .. (#spiritList - 1) .. " Ally assets.", playerColor) - elseif #spritList > 11 then - printToAll("Moved all " .. (#spritList - 1) .. + elseif #spiritList > 11 then + printToAll("Moved all " .. (#spiritList - 1) .. " Ally assets to the spirit deck, reduce it to 10 (including Vengeful Shade).", playerColor) else printToAll("Built Jim's spirit deck", playerColor)