X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;f=plomrogue%2Ftasks.py;h=ef5fc5cda730be8c60d8b33f1c67252ddc4136ed;hb=534f93bc6b5d46e282401c9698430f660b149fd6;hp=edfc3d10efddbd1fc4a9d95031b3fd8ea4101aca;hpb=54d8db95b3bb690b712ec09179922829d0c68a54;p=plomrogue2 diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index edfc3d1..ef5fc5c 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -103,7 +103,6 @@ class Task_PICK_UP(Task): to_pick_up = self.thing.game.get_thing(self.args[0]) to_pick_up.position = self.thing.position[:] self.thing.carrying = to_pick_up - #self.thing.game.changed_fovs = True @@ -125,15 +124,16 @@ class Task_DROP(Task): and t.position == self.thing.position]: t.accept() self.thing.game.things.remove(self.thing.carrying) + self.thing.game.changed_fovs = True break elif self.thing.carrying.type_ == 'Hat': for t in [t for t in self.thing.game.things if t.type_ == 'HatRemixer' and t.position == self.thing.position]: t.accept(self.thing.carrying) + self.thing.game.changed_fovs = True break self.thing.carrying = None - #self.thing.game.changed_fovs = True @@ -238,6 +238,7 @@ class Task_WEAR(Task): t.design = self.thing.game.hats[self.thing.name] del self.thing.game.hats[self.thing.name] self.thing.send_msg('CHAT "You drop your hat."') + self.game.changed_fovs = True # thing addition for remixer in [t for t in self.thing.game.things if t.type_ == 'HatRemixer' and t.position == self.thing.position]: