mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Redirect to correct area if player goes sad in a cog battle
This commit is contained in:
parent
d5fec41850
commit
e3a76a4bbf
1 changed files with 3 additions and 6 deletions
|
@ -403,15 +403,12 @@ class DistributedToon(DistributedPlayer.DistributedPlayer, Toon.Toon, Distribute
|
||||||
def setDefaultZone(self, zoneId):
|
def setDefaultZone(self, zoneId):
|
||||||
if zoneId >= 20000 and zoneId < 22000:
|
if zoneId >= 20000 and zoneId < 22000:
|
||||||
zoneId = zoneId + 2000
|
zoneId = zoneId + 2000
|
||||||
try:
|
|
||||||
hoodPhase = base.cr.hoodMgr.getPhaseFromHood(zoneId)
|
|
||||||
except:
|
|
||||||
self.defaultZone = ToontownGlobals.ToontownCentral
|
|
||||||
return
|
|
||||||
|
|
||||||
if ZoneUtil.getCanonicalHoodId(zoneId) == ToontownGlobals.FunnyFarm:
|
if ZoneUtil.getCanonicalHoodId(zoneId) == ToontownGlobals.FunnyFarm:
|
||||||
self.defaultZone = ToontownGlobals.ToontownCentral
|
self.defaultZone = ToontownGlobals.ToontownCentral
|
||||||
return
|
return
|
||||||
|
if self.getHp() <= 0 and zoneId in ToontownGlobals.HQToSafezone:
|
||||||
|
self.defaultZone = ToontownGlobals.HQToSafezone[zoneId]
|
||||||
|
return
|
||||||
self.defaultZone = zoneId
|
self.defaultZone = zoneId
|
||||||
|
|
||||||
def setAsGM(self, state):
|
def setAsGM(self, state):
|
||||||
|
|
Loading…
Reference in a new issue