classicchars: Silence "state not loaded" warnings

This commit is contained in:
Little Cat 2021-07-10 00:41:59 -03:00
parent 44a1822f42
commit 8e270e4acb
No known key found for this signature in database
GPG key ID: 68CC2B4D0E5AF41C
2 changed files with 4 additions and 0 deletions

View file

@ -15,6 +15,7 @@ class CharNeutralState(StateData.StateData):
StateData.StateData.__init__(self, doneEvent) StateData.StateData.__init__(self, doneEvent)
self.__doneEvent = doneEvent self.__doneEvent = doneEvent
self.character = character self.character = character
StateData.StateData.load(self)
def enter(self, startTrack = None, playRate = None): def enter(self, startTrack = None, playRate = None):
StateData.StateData.enter(self) StateData.StateData.enter(self)
@ -56,6 +57,7 @@ class CharWalkState(StateData.StateData):
self.oldOffsetX = 0 self.oldOffsetX = 0
self.olfOffsetY = 0 self.olfOffsetY = 0
self.walkTrack = None self.walkTrack = None
StateData.StateData.load(self)
return return
def enter(self, startTrack = None, playRate = None): def enter(self, startTrack = None, playRate = None):

View file

@ -15,6 +15,7 @@ class CharLonelyStateAI(StateData.StateData):
StateData.StateData.__init__(self, doneEvent) StateData.StateData.__init__(self, doneEvent)
self.__doneEvent = doneEvent self.__doneEvent = doneEvent
self.character = character self.character = character
StateData.StateData.load(self)
def enter(self): def enter(self):
if hasattr(self.character, 'name'): if hasattr(self.character, 'name'):
@ -51,6 +52,7 @@ class CharChattyStateAI(StateData.StateData):
self.nextChatTime = 0 self.nextChatTime = 0
self.lastMessage = [ self.lastMessage = [
-1, -1] -1, -1]
StateData.StateData.load(self)
def enter(self): def enter(self):
if hasattr(self.character, 'name'): if hasattr(self.character, 'name'):