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-11-20 00:14:41 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-20 00:14:41 +0000
commit10088136800dfcdaa0fcbc07a8232bc8170eaa05 (patch)
tree0dcb14e24cb544995d0283f56737d0186f9347a9 /crawl-ref/source/initfile.cc
parent9cce2935d8da7147bebe3d4aeb4a4283b779f798 (diff)
downloadcrawl-ref-10088136800dfcdaa0fcbc07a8232bc8170eaa05.tar.gz
crawl-ref-10088136800dfcdaa0fcbc07a8232bc8170eaa05.zip
Clean-up of options in init.txt and crawl_options.txt
courtesy of maiermirk (1829976, 1831190). This includes a lot of spacing changes, updates of some examples and moving around some options into more sensible groupings. Highlights: * add returning weapons to fire_order list and allow fire_order to use += on new lines (This should solve the second part of 1829475.) * heap_brand now defaults to "reverse" * detected_item_colour defaults to green Also s/artifact/artefact. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2874 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc20
1 files changed, 12 insertions, 8 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index e52f81bd13..31a3aff78a 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -275,6 +275,8 @@ static fire_type str_to_fire_types( const std::string &str )
return (FIRE_JAVELIN);
else if (str == "net")
return (FIRE_NET);
+ else if (str == "return" || str == "returning")
+ return (FIRE_RETURNING);
return (FIRE_NONE);
}
@@ -642,7 +644,7 @@ void game_options::reset_options()
item_colour = true;
// [ds] Default to jazzy colours.
- detected_item_colour = LIGHTGREEN;
+ detected_item_colour = GREEN;
detected_monster_colour= LIGHTRED;
classic_item_colours = false;
@@ -698,8 +700,9 @@ void game_options::reset_options()
fire_items_start = 2; // start at slot 'c'
// Clear fire_order and set up the defaults.
- set_fire_order("launcher, "
- "javelin / dart / stone / rock / spear / net / handaxe");
+ set_fire_order("launcher, return, "
+ "javelin / dart / stone / rock / spear / net / handaxe",
+ false);
item_stack_summary_minimum = 5;
@@ -717,16 +720,16 @@ void game_options::reset_options()
sc_format = -1;
friend_brand = CHATTR_NORMAL;
- heap_brand = CHATTR_NORMAL;
stab_brand = CHATTR_NORMAL;
may_stab_brand = CHATTR_NORMAL;
+ heap_brand = CHATTR_REVERSE;
stair_item_brand = CHATTR_REVERSE;
trap_item_brand = CHATTR_NORMAL;
no_dark_brand = true;
#ifdef WIZARD
- wiz_mode = WIZ_NO;
+ wiz_mode = WIZ_NO;
#endif
// map each colour to itself as default
@@ -821,9 +824,10 @@ static unsigned read_symbol(std::string s)
return (strtoul(s.c_str(), &tail, base));
}
-void game_options::set_fire_order(const std::string &s)
+void game_options::set_fire_order(const std::string &s, bool add)
{
- fire_order.clear();
+ if (!add)
+ fire_order.clear();
std::vector<std::string> slots = split_string(",", s);
for (int i = 0, size = slots.size(); i < size; ++i)
add_fire_order_slot(slots[i]);
@@ -1866,7 +1870,7 @@ void game_options::read_option_line(const std::string &str, bool runscript)
}
else if (key == "fire_order")
{
- set_fire_order(field);
+ set_fire_order(field, plus_equal);
}
else if (key == "random_pick")
{