X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.js?a=blobdiff_plain;f=rogue_chat_curses.py;h=2d51ce8a7b4b7d07fa7fed786975abead99af7c5;hb=d524cfceadd9338a18759e8a7ea1db659cd6cbb5;hp=657523fbcf3257aca52daaa749a8ad880ed8906f;hpb=571e36aae0c760cc008ef04c5ab2f7308eefa8f6;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 657523f..2d51ce8 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -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'}: