From 7896dbd29bda379c2fb31feeb3b16bda57039c00 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 11 Apr 2008 11:23:33 +0000 Subject: Fix 1937869: Have weapon swapping respect spells the character knows and allow wielding the appropriate items, e.g. arrows for Sticks to Snakes etc. Use the same rules for clicking on items in Tiles. Also add yet another minimap colour option, this time for plants (really zero xp monsters in general) since I became tired of plant-rich vaults showing up in bright red colours. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4195 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/initfile.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/initfile.cc') diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index cf0edbb097..519f5feb15 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -813,6 +813,7 @@ void game_options::reset_options() tile_monster_col = MAP_RED; tile_neutral_col = MAP_RED; tile_friendly_col = MAP_LTRED; + tile_plant_col = MAP_DKGREEN; tile_item_col = MAP_GREEN; tile_unseen_col = MAP_BLACK; tile_floor_col = MAP_LTGREY; @@ -2580,6 +2581,11 @@ void game_options::read_option_line(const std::string &str, bool runscript) tile_friendly_col = _str_to_tile_colour(field); } + else if (key == "tile_plant_col") + { + tile_plant_col = + _str_to_tile_colour(field); + } else if (key == "tile_item_col") { tile_item_col = -- cgit v1.2.3-54-g00ecf