fixed handling of stun state manual over ride.

Fixed bug where angry face is also stun
This commit is contained in:
CiscoTheWolf 2023-06-09 20:50:10 +02:00
parent faa5b66587
commit 44ed1f0860

View file

@ -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