mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
Cleanup and typo fix.
This commit is contained in:
parent
4fa3762300
commit
460587cbd7
2 changed files with 4 additions and 5 deletions
|
@ -1136,16 +1136,15 @@ class DistributedBattleBaseAI(DistributedObjectAI.DistributedObjectAI, BattleBas
|
|||
petProxy.setSurprise(pet.getSurprise())
|
||||
pet.requestDelete()
|
||||
def deleted(task):
|
||||
petProxy.doNotDeallocateChannel = True
|
||||
petProxy.doNotDeallocateChannel = True
|
||||
petProxy.generateWithRequiredAndId(petId, self.air.districtId, self.zoneId)
|
||||
petProxy.broadcastDominantMood()
|
||||
self.pets[toonId] = petProxy
|
||||
return task.done
|
||||
|
||||
|
||||
self.acceptOnce(self.air.getAvatarExitEvent(petId),
|
||||
lambda: taskMgr.doMethodLater(0,
|
||||
deleted, self.uniqueName('petdel-%d' % petId)))
|
||||
|
||||
else:
|
||||
self.notify.warning('error generating petProxy: %s' % petId)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ notify = directNotify.newCategory('SkyUtil')
|
|||
def cloudSkyTrack(task):
|
||||
task.h += globalClock.getDt() * 0.25
|
||||
if task.cloud1.isEmpty() or task.cloud2.isEmpty():
|
||||
notify.warning("Couln't find clouds!")
|
||||
notify.warning("Couldn't find clouds!")
|
||||
return Task.done
|
||||
|
||||
task.cloud1.setH(task.h)
|
||||
|
@ -34,4 +34,4 @@ def startCloudSky(hood, parent=camera, effects=CompassEffect.PRot | CompassEffec
|
|||
if not skyTrackTask.cloud1.isEmpty() and not skyTrackTask.cloud2.isEmpty():
|
||||
taskMgr.add(skyTrackTask, 'skyTrack')
|
||||
else:
|
||||
notify.warning("Couln't find clouds!")
|
||||
notify.warning("Couldn't find clouds!")
|
||||
|
|
Loading…
Reference in a new issue