home · contact · privacy
Widen face and hat.
[plomrogue2] / plomrogue / game.py
index 0fc486796232a1e5c95f102847e5ea59147eb2ba..47f09d161ceff332b2e8ad43f086161d9ad75854 100755 (executable)
@@ -206,7 +206,7 @@ class Game(GameBase):
             if t.name in self.faces:
                 return self.faces[t.name]
             else:
-                return 'O O' + ' v ' + '>-<'
+                return '/O  O\\' + '| oo |' + '\\>--</'
         return None
 
     def send_gamestate(self, connection_id=None):
@@ -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)))