diff --git a/toontown/minigame/DistributedPairingGame.py b/toontown/minigame/DistributedPairingGame.py index 075c3e9..bb98cc2 100644 --- a/toontown/minigame/DistributedPairingGame.py +++ b/toontown/minigame/DistributedPairingGame.py @@ -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): diff --git a/toontown/minigame/PlayingCard.py b/toontown/minigame/PlayingCard.py index 6dd8365..bc76bf1 100644 --- a/toontown/minigame/PlayingCard.py +++ b/toontown/minigame/PlayingCard.py @@ -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 diff --git a/toontown/minigame/PlayingCardGlobals.py b/toontown/minigame/PlayingCardGlobals.py index d2c9c51..b8cb4f0 100644 --- a/toontown/minigame/PlayingCardGlobals.py +++ b/toontown/minigame/PlayingCardGlobals.py @@ -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)