fixed handling of stun state manual over ride.
Fixed bug where angry face is also stun
This commit is contained in:
parent
faa5b66587
commit
44ed1f0860
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class StateSingleton:
|
|||
cls._instance.states = {
|
||||
0: "open",
|
||||
1: "blink",
|
||||
2: "owo",
|
||||
2: "stun",
|
||||
3: "angry"}
|
||||
cls._instance.matrix = False
|
||||
cls._instance.current_expression = cls._instance.states[0]
|
||||
|
@ -90,7 +90,7 @@ class StateSingleton:
|
|||
elif self.current_expression == self.desired_expression == self.states[2]:
|
||||
self.matrix.SwapOnVSync(self.stun_animation_FrameCanvases[10])
|
||||
|
||||
elif self.current_expression == self.states[3] or self.desired_expression == self.states[3]:
|
||||
elif self.current_expression == self.states[2] or self.desired_expression == self.states[2]:
|
||||
self.matrix.SwapOnVSync(self.stun_animation_FrameCanvases[self.transition_count])
|
||||
|
||||
# angry faces
|
||||
|
|
Loading…
Reference in a new issue