home · contact · privacy
Spawn hats from BottleDeposit, add HatRemixer.
[plomrogue2] / plomrogue / game.py
index 0fc486796232a1e5c95f102847e5ea59147eb2ba..5e206b9c8c289155a59aa7700dd9306ea4e05e79 100755 (executable)
@@ -403,6 +403,9 @@ class Game(GameBase):
                     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_ == 'Hat':
+                    write(f, 'THING_HAT_DESIGN %s %s' % (t.id_,
+                                                         quote(t.design)))
                 elif t.type_ == 'MusicPlayer':
                     write(f, 'THING_MUSICPLAYER_SETTINGS %s %s %s %s' %
                           (t.id_, int(t.playing), t.playlist_index, int(t.repeat)))