diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-12-27 23:04:49 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-12-27 23:04:49 +0100 |
commit | 93ee8381055c315f8342524b593cab9f99efc95b (patch) | |
tree | ae5fd0a7cd42e8de877eb1eb0253fc13492bef2c /crawl-ref/source/tilereg-cmd.cc | |
parent | 87d5b9d76bcb8528a87944f2c3bbcb41a23240c4 (diff) | |
download | crawl-ref-93ee8381055c315f8342524b593cab9f99efc95b.tar.gz crawl-ref-93ee8381055c315f8342524b593cab9f99efc95b.zip |
Add the hit_closest to the command tile tab.
This means that autofight.lua is now loaded by default.
Diffstat (limited to 'crawl-ref/source/tilereg-cmd.cc')
-rw-r--r-- | crawl-ref/source/tilereg-cmd.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg-cmd.cc b/crawl-ref/source/tilereg-cmd.cc index 1b08a7313f..bac0c9b1b8 100644 --- a/crawl-ref/source/tilereg-cmd.cc +++ b/crawl-ref/source/tilereg-cmd.cc @@ -84,9 +84,14 @@ bool CommandRegion::update_tip_text(std::string& tip) return (false); const command_type cmd = (command_type) m_items[item_idx].idx; - tip = make_stringf("[L-Click] %s (%%)", + tip = make_stringf("[L-Click] %s", get_command_description(cmd, true).c_str()); - insert_commands(tip, cmd); + + if (command_to_key(cmd) != '\0') + { + tip += " (%)"; + insert_commands(tip, cmd); + } // tip += "\n[R-Click] Describe"; @@ -178,6 +183,9 @@ static const command_type _common_commands[] = { // action commands CMD_REST, CMD_EXPLORE, CMD_INTERLEVEL_TRAVEL, +#ifdef CLUA_BINDINGS + CMD_AUTOFIGHT, +#endif CMD_USE_ABILITY, CMD_PRAY, CMD_SEARCH_STASHES, // informational commands |