|
@@ -299,7 +299,7 @@ class DistributedObjectAI(DistributedObjectBase):
|
|
|
# setLocation destroys self._zoneData if we move away to
|
|
# setLocation destroys self._zoneData if we move away to
|
|
|
# a different zone
|
|
# a different zone
|
|
|
if self._zoneData is None:
|
|
if self._zoneData is None:
|
|
|
- from otp.ai.AIZoneData import AIZoneData # type: ignore[import]
|
|
|
|
|
|
|
+ from otp.ai.AIZoneData import AIZoneData # type: ignore[import-not-found]
|
|
|
self._zoneData = AIZoneData(self.air, self.parentId, self.zoneId)
|
|
self._zoneData = AIZoneData(self.air, self.parentId, self.zoneId)
|
|
|
return self._zoneData
|
|
return self._zoneData
|
|
|
|
|
|
|
@@ -489,7 +489,7 @@ class DistributedObjectAI(DistributedObjectBase):
|
|
|
# simultaneously on different lists of avatars, although they
|
|
# simultaneously on different lists of avatars, although they
|
|
|
# should have different names.
|
|
# should have different names.
|
|
|
|
|
|
|
|
- from otp.ai import Barrier # type: ignore[import]
|
|
|
|
|
|
|
+ from otp.ai import Barrier # type: ignore[import-not-found]
|
|
|
context = self.__nextBarrierContext
|
|
context = self.__nextBarrierContext
|
|
|
# We assume the context number is passed as a uint16.
|
|
# We assume the context number is passed as a uint16.
|
|
|
self.__nextBarrierContext = (self.__nextBarrierContext + 1) & 0xffff
|
|
self.__nextBarrierContext = (self.__nextBarrierContext + 1) & 0xffff
|