Merge pull request #499 from dscarpac/Short-Supply

Wait time between cards for Short Supply
This commit is contained in:
Chr1Z 2023-12-08 01:01:36 +01:00 committed by GitHub
commit c910617d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,9 +27,9 @@ function shortSupply(color)
return return
end end
-- discard cards -- discard cards, waiting 0.7 seconds between each discard to give players visiblity of the cards
broadcastToColor("Discarding top 10 cards for player color '" .. matColor .. "'.", color, "White") broadcastToColor("Discarding top 10 cards for player color '" .. matColor .. "'.", color, "White")
for i = 1, 10 do for i = 1, 10 do
drawDeck.takeObject({ flip = true, position = { discardPos.x, 2 + 0.075 * i, discardPos.z } }) Wait.time(function() drawDeck.takeObject({ flip = true, position = { discardPos.x, 2 + 0.075 * i, discardPos.z } }) end, .7 * (i - 1))
end end
end end