home · contact · privacy
Remove unnecessary looping.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 5 Dec 2020 01:55:59 +0000 (02:55 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 5 Dec 2020 01:55:59 +0000 (02:55 +0100)
plomrogue/things.py

index 9edfa68ca85871557aeb396075c37ed68475011d..3b00d1fd79b86c183f04f21f9b3d4a965f5f575f 100644 (file)
@@ -313,6 +313,7 @@ class ThingAnimate(Thing):
                 if self.game.sessions[c_id]['thing_id'] == self.id_:
                     self.game.io.send('DEFAULT_COLORS', c_id)
                     self.game.io.send('CHAT "You sober up."', c_id)
+                    break
             self.game.changed = True
         self._fov = None
         if self.task is None: