diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-04-14 13:45:54 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-04-14 13:45:54 +0000 |
commit | 1a77b01a78a408b54ef709cb6df0d07893843c78 (patch) | |
tree | ff5ddd836e604df3ede494243547db6bf201b5d9 | |
parent | c19e0511e06054dcbe9b1ac536e55740500167f2 (diff) | |
download | plus-1a77b01a78a408b54ef709cb6df0d07893843c78.tar.gz plus-1a77b01a78a408b54ef709cb6df0d07893843c78.tar.bz2 plus-1a77b01a78a408b54ef709cb6df0d07893843c78.tar.xz plus-1a77b01a78a408b54ef709cb6df0d07893843c78.zip |
Show monster info for all, not just GMs
Tested on classic & ML
See merge request mana/plus!75
****
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index f4d123cb4..be44210a8 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -415,15 +415,12 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) // TRANSLATORS: popup menu item // TRANSLATORS: add monster to ignore list _("Add to ignore list")); - if (isAllowCommand(ServerCommandType::mobinfo)) - { - mBrowserBox->addRow("/monsterinfo 'BEINGSUBTYPEID'", - // TRANSLATORS: popup menu item - // TRANSLATORS: show monster info - _("Monster info")); - } } } + mBrowserBox->addRow("/monsterinfo 'BEINGSUBTYPEID'", + // TRANSLATORS: popup menu item + // TRANSLATORS: show monster info + _("Show monster info (in chat)")); break; } @@ -3335,13 +3332,6 @@ void PopupMenu::showMonsterGMCommands() _("Disguise")); } mBrowserBox->addSeparator("##3---"); - if (isAllowCommand(ServerCommandType::mobinfo)) - { - mBrowserBox->addRow("/monsterinfo 'BEINGSUBTYPEID'", - // TRANSLATORS: popup menu item - // TRANSLATORS: show monster information - _("Info")); - } if (isAllowCommand(ServerCommandType::mobsearch)) { mBrowserBox->addRow("/mobsearch 'BEINGSUBTYPEID'", |