toon: add astron support checks to some code
This commit is contained in:
parent
5447ed529c
commit
6311095365
|
|
@ -229,6 +229,7 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
||||||
if self.WantOldGMNameBan:
|
if self.WantOldGMNameBan:
|
||||||
self._checkOldGMName()
|
self._checkOldGMName()
|
||||||
messenger.send('avatarEntered', [self])
|
messenger.send('avatarEntered', [self])
|
||||||
|
if config.GetBool('astron-support', True):
|
||||||
self.sendUpdate('setDefaultShard', [self.air.districtId])
|
self.sendUpdate('setDefaultShard', [self.air.districtId])
|
||||||
if hasattr(self, 'gameAccess') and self.gameAccess != 2:
|
if hasattr(self, 'gameAccess') and self.gameAccess != 2:
|
||||||
if self.hat[0] != 0:
|
if self.hat[0] != 0:
|
||||||
|
|
@ -249,6 +250,7 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
||||||
self.b_setShoes(0, 0, 0)
|
self.b_setShoes(0, 0, 0)
|
||||||
self.startPing()
|
self.startPing()
|
||||||
|
|
||||||
|
if config.GetBool('astron-support', True):
|
||||||
def setLocation(self, parentId, zoneId):
|
def setLocation(self, parentId, zoneId):
|
||||||
DistributedPlayerAI.DistributedPlayerAI.setLocation(self, parentId, zoneId)
|
DistributedPlayerAI.DistributedPlayerAI.setLocation(self, parentId, zoneId)
|
||||||
if self.isPlayerControlled():
|
if self.isPlayerControlled():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue