Updated Patrice handling
This commit is contained in:
parent
15db35dc98
commit
199fa6b77c
@ -396,19 +396,17 @@ function doUpkeep(_, clickedByColor, isRightClick)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local j = 0
|
-- perform discarding 1 by 1
|
||||||
local k = 0
|
local pos = returnGlobalDiscardPosition()
|
||||||
|
local count = #cardsToDiscard
|
||||||
for i = #cardsToDiscard, 1, -1 do
|
for i = count, 1, -1 do
|
||||||
j = j + 1
|
Wait.time(function() deckLib.placeOrMergeIntoDeck(cardsToDiscard[i], pos, rot) end, (count - i + 1) * 0.1)
|
||||||
Wait.time(function() deckLib.placeOrMergeIntoDeck(cardsToDiscard[i], returnGlobalDiscardPosition(), self.getRotation()) end, j * 0.1)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- add some time if there are any cards to discard, if not, draw up to 5 immediately
|
-- add some time if there are any cards to discard, if not, draw up to 5 immediately
|
||||||
if j > 0 then
|
local k = 0
|
||||||
k = 0.7 + (j * 0.1)
|
if count > 0 then
|
||||||
else
|
k = 1 + (count * 0.1)
|
||||||
k = 0
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Wait.time(function()
|
Wait.time(function()
|
||||||
|
Loading…
Reference in New Issue
Block a user