home · contact · privacy
On thing removal, uncarry carried things.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 9 Dec 2020 01:42:54 +0000 (02:42 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 9 Dec 2020 01:42:54 +0000 (02:42 +0100)
plomrogue/game.py

index a57a507cfc0a1f1d98d677068f60b3fc6772f3bd..31c9f2f61b83f3ceaf50cac640c81417c2e0dcc1 100755 (executable)
@@ -213,6 +213,8 @@ class Game(GameBase):
         return None
 
     def remove_thing(self, t):
+        if t.carrying:
+            t.uncarry()
         self.things.remove(t)
         self.record_fov_change(t.position)