From: Christian Heller Date: Wed, 9 Dec 2020 05:50:11 +0000 (+0100) Subject: Also show unworn hats' design. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7Bprefix%7D%7D/ledger2?a=commitdiff_plain;h=9c3aaa1285200c1161c3beaefab464597445daf7;p=plomrogue2 Also show unworn hats' design. --- 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)