Increased delay on deck shuffling

This commit is contained in:
Chr1Z93 2024-06-07 23:59:45 +02:00
parent 1621be3594
commit 755de77d7a

View File

@ -163,12 +163,11 @@ function endSearch(_, _, isRightClick)
-- draw set aside cards (from the ground!) -- draw set aside cards (from the ground!)
for _, obj in ipairs(searchLib.atPosition(setAsidePosition, "isCardOrDeck")) do for _, obj in ipairs(searchLib.atPosition(setAsidePosition, "isCardOrDeck")) do
local count = 1
if obj.type == "Deck" then if obj.type == "Deck" then
Wait.time(function() obj.deal(#obj.getObjects(), handColor) end, 1) count = #obj.getObjects()
elseif obj.type == "Card" then
obj.setPosition(Player[handColor].getHandTransform().position)
obj.flip()
end end
Wait.time(function() obj.deal(count, handColor) end, 1)
end end
normalView() normalView()
@ -180,11 +179,11 @@ function endSearch(_, _, isRightClick)
if deckAreaObjects.draw then if deckAreaObjects.draw then
deckAreaObjects.draw.shuffle() deckAreaObjects.draw.shuffle()
end end
end, (#handCards + 2.5) * 0.2) end, #handCards * 0.3 + 0.5)
end end
-- Norman Withers handling -- Norman Withers handling
if topCardDetected then if topCardDetected then
Wait.time(function() playmatApi.flipTopCardFromDeck(matColor) end, #handCards * 0.2) Wait.time(function() playmatApi.flipTopCardFromDeck(matColor) end, #handCards * 0.3 + 0.75)
end end
end end