From f390a29e7307a67cfe8d9a55e926f190f8558d79 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 2 Mar 2023 15:58:42 +0100 Subject: [PATCH] fixes revised art investigators --- src/arkhamdb/ArkhamDb.ttslua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arkhamdb/ArkhamDb.ttslua b/src/arkhamdb/ArkhamDb.ttslua index 97f853f0..8a2b128a 100644 --- a/src/arkhamdb/ArkhamDb.ttslua +++ b/src/arkhamdb/ArkhamDb.ttslua @@ -140,7 +140,7 @@ do local slots = deck.slots internal.maybeDrawRandomWeakness(slots, playerColor) if loadInvestigators then - internal.addInvestigatorCards(deck, slots) + internal.addInvestigatorCards(deck, slots, playerColor) end internal.maybeAddCustomizeUpgradeSheets(slots) internal.maybeAddSummonedServitor(slots) @@ -186,7 +186,7 @@ do ---@param deck Table The processed ArkhamDB deck response ---@param slots Table The slot list for cards in this deck. Table key is the cardId, value is the --- number of those cards which will be spawned - internal.addInvestigatorCards = function(deck, slots) + internal.addInvestigatorCards = function(deck, slots, playerColor) local investigatorId = deck.investigator_code slots[investigatorId .. "-m"] = 1 local deckMeta = JSON.decode(deck.meta) @@ -197,7 +197,7 @@ do elseif parallelFront then local alternateNum = tonumber(deckMeta.alternate_front) if alternateNum >= 01501 and alternateNum <= 01506 then - investigatorId = investigatorId .. "-r" + internal.maybePrint("Original investigator art loaded. Revised art added as states to the card.", playerColor) else investigatorId = investigatorId .. "-pf" end