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 clients, don't open dropping direction menu if not carrying droppable.
[plomrogue2]
/
rogue_chat_curses.py
diff --git
a/rogue_chat_curses.py
b/rogue_chat_curses.py
index 657523fbcf3257aca52daaa749a8ad880ed8906f..2d51ce8a7b4b7d07fa7fed786975abead99af7c5 100755
(executable)
--- a/
rogue_chat_curses.py
+++ b/
rogue_chat_curses.py
@@
-635,6
+635,12
@@
class TUI:
self.flash = True
self.switch_mode('play')
return
self.flash = True
self.switch_mode('play')
return
+ if mode_name == 'drop_thing' and\
+ not (hasattr(player, 'carrying' or player.carrying)):
+ self.log_msg('? not carrying anything droppable')
+ self.flash = True
+ self.switch_mode('play')
+ return
if mode_name == 'admin_enter' and self.is_admin:
mode_name = 'admin'
elif mode_name in {'name_thing', 'admin_thing_protect'}:
if mode_name == 'admin_enter' and self.is_admin:
mode_name = 'admin'
elif mode_name in {'name_thing', 'admin_thing_protect'}: