X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=plomrogue%2Fgame.py;h=35a610881bed5fea0ce7081d2b6f92bdc2774150;hb=08ec4530a77f65da7bee3fd60a1c8ca6d06b8760;hp=ba7c285c83a1c49d32ae0ca96aafaf869f2ca59c;hpb=e34635f6def56d744a0abbff6fb227b46f9b9d1d;p=plomrogue2 diff --git a/plomrogue/game.py b/plomrogue/game.py index ba7c285..35a6108 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -215,7 +215,7 @@ class Game(GameBase): t.uncarry() self.things.remove(t) self.record_change(t.position, 'other') - if t.blocking: + if t.blocks_light: self.record_change(t.position, 'fov') def add_thing(self, type_, position, id_=0): @@ -228,7 +228,7 @@ class Game(GameBase): else: self.things += [t] self.record_change(t.position, 'other') - if t.blocking: + if t.blocks_light: self.record_change(t.position, 'fov') return t @@ -510,7 +510,7 @@ class Game(GameBase): write(f, 'GOD_THING_NAME %s %s' % (t.id_, quote(t.name))) if hasattr(t, 'installable') and (not t.portable): write(f, 'THING_INSTALLED %s' % t.id_) - if t.type_ == 'Door' and t.blocking: + if t.type_ == 'Door' and t.blocks_movement: write(f, 'THING_DOOR_CLOSED %s' % t.id_) elif t.type_ == 'Hat': write(f, 'THING_HAT_DESIGN %s %s' % (t.id_,