updated deckimporter

This commit is contained in:
Chr1Z93 2023-09-01 18:51:04 +02:00
parent 29edf598aa
commit 033f10e838

View File

@ -143,12 +143,13 @@ do
if loadInvestigators then if loadInvestigators then
loadAltInvestigator = internal.addInvestigatorCards(deck, slots) loadAltInvestigator = internal.addInvestigatorCards(deck, slots)
end end
internal.maybeAddCustomizeUpgradeSheets(slots)
internal.maybeAddSummonedServitor(slots) internal.maybeAddSummonedServitor(slots)
internal.maybeAddOnTheMend(slots, playerColor) internal.maybeAddOnTheMend(slots, playerColor)
internal.maybeAddRealityAcidReference(slots) internal.maybeAddRealityAcidReference(slots)
local bondList = internal.extractBondedCards(slots) local bondList = internal.extractBondedCards(slots)
internal.checkTaboos(deck.taboo_id, slots, playerColor) internal.checkTaboos(deck.taboo_id, slots, playerColor)
internal.maybeAddUpgradeSheets(slots)
-- get upgrades for customizable cards -- get upgrades for customizable cards
local customizations = {} local customizations = {}
@ -237,7 +238,7 @@ do
-- Process the card list looking for the customizable cards, and add their upgrade sheets if needed -- Process the card list looking for the customizable cards, and add their upgrade sheets if needed
---@param slots Table The slot list for cards in this deck. Table key is the cardId, value is the number ---@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 -- of those cards which will be spawned
internal.maybeAddCustomizeUpgradeSheets = function(slots) internal.maybeAddUpgradeSheets = function(slots)
for cardId, _ in pairs(slots) do for cardId, _ in pairs(slots) do
-- upgrade sheets for customizable cards -- upgrade sheets for customizable cards
local upgradesheet = allCardsBagApi.getCardById(cardId .. "-c") local upgradesheet = allCardsBagApi.getCardById(cardId .. "-c")