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:
achmad
2026-05-30 04:10:03 +07:00
parent 5a7cb40872
commit 599339e225
2 changed files with 0 additions and 13 deletions
-8
View File
@@ -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(
-5
View File
@@ -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)