From: Christian Heller Date: Wed, 9 Dec 2020 01:42:54 +0000 (+0100) Subject: On thing removal, uncarry carried things. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/day?a=commitdiff_plain;h=571e36aae0c760cc008ef04c5ab2f7308eefa8f6;p=plomrogue2 On thing removal, uncarry carried things. --- diff --git a/plomrogue/game.py b/plomrogue/game.py index a57a507..31c9f2f 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -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)