home · contact · privacy
Also show unworn hats' design.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 9 Dec 2020 05:50:11 +0000 (06:50 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 9 Dec 2020 05:50:11 +0000 (06:50 +0100)
plomrogue/game.py
rogue_chat_curses.py

index 36a76561e21870d66d0e250e2d5a6d1b4de02d20..31cae6f2008f510a73046628bef1ee797233af2e 100755 (executable)
@@ -291,6 +291,9 @@ class Game(GameBase):
                                  c_id)
                 if hasattr(t, 'installable') and not t.portable:
                     self.io.send('THING_INSTALLED %s' % (t.id_), c_id)
+                if hasattr(t, 'design'):
+                    self.io.send('THING_HAT %s %s' % (t.id_,
+                                                      quote(t.design)), c_id)
             for big_yx in self.portals:
                 for little_yx in [little_yx for little_yx in self.portals[big_yx]
                                   if player.fov_test(big_yx, little_yx)]:
index 8fc2817cbaf45dd1582a84d83e630f38e2cabb5a..6031f8e2deafc5d599e40f38991c7c4662dc809c 100755 (executable)
@@ -356,6 +356,7 @@ class Game(GameBase):
         self.register_command(cmd_THING_CHAR)
         self.register_command(cmd_THING_FACE)
         self.register_command(cmd_THING_HAT)
+        self.register_command(cmd_THING_DESIGN)
         self.register_command(cmd_THING_CARRYING)
         self.register_command(cmd_THING_INSTALLED)
         self.register_command(cmd_TERRAIN)