mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Clear chat on zone ID change
This commit is contained in:
parent
6a5d16b054
commit
5b3e475c78
1 changed files with 5 additions and 0 deletions
|
@ -179,11 +179,16 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
||||||
if not isinstance(self, DistributedNPCToonBaseAI):
|
if not isinstance(self, DistributedNPCToonBaseAI):
|
||||||
self.sendUpdate('setDefaultShard', [self.air.districtId])
|
self.sendUpdate('setDefaultShard', [self.air.districtId])
|
||||||
|
|
||||||
|
def clearChat(self):
|
||||||
|
self.sendUpdate('setTalk', ['.'])
|
||||||
|
|
||||||
def setLocation(self, parentId, zoneId):
|
def setLocation(self, parentId, zoneId):
|
||||||
DistributedPlayerAI.DistributedPlayerAI.setLocation(self, parentId, zoneId)
|
DistributedPlayerAI.DistributedPlayerAI.setLocation(self, parentId, zoneId)
|
||||||
|
|
||||||
from toontown.toon.DistributedNPCToonBaseAI import DistributedNPCToonBaseAI
|
from toontown.toon.DistributedNPCToonBaseAI import DistributedNPCToonBaseAI
|
||||||
if not isinstance(self, DistributedNPCToonBaseAI):
|
if not isinstance(self, DistributedNPCToonBaseAI):
|
||||||
|
self.clearChat()
|
||||||
|
|
||||||
if 100 <= zoneId < ToontownGlobals.DynamicZonesBegin:
|
if 100 <= zoneId < ToontownGlobals.DynamicZonesBegin:
|
||||||
hood = ZoneUtil.getHoodId(zoneId)
|
hood = ZoneUtil.getHoodId(zoneId)
|
||||||
self.b_setLastHood(hood)
|
self.b_setLastHood(hood)
|
||||||
|
|
Loading…
Reference in a new issue