summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-13 20:34:09 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-13 20:34:09 +0000
commite89ce29b918844011b3ea96d71b8ed1bb982a7a0 (patch)
treefde03e613a48e6cb8c44b4eeb7bcb4060fb49c9b /crawl-ref/source/initfile.cc
parentd733df05e5309444cb83c028c0515467c87ae4c6 (diff)
downloadcrawl-ref-e89ce29b918844011b3ea96d71b8ed1bb982a7a0.tar.gz
crawl-ref-e89ce29b918844011b3ea96d71b8ed1bb982a7a0.zip
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
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc7
1 files changed, 6 insertions, 1 deletions
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