coghq: fix some da office crashes

This commit is contained in:
John Cote 2020-01-10 17:20:26 -05:00
parent 228261eec3
commit c04375d5e8
5 changed files with 10 additions and 2 deletions

View file

@ -430,5 +430,8 @@ class ToontownAIRepository(ToontownInternalRepository):
self.zoneAllocator.free(zone)
def trueUniqueName(self, idString):
return self.uniqueName(idString)
def sendQueryToonMaxHp(self, avId, callback):
pass # TODO?

View file

@ -314,9 +314,9 @@ class DistributedSecurityCamera(BasicEntities.DistributedNodePathEntity):
self.trackShape = []
wideX = 1
wideY = 1
self.trackShape = getCirclePoints(5 + draw * 12.0, 0.0, 0.0, self.radius, wideX, wideY)
self.trackShape = getCirclePoints(int(5 + draw * 12.0), 0.0, 0.0, self.radius, wideX, wideY)
self.trackShapeFloor = []
self.trackShapeFloor = getCirclePoints(5 + draw * 50.0, 0.0, 0.0, self.radius, wideX, wideY)
self.trackShapeFloor = getCirclePoints(int(5 + draw * 50.0), 0.0, 0.0, self.radius, wideX, wideY)
if self.trackBeamGN:
self.trackBeamGN.removeAllGeoms()
if self.trackFloorGN:

View file

@ -1,4 +1,5 @@
from pandac.PandaModules import *
from libotp import *
from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle

View file

@ -4,6 +4,7 @@ from direct.fsm import ClassicFSM, State
from direct.fsm import State
from direct.showbase import BulletinBoardWatcher
from pandac.PandaModules import *
from libotp import *
from otp.distributed.TelemetryLimiter import RotationLimitToH, TLGatherAllAvs
from toontown.toon import Toon
from toontown.toonbase import ToontownGlobals

View file

@ -36,3 +36,6 @@ class QuestManagerAI:
def toonDefeatedMint(self, toon, mintId, activeVictors):
pass # TODO
def toonDefeatedStage(self, toon, stageId, activeVictors):
pass # TODO