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>2008-06-25 22:14:02 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-25 22:14:02 +0000
commit3037e46604dbd1416349dc83c0621f3015bbd013 (patch)
tree32121afc9d62d6f941ef48c436e8ad1dbf9ffdc1 /crawl-ref/source/initfile.cc
parent50f0339056d716c5c6d8b785b1272dd7b5bd5065 (diff)
downloadcrawl-ref-3037e46604dbd1416349dc83c0621f3015bbd013.tar.gz
crawl-ref-3037e46604dbd1416349dc83c0621f3015bbd013.zip
Apply a patch by Rob Grant (spoondrift) that enables all combinations of
species/class except those that are outright impossible (because of god restrictions). When choosing a character, you can pick any random character or one of the recommended combinations. This does not take (un)restricted choices for weapons/books/gods into account. Apart from that, it's pretty good, though we might want to (un)restrict some combinations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6142 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 9891bf14ad..d759d130d2 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -456,6 +456,7 @@ void game_options::reset_startup_options()
weapon = WPN_UNKNOWN;
book = SBT_NO_SELECTION;
random_pick = false;
+ good_random = true;
chaos_knight = GOD_NO_GOD;
death_knight = DK_NO_SELECTION;
priest = GOD_NO_GOD;
@@ -2091,6 +2092,7 @@ void game_options::read_option_line(const std::string &str, bool runscript)
}
BOOL_OPTION(random_pick);
+ else BOOL_OPTION(good_random);
else BOOL_OPTION(remember_name);
#ifndef SAVE_DIR_PATH
else if (key == "save_dir")