home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In hat and face edit, use existing value as default input.
[plomrogue2]
/
rogue_chat_curses.py
diff --git
a/rogue_chat_curses.py
b/rogue_chat_curses.py
index 9519a95609a82ba0f9a0fd4f7d7bca95999f756e..41ad640d509a123774d47033e182156d664af583 100755
(executable)
--- a/
rogue_chat_curses.py
+++ b/
rogue_chat_curses.py
@@
-652,6
+652,10
@@
class TUI:
elif self.mode.name == 'admin_thing_protect':
if hasattr(self.thing_selected, 'protection'):
self.input_ = self.thing_selected.protection
elif self.mode.name == 'admin_thing_protect':
if hasattr(self.thing_selected, 'protection'):
self.input_ = self.thing_selected.protection
+ elif self.mode.name == 'enter_face':
+ self.input_ = self.game.player.face
+ elif self.mode.name == 'enter_hat':
+ self.input_ = self.game.player.hat
def send_tile_control_command(self):
self.send('SET_TILE_CONTROL %s %s' %
def send_tile_control_command(self):
self.send('SET_TILE_CONTROL %s %s' %