handle petes signature assets
This commit is contained in:
parent
807daf8d94
commit
6cb4f923dd
@ -235,6 +235,7 @@ do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
slots[investigatorId] = 1
|
slots[investigatorId] = 1
|
||||||
|
deck.investigator_code = investigatorId
|
||||||
return loadAltInvestigator
|
return loadAltInvestigator
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -91,6 +91,7 @@ function loadCards(slots, investigatorId, bondedList, customizations, playerColo
|
|||||||
handleUnderworldMarket(cardsToSpawn, playerColor)
|
handleUnderworldMarket(cardsToSpawn, playerColor)
|
||||||
handleHunchDeck(investigatorId, cardsToSpawn, playerColor)
|
handleHunchDeck(investigatorId, cardsToSpawn, playerColor)
|
||||||
handleCustomizableUpgrades(cardsToSpawn, customizations)
|
handleCustomizableUpgrades(cardsToSpawn, customizations)
|
||||||
|
handlePeteSignatureAssets(investigatorId, cardsToSpawn)
|
||||||
|
|
||||||
-- Split the card list into separate lists for each zone
|
-- Split the card list into separate lists for each zone
|
||||||
local zoneDecks = buildZoneLists(cardsToSpawn)
|
local zoneDecks = buildZoneLists(cardsToSpawn)
|
||||||
@ -392,6 +393,27 @@ function handleCustomizableUpgrades(cardList, customizations)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Handles cards that start in play under specific conditions for Ashcan Pete (Regular Pete - Duke, Parallel Pete - Guitar)
|
||||||
|
---@param investigatorId String ID for the deck's investigator card. Passed separately because the
|
||||||
|
--- investigator may not be included in the cardList
|
||||||
|
---@param cardList Table Deck list being created
|
||||||
|
function handlePeteSignatureAssets(investigatorId, cardList)
|
||||||
|
log(investigatorId)
|
||||||
|
if investigatorId == "02005" or investigatorId == "02005-pb" then -- regular Pete's front
|
||||||
|
for i, card in ipairs(cardList) do
|
||||||
|
if card.metadata.id == "02014" then -- Duke
|
||||||
|
card.zone = "BlankTop"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
elseif investigatorId == "02005-p" or investigatorId == "02005-pf" then -- parallel Pete's front
|
||||||
|
for i, card in ipairs(cardList) do
|
||||||
|
if card.metadata.id == "90047" then -- Pete's Guitar
|
||||||
|
card.zone = "BlankTop"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Callback function for investigator cards and minicards to set the correct state for alt art
|
-- Callback function for investigator cards and minicards to set the correct state for alt art
|
||||||
---@param card Object Card which needs to be set the state for
|
---@param card Object Card which needs to be set the state for
|
||||||
---@param loadAltInvestigator String Contains the name of alternative art for the investigator ("normal", "revised" or "promo")
|
---@param loadAltInvestigator String Contains the name of alternative art for the investigator ("normal", "revised" or "promo")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user