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.html
diff --git
a/rogue_chat.html
b/rogue_chat.html
index 9d5eddf47c8a44e3147185daefa322d582bd1435..1c1fd1a125ddce134471b3cfb8432726e6a6e2ca 100644
(file)
--- a/
rogue_chat.html
+++ b/
rogue_chat.html
@@
-770,6
+770,12
@@
let tui = {
this.switch_mode('play');
return;
};
this.switch_mode('play');
return;
};
+ if (mode_name == 'drop_thing' && (!player.carrying)) {
+ this.log_msg('? not carrying anything droppable');
+ terminal.blink_screen();
+ this.switch_mode('play');
+ return;
+ }
if (mode_name == 'admin_enter' && this.is_admin) {
mode_name = 'admin';
} else if (['name_thing', 'admin_thing_protect'].includes(mode_name)) {
if (mode_name == 'admin_enter' && this.is_admin) {
mode_name = 'admin';
} else if (['name_thing', 'admin_thing_protect'].includes(mode_name)) {