improved delay
This commit is contained in:
parent
862210b1d8
commit
b12a01f235
@ -563,11 +563,8 @@ function drawCardsWithReshuffle(numCards)
|
||||
if deckAreaObjects.discard ~= nil then
|
||||
coWaitFrames(30)
|
||||
shuffleDiscardIntoDeck()
|
||||
if deckAreaObjects.discard.type == "Card" then
|
||||
coWaitSeconds(1 * 0.1 + 0.25)
|
||||
else
|
||||
coWaitSeconds(#deckAreaObjects.discard.getObjects() * 0.1 + 0.25)
|
||||
end
|
||||
coWaitSeconds(1 * 0.35)
|
||||
|
||||
local shuffledObjects = getDeckAreaObjects()
|
||||
drawCards(shuffledObjects.draw, numCards - deckSize)
|
||||
if topCardDetected then
|
||||
@ -648,11 +645,7 @@ function shuffleDiscardIntoDeck(player, _, elementId)
|
||||
table.insert(objectsToShuffle, deckAreaObjects.topCard)
|
||||
|
||||
-- this will be executed after the deck merging + shuffling
|
||||
if deckAreaObjects.discard.type == "Card" then
|
||||
Wait.time(flipTopCardFromDeck, 1 * 0.1 + 0.5)
|
||||
else
|
||||
Wait.time(flipTopCardFromDeck, #deckAreaObjects.discard.getObjects() * 0.1 + 0.5)
|
||||
end
|
||||
Wait.time(flipTopCardFromDeck, 0.3)
|
||||
end
|
||||
|
||||
table.insert(objectsToShuffle, deckAreaObjects.discard)
|
||||
|
Loading…
Reference in New Issue
Block a user