From 2d055f2deab3710826c50fd73aa686f4abe940db Mon Sep 17 00:00:00 2001 From: DenialMC Date: Mon, 11 May 2015 22:58:11 +0300 Subject: [PATCH] PDB must be crucified --- otp/ai/MagicWordManagerAI.py | 5 ++-- otp/avatar/AvatarDNA.py | 5 ---- otp/avatar/DistributedAvatar.py | 6 ++--- otp/avatar/LocalAvatar.py | 25 ------------------- otp/level/LevelMgr.py | 3 --- otp/level/LevelSpec.py | 13 +--------- otp/otpbase/OTPGlobals.py | 1 - toontown/ai/NewsManager.py | 3 --- toontown/battle/BattleCalculatorAI.py | 4 --- toontown/battle/MovieSuitAttacks.py | 5 ---- .../building/DistributedKartShopInterior.py | 2 -- toontown/building/KartShopBuildingAI.py | 5 ---- toontown/cogdominium/CogdoFlyingGame.py | 3 --- toontown/cogdominium/CogdoMaze.py | 6 ----- toontown/coghq/CountryClubRoom.py | 3 --- toontown/coghq/DistributedGolfGreenGame.py | 5 ---- toontown/coghq/GameSprite3D.py | 3 --- toontown/minigame/DistributedCogThiefGame.py | 3 --- toontown/minigame/DistributedDivingGame.py | 3 --- toontown/racing/DistributedKartPad.py | 2 -- toontown/racing/DistributedRace.py | 2 -- toontown/racing/DistributedStartingBlock.py | 2 -- toontown/racing/DistributedVehicleAI.py | 5 ---- toontown/racing/DistributedViewPad.py | 2 -- toontown/racing/KartDNA.py | 6 ++--- toontown/racing/KartShopGui.py | 2 -- toontown/safezone/GSPlayground.py | 4 --- toontown/safezone/GSSafeZoneLoader.py | 2 -- toontown/safezone/GZSafeZoneLoader.py | 2 -- toontown/shtiker/GolfPage.py | 2 -- toontown/shtiker/KartPage.py | 2 -- toontown/suit/DistributedBossbotBossAI.py | 2 -- toontown/toon/DistributedToon.py | 2 -- toontown/toon/DistributedToonAI.py | 2 -- toontown/toon/LocalToon.py | 4 --- 35 files changed, 7 insertions(+), 139 deletions(-) diff --git a/otp/ai/MagicWordManagerAI.py b/otp/ai/MagicWordManagerAI.py index faa65af0..9393001b 100644 --- a/otp/ai/MagicWordManagerAI.py +++ b/otp/ai/MagicWordManagerAI.py @@ -44,10 +44,9 @@ class MagicWordManagerAI(DistributedObjectAI): @magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[str]) def help(wordName=None): - print 'help called with %s' % (wordName) if not wordName: return "What were you interested getting help for?" - word = spellbook.words.get(wordName.lower()) # look it up by its lower case value + word = spellbook.words.get(wordName.lower()) if not word: accessLevel = spellbook.getInvoker().getAdminAccess() wname = wordName.lower() @@ -55,7 +54,7 @@ def help(wordName=None): if spellbook.words.get(key).access <= accessLevel: if wname in key: return 'Did you mean %s' % (spellbook.words.get(key).name) - return 'I have no clue what %s is refering to' % (wordName) + return 'I have no clue what %s is referring to' % (wordName) return word.doc @magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[]) diff --git a/otp/avatar/AvatarDNA.py b/otp/avatar/AvatarDNA.py index f7e7f658..3cb9fa4b 100644 --- a/otp/avatar/AvatarDNA.py +++ b/otp/avatar/AvatarDNA.py @@ -13,11 +13,6 @@ class AvatarDNA: def makeNetString(self): notify.error('called makeNetString on avatarDNA parent class') - def printNetString(self): - string = self.makeNetString() - dg = PyDatagram(string) - dg.dumpHex(ostream) - def makeFromNetString(self, string): notify.error('called makeFromNetString on avatarDNA parent class') diff --git a/otp/avatar/DistributedAvatar.py b/otp/avatar/DistributedAvatar.py index 7e95cf1b..07f2f244 100644 --- a/otp/avatar/DistributedAvatar.py +++ b/otp/avatar/DistributedAvatar.py @@ -331,8 +331,6 @@ def leftHand(prop=None): @magicWord(category=CATEGORY_PROGRAMMER, types=[]) def getPos(): """ - print av position + Return your target's position. """ - target = spellbook.getTarget() - pos = target.getPos() - print(pos) + return spellbook.getTarget().getPos() diff --git a/otp/avatar/LocalAvatar.py b/otp/avatar/LocalAvatar.py index a34365c1..205cafb8 100644 --- a/otp/avatar/LocalAvatar.py +++ b/otp/avatar/LocalAvatar.py @@ -577,23 +577,6 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis self.cameraPositions.remove(camPos) self.nextCameraPos(1) - def printCameraPositions(self): - print '[' - for i in xrange(len(self.cameraPositions)): - self.printCameraPosition(i) - print ',' - - print ']' - - def printCameraPosition(self, index): - cp = self.cameraPositions[index] - print '(Point3(%0.2f, %0.2f, %0.2f),' % (cp[0][0], cp[0][1], cp[0][2]) - print 'Point3(%0.2f, %0.2f, %0.2f),' % (cp[1][0], cp[1][1], cp[1][2]) - print 'Point3(%0.2f, %0.2f, %0.2f),' % (cp[2][0], cp[2][1], cp[2][2]) - print 'Point3(%0.2f, %0.2f, %0.2f),' % (cp[3][0], cp[3][1], cp[3][2]) - print '%d,' % cp[4] - print ')', - def posCamera(self, lerp, time): if not lerp: self.positionCameraWithPusher(self.getCompromiseCameraPos(), self.getLookAtPoint()) @@ -1112,7 +1095,6 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis def startChat(self): self.chatMgr.start() self.accept(OTPGlobals.ThinkPosHotkey, self.thinkPos) - self.accept(OTPGlobals.PrintCamPosHotkey, self.printCamPos) if self.__enableMarkerPlacement: self.accept(OTPGlobals.PlaceMarkerHotkey, self.__placeMarker) @@ -1120,16 +1102,9 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis self.chatMgr.stop() self.ignore(OTPGlobals.WhisperIncomingEvent) self.ignore(OTPGlobals.ThinkPosHotkey) - self.ignore(OTPGlobals.PrintCamPosHotkey) if self.__enableMarkerPlacement: self.ignore(OTPGlobals.PlaceMarkerHotkey) - def printCamPos(self): - node = base.camera.getParent() - pos = base.cam.getPos(node) - hpr = base.cam.getHpr(node) - print 'cam pos = ', `pos`, ', cam hpr = ', `hpr` - def d_broadcastPositionNow(self): self.d_clearSmoothing() self.d_broadcastPosHpr() diff --git a/otp/level/LevelMgr.py b/otp/level/LevelMgr.py index 5e507e74..9803a3e2 100644 --- a/otp/level/LevelMgr.py +++ b/otp/level/LevelMgr.py @@ -6,9 +6,6 @@ class LevelMgr(LevelMgrBase.LevelMgrBase): def __init__(self, level, entId): LevelMgrBase.LevelMgrBase.__init__(self, level, entId) self.geom = loader.loadModel(self.modelFilename) - if not self.geom: - import pdb - pdb.set_trace() self.zoneNums = [] self.level.zoneNum2zoneId = {} self.level.zoneId2zoneNum = {} diff --git a/otp/level/LevelSpec.py b/otp/level/LevelSpec.py index 5d9c2b25..52d00058 100644 --- a/otp/level/LevelSpec.py +++ b/otp/level/LevelSpec.py @@ -81,15 +81,4 @@ class LevelSpec: return self.specDict['globalEntities'] def privGetScenarioEntityDict(self, scenario): - return self.specDict['scenarios'][scenario] - - def printZones(self): - allIds = self.getAllEntIds() - type2id = self.getEntType2ids(allIds) - zoneIds = type2id['zone'] - if 0 in zoneIds: - zoneIds.remove(0) - zoneIds.sort() - for zoneNum in zoneIds: - spec = self.getEntitySpec(zoneNum) - print 'zone %s: %s' % (zoneNum, spec['name']) \ No newline at end of file + return self.specDict['scenarios'][scenario] \ No newline at end of file diff --git a/otp/otpbase/OTPGlobals.py b/otp/otpbase/OTPGlobals.py index 7a9267ce..24ef7a83 100644 --- a/otp/otpbase/OTPGlobals.py +++ b/otp/otpbase/OTPGlobals.py @@ -197,7 +197,6 @@ InventoryHotkeyOn = 'home' InventoryHotkeyOff = 'home-up' MapHotkeyOn = 'delete' MapHotkeyOff = 'delete-up' -PrintCamPosHotkey = 'f12' QuitGameHotKeyOSX = 'meta-q' QuitGameHotKeyRepeatOSX = 'meta-q-repeat' HideGameHotKeyOSX = 'meta-h' diff --git a/toontown/ai/NewsManager.py b/toontown/ai/NewsManager.py index 7e566d5b..4e877e08 100644 --- a/toontown/ai/NewsManager.py +++ b/toontown/ai/NewsManager.py @@ -710,9 +710,6 @@ class NewsManager(DistributedObject.DistributedObject): self.weekDaysInMonth[i] = (i, 4) startingWeekDay, numDays = calendar.monthrange(year, month) - if startingWeekDay > 6: - import pdb - pdb.set_trace() for i in xrange(4): if numDays == self.numDaysCorMatrix[i][0]: break diff --git a/toontown/battle/BattleCalculatorAI.py b/toontown/battle/BattleCalculatorAI.py index 9fffcd04..f967c851 100644 --- a/toontown/battle/BattleCalculatorAI.py +++ b/toontown/battle/BattleCalculatorAI.py @@ -1389,10 +1389,6 @@ class BattleCalculatorAI: self.__printSuitAtkStats() return None - def __calculateFiredCogs(): - import pdb - pdb.set_trace() - def toonLeftBattle(self, toonId): if self.notify.getDebug(): self.notify.debug('toonLeftBattle()' + str(toonId)) diff --git a/toontown/battle/MovieSuitAttacks.py b/toontown/battle/MovieSuitAttacks.py index be813541..8c090280 100644 --- a/toontown/battle/MovieSuitAttacks.py +++ b/toontown/battle/MovieSuitAttacks.py @@ -1597,9 +1597,6 @@ def doReOrg(attack): partTrack = getPartTrack(sprayEffect, 1.0, 1.9, [sprayEffect, suit, 0]) if dmg > 0: headParts = toon.getHeadParts() - if __debug__: - print '***********headParts pos=', headParts[0].getPos() - print '***********headParts hpr=', headParts[0].getHpr() headTracks = Parallel() for partNum in xrange(0, headParts.getNumPaths()): part = headParts.getPath(partNum) @@ -1619,8 +1616,6 @@ def doReOrg(attack): arms = toon.findAllMatches('**/arms') sleeves = toon.findAllMatches('**/sleeves') hands = toon.findAllMatches('**/hands') - if __debug__: - print '*************arms hpr=', arms[0].getHpr() for partNum in xrange(0, arms.getNumPaths()): chestTracks.append(getChestTrack(arms.getPath(partNum))) chestTracks.append(getChestTrack(sleeves.getPath(partNum))) diff --git a/toontown/building/DistributedKartShopInterior.py b/toontown/building/DistributedKartShopInterior.py index b86cdf59..ac3af8b8 100644 --- a/toontown/building/DistributedKartShopInterior.py +++ b/toontown/building/DistributedKartShopInterior.py @@ -6,8 +6,6 @@ from toontown.hood import ZoneUtil from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase.ToontownGlobals import * from toontown.toon.DistributedNPCToonBase import DistributedNPCToonBase -if (__debug__): - import pdb class DistributedKartShopInterior(DistributedObject): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedKartShopInterior') diff --git a/toontown/building/KartShopBuildingAI.py b/toontown/building/KartShopBuildingAI.py index dd0fc9b3..74d13555 100644 --- a/toontown/building/KartShopBuildingAI.py +++ b/toontown/building/KartShopBuildingAI.py @@ -5,11 +5,6 @@ from toontown.building.DistributedDoorAI import DistributedDoorAI from toontown.building.DistributedKartShopInteriorAI import DistributedKartShopInteriorAI from toontown.toon import NPCToons - -if __debug__: - import pdb - - class KartShopBuildingAI: notify = directNotify.newCategory('KartShopBuildingAI') diff --git a/toontown/cogdominium/CogdoFlyingGame.py b/toontown/cogdominium/CogdoFlyingGame.py index 7b31c617..a7ee4f45 100644 --- a/toontown/cogdominium/CogdoFlyingGame.py +++ b/toontown/cogdominium/CogdoFlyingGame.py @@ -188,9 +188,6 @@ class CogdoFlyingGame(DirectObject): self.ignore(CogdoFlyingLegalEagle.RequestAddTargetAgainEventName) self.ignore(CogdoFlyingLegalEagle.RequestRemoveTargetEventName) self.ignore(CogdoFlyingLocalPlayer.PlayWaitingMusicEventName) - if __debug__ and base.config.GetBool('schellgames-dev', True): - self.ignore('end') - self.ignore('home') self.level.update(0.0) for eagle in self.legalEagles: eagle.gameEnd() diff --git a/toontown/cogdominium/CogdoMaze.py b/toontown/cogdominium/CogdoMaze.py index 281accf0..4e48208f 100644 --- a/toontown/cogdominium/CogdoMaze.py +++ b/toontown/cogdominium/CogdoMaze.py @@ -18,8 +18,6 @@ class CogdoMaze(MazeBase, DirectObject): self._clearColor = VBase4(base.win.getClearColor()) self._clearColor.setW(1.0) base.win.setClearColor(VBase4(0.0, 0.0, 0.0, 1.0)) - if __debug__ and base.config.GetBool('cogdomaze-dev', False): - self._initCollisionVisuals() def _initWaterCoolers(self): self._waterCoolers = [] @@ -60,10 +58,6 @@ class CogdoMaze(MazeBase, DirectObject): base.win.setClearColor(self._clearColor) del self._clearColor MazeBase.destroy(self) - if __debug__ and hasattr(self, '_cubes'): - self.ignoreAll() - self._cubes.removeNode() - del self._cubes def onstage(self): MazeBase.onstage(self) diff --git a/toontown/coghq/CountryClubRoom.py b/toontown/coghq/CountryClubRoom.py index 0b12f641..ce270b2a 100644 --- a/toontown/coghq/CountryClubRoom.py +++ b/toontown/coghq/CountryClubRoom.py @@ -38,9 +38,6 @@ class CountryClubRoom(DirectObject.DirectObject): return self.roomNum def setGeom(self, geom): - if geom == None: - import pdb - pdb.set_trace() self.__geom = geom return diff --git a/toontown/coghq/DistributedGolfGreenGame.py b/toontown/coghq/DistributedGolfGreenGame.py index 6fb4e6c2..e16fb483 100644 --- a/toontown/coghq/DistributedGolfGreenGame.py +++ b/toontown/coghq/DistributedGolfGreenGame.py @@ -179,9 +179,6 @@ class DistributedGolfGreenGame(BattleBlocker.BattleBlocker): None] groundCircle = loader.loadModel('phase_12/models/bossbotHQ/bust_a_cog_hole') groundCircle.reparentTo(self.spriteNode) - if groundCircle == None: - import pdb - pdb.set_trace() groundCircle.setTransparency(TransparencyAttrib.MAlpha) groundCircle.setPos(newCell[1], -self.radiusBall, newCell[2]) groundCircle.setScale(1.2) @@ -528,8 +525,6 @@ class DistributedGolfGreenGame(BattleBlocker.BattleBlocker): return def __acceptExit(self, buttonValue = None): - import pdb - pdb.set_trace() if hasattr(self, 'frame'): self.hide() self.unload() diff --git a/toontown/coghq/GameSprite3D.py b/toontown/coghq/GameSprite3D.py index 52c88478..24ccfb11 100644 --- a/toontown/coghq/GameSprite3D.py +++ b/toontown/coghq/GameSprite3D.py @@ -184,9 +184,6 @@ class GameSprite: self.multiColorStep = 0.1 elif colorType == 9: myModel = 'phase_12/models/bossbotHQ/bust_a_cog_ball_steel' - if not myModel: - import pdb - pdb.set_trace() self.breakable = 0 elif colorType == 10: myModel = 'phase_12/models/bossbotHQ/bust_a_cog_ball_fire' diff --git a/toontown/minigame/DistributedCogThiefGame.py b/toontown/minigame/DistributedCogThiefGame.py index e21eee4d..9c438929 100644 --- a/toontown/minigame/DistributedCogThiefGame.py +++ b/toontown/minigame/DistributedCogThiefGame.py @@ -580,9 +580,6 @@ class DistributedCogThiefGame(DistributedMinigame): if cog.suit: cogPos = cog.suit.getPos() collisionPos = colEntry.getContactPos(render) - if (cogPos - collisionPos).length() > 4: - import pdb - pdb.set_trace() self.sendUpdate('cogHitBarrel', [timestamp, cogIndex, barrelIndex, diff --git a/toontown/minigame/DistributedDivingGame.py b/toontown/minigame/DistributedDivingGame.py index 48242139..f2223173 100644 --- a/toontown/minigame/DistributedDivingGame.py +++ b/toontown/minigame/DistributedDivingGame.py @@ -772,9 +772,6 @@ class DistributedDivingGame(DistributedMinigame): fish.removeNode() del fish del self.spawners[spawnerId].fishArray[spawnId] - else: - import pdb - pdb.setTrace() return def setTreasureGrabbed(self, avId, chestId): diff --git a/toontown/racing/DistributedKartPad.py b/toontown/racing/DistributedKartPad.py index d13c3788..17700bb2 100644 --- a/toontown/racing/DistributedKartPad.py +++ b/toontown/racing/DistributedKartPad.py @@ -1,7 +1,5 @@ from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObject import DistributedObject -if (__debug__): - import pdb class DistributedKartPad(DistributedObject): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedKartPad') diff --git a/toontown/racing/DistributedRace.py b/toontown/racing/DistributedRace.py index d77f5bd6..d9911dac 100644 --- a/toontown/racing/DistributedRace.py +++ b/toontown/racing/DistributedRace.py @@ -535,8 +535,6 @@ class DistributedRace(DistributedObject.DistributedObject): t = projLength2 / segLength2 if self.debugIt: self.notify.debug('self.debugIt = %d' % self.debugIt) - import pdb - pdb.set_trace() if nextPole < self.currentPole: newT = self.curveTs[self.currentPole] * (1 - t) + self.curve.getMaxT() * t else: diff --git a/toontown/racing/DistributedStartingBlock.py b/toontown/racing/DistributedStartingBlock.py index 0b10566b..bbeb332a 100644 --- a/toontown/racing/DistributedStartingBlock.py +++ b/toontown/racing/DistributedStartingBlock.py @@ -21,8 +21,6 @@ from toontown.racing.Kart import Kart from toontown.racing.KartShopGlobals import KartGlobals from toontown.racing import RaceGlobals from toontown.toontowngui.TTDialog import TTGlobalDialog -if (__debug__): - import pdb class DistributedStartingBlock(DistributedObject.DistributedObject, FSM): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedStartingBlock') diff --git a/toontown/racing/DistributedVehicleAI.py b/toontown/racing/DistributedVehicleAI.py index b5b745ea..caf86fcb 100644 --- a/toontown/racing/DistributedVehicleAI.py +++ b/toontown/racing/DistributedVehicleAI.py @@ -5,13 +5,8 @@ from direct.distributed.ClockDelta import * from direct.distributed import DistributedSmoothNodeAI from direct.fsm import FSM from direct.task import Task - from direct.distributed.PyDatagram import * - -if (__debug__): - import pdb - class DistributedVehicleAI(DistributedSmoothNodeAI.DistributedSmoothNodeAI, FSM.FSM): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedVehicleAI') diff --git a/toontown/racing/DistributedViewPad.py b/toontown/racing/DistributedViewPad.py index e7da2490..25ac1962 100644 --- a/toontown/racing/DistributedViewPad.py +++ b/toontown/racing/DistributedViewPad.py @@ -4,8 +4,6 @@ from direct.task import Task from pandac.PandaModules import * from toontown.racing.DistributedKartPad import DistributedKartPad from toontown.racing.KartShopGlobals import KartGlobals -if (__debug__): - import pdb class DistributedViewPad(DistributedKartPad): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedViewPad') diff --git a/toontown/racing/KartDNA.py b/toontown/racing/KartDNA.py index 4911bf7d..ac8b2730 100644 --- a/toontown/racing/KartDNA.py +++ b/toontown/racing/KartDNA.py @@ -3,10 +3,8 @@ from direct.showbase import PythonUtil from toontown.toonbase import TTLocalizer from pandac.PandaModules import * from KartShopGlobals import * -import types -if (__debug__): - import pdb -import copy +import types, copy + KartDNA = PythonUtil.Enum('bodyType, bodyColor, accColor, ebType, spType, fwwType, bwwType, rimsType, decalType') InvalidEntry = -1 KartInfo = PythonUtil.Enum('name, model, cost, viewDist, decalId, LODmodel1, LODmodel2') diff --git a/toontown/racing/KartShopGui.py b/toontown/racing/KartShopGui.py index 18e86765..4d601e45 100644 --- a/toontown/racing/KartShopGui.py +++ b/toontown/racing/KartShopGui.py @@ -12,8 +12,6 @@ from KartShopGlobals import * from toontown.racing.Kart import Kart from toontown.shtiker.KartPage import KartViewer from KartDNA import * -if (__debug__): - import pdb MENUS = PythonUtil.Enum('MainMenu, BuyKart, BuyAccessory, ReturnKart, ConfirmBuyAccessory, ConfirmBuyKart, BoughtKart, BoughtAccessory') MM_OPTIONS = PythonUtil.Enum('Cancel, BuyAccessory, BuyKart', -1) BK_OPTIONS = PythonUtil.Enum('Cancel, BuyKart', -1) diff --git a/toontown/safezone/GSPlayground.py b/toontown/safezone/GSPlayground.py index 4dd0e5f0..540dad34 100644 --- a/toontown/safezone/GSPlayground.py +++ b/toontown/safezone/GSPlayground.py @@ -64,8 +64,6 @@ class GSPlayground(Playground.Playground): return def enterStartingBlock(self, distStartingBlock): - import pdb - pdb.set_trace() self.accept(self.startingBlockDoneEvent, self.handleStartingBlockDone) self.startingBlock = Elevator.Elevator(self.fsm.getStateNamed('startingBlock'), self.startingBlockDoneEvent, distStartingBlock) distStartingBlock.elevatorFSM = self.startingBlock @@ -79,8 +77,6 @@ class GSPlayground(Playground.Playground): del self.startingBlock def detectedStartingBlockCollision(self, distStartingBlock): - import pdb - pdb.set_trace() self.fsm.request('startingBlock', [distStartingBlock]) def handleStartingBlockDone(self, doneStatus): diff --git a/toontown/safezone/GSSafeZoneLoader.py b/toontown/safezone/GSSafeZoneLoader.py index 133aa39e..28208bfb 100644 --- a/toontown/safezone/GSSafeZoneLoader.py +++ b/toontown/safezone/GSSafeZoneLoader.py @@ -8,8 +8,6 @@ from toontown.safezone.GSPlayground import GSPlayground from toontown.effects.CarSmoke import CarSmoke from toontown.toonbase import ToontownGlobals import random -if (__debug__): - import pdb class GSSafeZoneLoader(SafeZoneLoader): diff --git a/toontown/safezone/GZSafeZoneLoader.py b/toontown/safezone/GZSafeZoneLoader.py index feadc820..71991536 100644 --- a/toontown/safezone/GZSafeZoneLoader.py +++ b/toontown/safezone/GZSafeZoneLoader.py @@ -9,8 +9,6 @@ from toontown.safezone.GZPlayground import GZPlayground from toontown.toonbase import TTLocalizer from toontown.toonbase import ToontownGlobals import random -if (__debug__): - import pdb class GZSafeZoneLoader(SafeZoneLoader): diff --git a/toontown/shtiker/GolfPage.py b/toontown/shtiker/GolfPage.py index f8a10aec..c797afe3 100644 --- a/toontown/shtiker/GolfPage.py +++ b/toontown/shtiker/GolfPage.py @@ -8,8 +8,6 @@ from toontown.shtiker.ShtikerPage import ShtikerPage from toontown.toonbase import ToontownGlobals, TTLocalizer from FishPage import FishingTrophy from toontown.golf import GolfGlobals -if (__debug__): - import pdb PageMode = PythonUtil.Enum('Records, Trophy') class GolfPage(ShtikerPage): diff --git a/toontown/shtiker/KartPage.py b/toontown/shtiker/KartPage.py index 58565a9d..2336e9a8 100644 --- a/toontown/shtiker/KartPage.py +++ b/toontown/shtiker/KartPage.py @@ -10,8 +10,6 @@ from toontown.racing import RaceGlobals from toontown.shtiker.ShtikerPage import ShtikerPage from toontown.toonbase import ToontownGlobals, TTLocalizer from FishPage import FishingTrophy -if (__debug__): - import pdb PageMode = PythonUtil.Enum('Customize, Records, Trophy') class KartPage(ShtikerPage): diff --git a/toontown/suit/DistributedBossbotBossAI.py b/toontown/suit/DistributedBossbotBossAI.py index 4d6df416..237b14f0 100644 --- a/toontown/suit/DistributedBossbotBossAI.py +++ b/toontown/suit/DistributedBossbotBossAI.py @@ -661,8 +661,6 @@ class DistributedBossbotBossAI(DistributedBossCogAI.DistributedBossCogAI, FSM.FS t = max(t0, t1) progVal = fromValue + (toValue - fromValue) * min(t, 1) self.notify.debug('progVal=%s' % progVal) - import pdb - pdb.set_trace() return progVal def __doDirectedAttack(self): diff --git a/toontown/toon/DistributedToon.py b/toontown/toon/DistributedToon.py index c519c420..2a34c4d9 100644 --- a/toontown/toon/DistributedToon.py +++ b/toontown/toon/DistributedToon.py @@ -64,8 +64,6 @@ from toontown.battle import BattleParticles if base.wantKarts: from toontown.racing.KartDNA import * -if (__debug__): - import pdb class DistributedToon(DistributedPlayer.DistributedPlayer, Toon.Toon, DistributedSmoothNode.DistributedSmoothNode, DelayDeletable): diff --git a/toontown/toon/DistributedToonAI.py b/toontown/toon/DistributedToonAI.py index a476947f..6be72ae4 100644 --- a/toontown/toon/DistributedToonAI.py +++ b/toontown/toon/DistributedToonAI.py @@ -2853,8 +2853,6 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo self.sendUpdate('setKartAccessoriesOwned', [accessories]) def setKartAccessoriesOwned(self, accessories): - if (__debug__): - import pdb self.accessories = accessories def getKartAccessoriesOwned(self): diff --git a/toontown/toon/LocalToon.py b/toontown/toon/LocalToon.py index a4cf6e98..c2c1e2d3 100644 --- a/toontown/toon/LocalToon.py +++ b/toontown/toon/LocalToon.py @@ -59,8 +59,6 @@ from toontown.toonbase.ToontownGlobals import * from toontown.friends.FriendHandle import FriendHandle ClaraBaseXPos = 0.12 -if (__debug__): - import pdb class LocalToon(DistributedToon.DistributedToon, LocalAvatar.LocalAvatar): neverDisable = 1 @@ -1405,8 +1403,6 @@ class LocalToon(DistributedToon.DistributedToon, LocalAvatar.LocalAvatar): return def setPlantToWater(self, plantId): - import pdb - pdb.set_trace() if self.plantToWater == None: self.plantToWater = plantId self.notify.debug('setting plant to water %s' % plantId)