From 9c3aaa1285200c1161c3beaefab464597445daf7 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 9 Dec 2020 06:50:11 +0100 Subject: [PATCH] Also show unworn hats' design. --- plomrogue/game.py | 3 +++ rogue_chat_curses.py | 1 + 2 files changed, 4 insertions(+) diff --git a/plomrogue/game.py b/plomrogue/game.py index 36a7656..31cae6f 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -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)]: diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 8fc2817..6031f8e 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -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) -- 2.30.2