mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fixed a problem with auto drop and initial dealing.
This commit is contained in:
parent
9155493dc9
commit
9fd7b60cc7
1 changed files with 5 additions and 1 deletions
|
@ -1658,6 +1658,8 @@ class DealRow_StackMethods:
|
||||||
self.game.flipMove(self)
|
self.game.flipMove(self)
|
||||||
self.game.moveMove(1, self, r, frames=frames)
|
self.game.moveMove(1, self, r, frames=frames)
|
||||||
self.game.leaveState(old_state)
|
self.game.leaveState(old_state)
|
||||||
|
if TOOLKIT is 'kivy':
|
||||||
|
self.game.top.waitAnimation()
|
||||||
return len(stacks)
|
return len(stacks)
|
||||||
|
|
||||||
# all Aces go to the Foundations
|
# all Aces go to the Foundations
|
||||||
|
@ -1688,6 +1690,8 @@ class DealRow_StackMethods:
|
||||||
self.game.moveMove(1, self, r, frames=frames)
|
self.game.moveMove(1, self, r, frames=frames)
|
||||||
break
|
break
|
||||||
self.game.leaveState(old_state)
|
self.game.leaveState(old_state)
|
||||||
|
if TOOLKIT is 'kivy':
|
||||||
|
self.game.top.waitAnimation()
|
||||||
return n
|
return n
|
||||||
|
|
||||||
|
|
||||||
|
@ -2900,9 +2904,9 @@ class WasteTalonStack(TalonStack):
|
||||||
self.game.moveMove(1, self, waste, frames=4, shadow=0)
|
self.game.moveMove(1, self, waste, frames=4, shadow=0)
|
||||||
else:
|
else:
|
||||||
self.game.moveMove(1, self, waste, frames=4, shadow=0)
|
self.game.moveMove(1, self, waste, frames=4, shadow=0)
|
||||||
|
self.fillStack()
|
||||||
if TOOLKIT is 'kivy':
|
if TOOLKIT is 'kivy':
|
||||||
self.game.top.waitAnimation()
|
self.game.top.waitAnimation()
|
||||||
self.fillStack()
|
|
||||||
elif waste.cards and self.round != self.max_rounds:
|
elif waste.cards and self.round != self.max_rounds:
|
||||||
if sound:
|
if sound:
|
||||||
self.game.playSample("turnwaste", priority=20)
|
self.game.playSample("turnwaste", priority=20)
|
||||||
|
|
Loading…
Add table
Reference in a new issue