minigame: fix toon memory game (yuck)
This commit is contained in:
parent
455a8000ca
commit
c7362ec2d3
3 changed files with 4 additions and 4 deletions
|
@ -506,7 +506,7 @@ class DistributedPairingGame(DistributedMinigame):
|
|||
|
||||
def getCardPos(self, deckOrderIndex):
|
||||
col = deckOrderIndex % self.cardsPerRow
|
||||
row = deckOrderIndex / self.cardsPerRow
|
||||
row = deckOrderIndex // self.cardsPerRow
|
||||
x = col * self.xCardInc
|
||||
y = row * self.yCardInc
|
||||
return (x, y)
|
||||
|
@ -520,7 +520,7 @@ class DistributedPairingGame(DistributedMinigame):
|
|||
|
||||
def calcBonusTraversal(self):
|
||||
self.bonusTraversal = []
|
||||
halfRow = self.cardsPerRow / 2
|
||||
halfRow = self.cardsPerRow // 2
|
||||
if self.cardsPerRow % 2:
|
||||
halfRow += 1
|
||||
for i in range(halfRow):
|
||||
|
|
|
@ -32,7 +32,7 @@ class PlayingCardBase:
|
|||
self.rank = None
|
||||
self.turnDown()
|
||||
else:
|
||||
self.suit = value / PlayingCardGlobals.MaxRank
|
||||
self.suit = value // PlayingCardGlobals.MaxRank
|
||||
self.rank = value % PlayingCardGlobals.MaxRank
|
||||
self.setImage()
|
||||
return
|
||||
|
|
|
@ -46,7 +46,7 @@ def convertValueToGagTrackAndLevel(value):
|
|||
|
||||
def convertRankToGagTrackAndLevel(rank):
|
||||
track = rank % (ToontownBattleGlobals.MAX_TRACK_INDEX + 1)
|
||||
level = int(rank / (ToontownBattleGlobals.MAX_TRACK_INDEX + 1))
|
||||
level = rank // (ToontownBattleGlobals.MAX_TRACK_INDEX + 1)
|
||||
return (track, level)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue