From e89ce29b918844011b3ea96d71b8ed1bb982a7a0 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 13 Sep 2007 20:34:09 +0000 Subject: Add trap_item_brand that behaves like stair_item_brand. Defaults to 'none'. (FR 1793669) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2083 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/initfile.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/initfile.cc') diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 7aee2eaa4c..8c49fd5a9c 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -719,7 +719,8 @@ void game_options::reset_options() stab_brand = CHATTR_NORMAL; may_stab_brand = CHATTR_NORMAL; stair_item_brand = CHATTR_REVERSE; - + trap_item_brand = CHATTR_NORMAL; + no_dark_brand = true; #ifdef WIZARD @@ -1791,6 +1792,10 @@ void game_options::read_option_line(const std::string &str, bool runscript) { stair_item_brand = curses_attribute(field); } + else if (key == "trap_item_brand") + { + trap_item_brand = curses_attribute(field); + } else if (key == "no_dark_brand") { // This is useful for terms where dark grey does -- cgit v1.2.3-54-g00ecf