feat: make all cards use 1 deck slot regardless of rarity
Override getCardDeckSlots to always return 1 so mythic and higher rarity cards don't take multiple slots in the 30-slot deck. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -865,14 +865,6 @@ function ____exports.isFrostmourneShardCardId(self, cardId)
|
||||
end
|
||||
--- Сколько слотов колоды занимает карта по каталогу (по умолчанию 1).
|
||||
function ____exports.getCardDeckSlotsFromCatalog(self, cardId)
|
||||
local row = __TS__ArrayFind(
|
||||
____exports.ALL_CARD_CATALOG_DEFS,
|
||||
function(____, c) return c.id == cardId end
|
||||
)
|
||||
local configured = __TS__Number(row and row.deck_slots)
|
||||
if __TS__NumberIsFinite(configured) and configured > 0 then
|
||||
return math.floor(configured)
|
||||
end
|
||||
return 1
|
||||
end
|
||||
____exports.DEFAULT_DECK_CARD_IDS = __TS__ArraySort(
|
||||
|
||||
@@ -255,11 +255,6 @@ function CardSystem.prototype.____constructor(self, playerId)
|
||||
)
|
||||
end
|
||||
function CardSystem.getCardDeckSlots(self, cardId)
|
||||
local cardData = ____exports.CardSystem.cardData[cardId]
|
||||
local configured = __TS__Number(cardData and cardData.deck_slots)
|
||||
if __TS__NumberIsFinite(configured) and configured > 0 then
|
||||
return math.floor(configured)
|
||||
end
|
||||
return 1
|
||||
end
|
||||
function CardSystem.getDeckUsedSlots(self, cards)
|
||||
|
||||
Reference in New Issue
Block a user