카드 설명 키워드 하이라이트 추가

This commit is contained in:
2026-06-19 01:51:36 +09:00
parent 71435a2c91
commit b2bf1bf4dd
9 changed files with 144 additions and 14 deletions

View File

@@ -415,7 +415,8 @@ if self.PlayerVuln > 0 then self.PlayerVuln = self.PlayerVuln - 1 end
self:RenderHand(false)
self:RenderPiles()
self:EnemyTurn()`, [{ Type: 'number', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'retainSlot' }]),
method('DrawCards', `local drawnSlots = {}
method('DrawCards', `local drawnSlots = {}
local drawnCards = {}
local drewAny = false
for i = 1, amount do
\tif #self.DrawPile <= 0 then
@@ -425,6 +426,7 @@ for i = 1, amount do
\t\tbreak
\tend
\tlocal cardId = table.remove(self.DrawPile)
\ttable.insert(drawnCards, cardId)
\tif #self.Hand >= 10 then
\t\ttable.insert(self.DiscardPile, cardId)
\t\tself:TriggerSly(cardId)
@@ -444,10 +446,11 @@ if animate == true and #drawnSlots > 0 then
\t\tlocal slot = drawnSlots[i]
\t\tself:AnimateCardFrom(slot, drawStart, Vector2(self:GetHandSlotX(slot), 0), 0.08 + i * 0.045)
\tend
return drawnCards
end`, [
{ Type: 'number', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'amount' },
{ Type: 'boolean', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'animate' },
]),
], 0, 'any'),
method('AddCardsToHand', `if self.Hand == nil then
self.Hand = {}
end