summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/externs.h88
-rw-r--r--crawl-ref/source/item_use.cc2
-rw-r--r--crawl-ref/source/libgui.cc6
-rw-r--r--crawl-ref/source/tile1.cc2
4 files changed, 50 insertions, 48 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index 8e88d1e462..d4a8776cc2 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -1558,79 +1558,79 @@ public:
bool autoprayer_on;
bool show_more_prompt;
- bool show_turns; // Show turns used in HUD.
- bool show_beam; // Show targeting beam by default.
+ bool show_turns; // Show turns used in HUD.
+ bool show_beam; // Show targeting beam by default.
- long autopickups; // items to autopickup
+ long autopickups; // items to autopickup
bool show_inventory_weights; // show weights in inventory listings
- bool colour_map; // add colour to the map
- bool clean_map; // remove unseen clouds/monsters
- bool show_uncursed; // label known uncursed items as "uncursed"
- bool easy_open; // open doors with movement
- bool easy_unequip; // allow auto-removing of armour / jewellery
- bool easy_butcher; // autoswap to butchering tool
- bool always_confirm_butcher; // even if only one corpse
- bool list_rotten; // list slots for rotting corpses/chunks
- bool default_target; // start targeting on a real target
- bool autopickup_no_burden; // don't autopickup if it changes burden
- bool note_all_skill_levels; // take note for all skill levels (1-27)
+ bool colour_map; // add colour to the map
+ bool clean_map; // remove unseen clouds/monsters
+ bool show_uncursed; // label known uncursed items as "uncursed"
+ bool easy_open; // open doors with movement
+ bool easy_unequip; // allow auto-removing of armour / jewellery
+ bool easy_butcher; // autoswap to butchering tool
+ bool always_confirm_butcher; // even if only one corpse
+ bool list_rotten; // list slots for rotting corpses/chunks
+ bool default_target; // start targeting on a real target
+ bool autopickup_no_burden; // don't autopickup if it changes burden
+ bool note_all_skill_levels; // take note for all skill levels (1-27)
bool note_skill_max; // take note when skills reach new max
bool note_all_spells; // take note when learning any spell
std::string user_note_prefix;// Prefix for user notes
int note_hp_percent; // percentage hp for notetaking
int ood_interesting; // how many levels OOD is noteworthy?
- int easy_confirm; // make yesno() confirming easier
+ int easy_confirm; // make yesno() confirming easier
int easy_quit_item_prompts; // make item prompts quitable on space
- int colour[16]; // macro fg colours to other colours
- int background; // select default background colour
+ int colour[16]; // macro fg colours to other colours
+ int background; // select default background colour
int channels[NUM_MESSAGE_CHANNELS]; // msg channel colouring
- int weapon; // auto-choose weapon for character
- int book; // auto-choose book for character
- int chaos_knight; // choice of god for Chaos Knights (Xom/Makleb)
- int death_knight; // choice of god/necromancy for Death Knights
- god_type priest; // choice of god for priests (Zin/Yred)
- bool random_pick; // randomly generate character
- int hp_warning; // percentage hp for danger warning
+ int weapon; // auto-choose weapon for character
+ int book; // auto-choose book for character
+ int chaos_knight; // choice of god for Chaos Knights (Xom/Makleb)
+ int death_knight; // choice of god/necromancy for Death Knights
+ god_type priest; // choice of god for priests (Zin/Yred)
+ bool random_pick; // randomly generate character
+ int hp_warning; // percentage hp for danger warning
int magic_point_warning; // percentage mp for danger warning
- char race; // preselected race
- char cls; // preselected class
- bool delay_message_clear; // avoid clearing messages each turn
- unsigned friend_brand; // Attribute for branding friendly monsters
- bool no_dark_brand; // Attribute for branding friendly monsters
- bool macro_meta_entry; // Allow user to use numeric sequences when
- // creating macros
+ char race; // preselected race
+ char cls; // preselected class
+ bool delay_message_clear; // avoid clearing messages each turn
+ unsigned friend_brand; // Attribute for branding friendly monsters
+ bool no_dark_brand; // Attribute for branding friendly monsters
+ bool macro_meta_entry;// Allow user to use numeric sequences when
+ // creating macros
- int fire_items_start; // index of first item for fire command
- std::vector<unsigned> fire_order; // missile search order for 'f' command
+ int fire_items_start;// index of first item for fire command
+ std::vector<unsigned> fire_order; // missile search order for 'f' command
- bool auto_list; // automatically jump to appropriate item lists
+ bool auto_list; // automatically jump to appropriate item lists
bool flush_input[NUM_FLUSH_REASONS]; // when to flush input buff
char_set_type char_set;
FixedVector<unsigned, NUM_DCHAR_TYPES> char_table;
- int num_colours; // used for setting up curses colour table (8 or 16)
+ int num_colours; // used for setting up curses colour table (8 or 16)
#ifdef WIZARD
- int wiz_mode; // yes, no, never in wiz mode to start
+ int wiz_mode; // yes, no, never in wiz mode to start
#endif
// internal use only:
- int sc_entries; // # of score entries
- int sc_format; // Format for score entries
+ int sc_entries; // # of score entries
+ int sc_format; // Format for score entries
std::vector<std::pair<int, int> > hp_colour;
std::vector<std::pair<int, int> > mp_colour;
- std::string map_file_name; // name of mapping file to use
+ std::string map_file_name; // name of mapping file to use
std::vector<text_pattern> never_pickup; // Objects we'll never pick up
std::vector<text_pattern> always_pickup; // Stuff we always pick up
std::vector<text_pattern> note_monsters; // Interesting monsters
std::vector<text_pattern> note_messages; // Interesting messages
std::vector<std::pair<text_pattern, std::string> > autoinscriptions;
- std::vector<text_pattern> note_items; // Objects to note
- std::vector<int> note_skill_levels; // Skill levels to note
+ std::vector<text_pattern> note_items; // Objects to note
+ std::vector<int> note_skill_levels; // Skill levels to note
bool pickup_thrown; // Pickup thrown missiles
bool pickup_dropped; // Pickup dropped objects
@@ -1689,7 +1689,7 @@ public:
std::vector<menu_sort_condition> sort_menus;
- int dump_kill_places; // How to dump place information for kills.
+ int dump_kill_places; // How to dump place information for kills.
int dump_message_count; // How many old messages to dump
int dump_item_origins; // Show where items came from?
@@ -1746,8 +1746,8 @@ public:
#endif // WIZARD
#ifdef USE_TILE
- char show_items[20];
- bool title_screen;
+ char show_items[20]; // show which item types in tile inventory
+ bool title_screen; // display title screen?
// minimap colours
char tile_player_col;
char tile_monster_col;
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 30e53c6cc1..c539355529 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -209,7 +209,7 @@ bool wield_weapon(bool auto_wield, int slot, bool show_weff_messages)
// If the swap slot has a bad (but valid) item in it,
// the swap will be to bare hands.
- const bool good_swap = item_slot == PROMPT_GOT_SPECIAL
+ const bool good_swap = (item_slot == PROMPT_GOT_SPECIAL)
|| you.inv[item_slot].base_type == OBJ_WEAPONS
|| you.inv[item_slot].base_type == OBJ_STAVES
|| (you.inv[item_slot].base_type == OBJ_MISCELLANY
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc
index 6f064957a4..d78607a955 100644
--- a/crawl-ref/source/libgui.cc
+++ b/crawl-ref/source/libgui.cc
@@ -355,7 +355,7 @@ void GmapUpdate(int x, int y, int what, bool upd_tile)
int c;
if (x == you.x_pos && y == you.y_pos)
- c = Options.tile_player_col; // player position always in white
+ c = Options.tile_player_col; // player position always highlighted
else if (mgrd[x][y] != NON_MONSTER && mons_friendly(&menv[mgrd[x][y]])
&& upd_tile)
{
@@ -1276,8 +1276,8 @@ static int handle_mouse_motion(int mouse_x, int mouse_y, bool init)
desc += EOL "[L-Click] Pick up (g)";
if (mitm[ix].base_type == OBJ_CORPSES
- && you.inv[ix].sub_type != CORPSE_SKELETON
- && !food_is_rotten(you.inv[ix]))
+ && mitm[ix].sub_type != CORPSE_SKELETON
+ && !food_is_rotten(mitm[ix]))
{
desc += EOL "[Shift-L-Click] Dissect (D)";
diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc
index dfebea3178..b2a86fd705 100644
--- a/crawl-ref/source/tile1.cc
+++ b/crawl-ref/source/tile1.cc
@@ -72,6 +72,8 @@ int tileidx_monster_base(int mon_idx, bool detected)
bool in_water = (grid == DNGN_SHALLOW_WATER || grid == DNGN_DEEP_WATER);
int type = mon->type;
+
+ // show only base class for detected monsters
if (detected)
type = mons_genus(type);