home · contact · privacy
In clients, don't open dropping direction menu if not carrying droppable.
[plomrogue2] / rogue_chat_curses.py
index 657523fbcf3257aca52daaa749a8ad880ed8906f..2d51ce8a7b4b7d07fa7fed786975abead99af7c5 100755 (executable)
@@ -635,6 +635,12 @@ class TUI:
             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'}: