home · contact · privacy
Save thing installation status.
[plomrogue2] / plomrogue / game.py
index fbfec6e6c5981687e4ba24c41930a82ada1c1a7d..647332452fdd3c94ecbf9e6f9fe0a7fea975dc1f 100755 (executable)
@@ -375,6 +375,8 @@ class Game(GameBase):
                 write(f, 'GOD_THING_PROTECTION %s %s' % (t.id_, quote(t.protection)))
                 if hasattr(t, 'name'):
                     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:
                     write(f, 'THING_DOOR_CLOSED %s' % t.id_)
                 elif t.type_ == 'MusicPlayer':