ai: welcome valley actually works fine

This commit is contained in:
John Cote 2019-12-05 21:48:28 -05:00
parent 9fb9a3b94a
commit 2073f67040

View file

@ -25,7 +25,7 @@ class WelcomeValleyManagerAI(DistributedObjectAI):
if ZoneUtil.isWelcomeValley(zoneId) and not inWelcomeValley:
self.air.districtStats.b_setNewAvatarCount(self.air.districtStats.getNewAvatarCount() + 1)
self.accept(event, lambda newZoneId, _: self.toonSetZone(doId, newZoneId))
self.accept(self.air.getAvatarExitEvent(doId), self.toonSetZone, extraArgs=[doId, 123])
self.accept(self.air.getAvatarExitEvent(doId), self.toonSetZone, extraArgs=[doId, 2000])
elif (not ZoneUtil.isWelcomeValley(zoneId)) and inWelcomeValley:
self.air.districtStats.b_setNewAvatarCount(self.air.districtStats.getNewAvatarCount() - 1)
self.ignore(event)