diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-30 14:32:21 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-30 14:32:21 +0000 |
commit | 0e65534b50e40a32611842551af39a089eff48af (patch) | |
tree | bd03973481f7ac07748fc1d15a119d680982f0ac /crawl-ref/source/initfile.cc | |
parent | f69da63b88187593335b68ac29356b561662997c (diff) | |
download | crawl-ref-0e65534b50e40a32611842551af39a089eff48af.tar.gz crawl-ref-0e65534b50e40a32611842551af39a089eff48af.zip |
Enable Chaos Knights of Lugonu starting out in the Abyss.
I've marked these characters with GDT_GAME_START, so that
* the player starts out on an altar to Lugonu
* there's an exit back to the Dungeon near-by
* returning into the Dungeon always places them into the entry vault on
level 1
* no abyssal runes are ever generated
* item generation matches that of level 1
* monster spawn rates are that of the orb run to enforce a quick return
into the Dungeon
Once the player returns to the Dungeon (via an exit or with Lugonu's
first power) char_direction is properly set to GDT_DESCENDING and from
then on the game continues as if they had started in the Dungeon.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6245 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index bbf41a480c..c1c59a9d37 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -1220,16 +1220,17 @@ static void write_newgame_options(FILE *f) if (Options.prev_ck != GOD_NO_GOD) { fprintf(f, "chaos_knight = %s\n", - Options.prev_ck == GOD_XOM? "xom" : - Options.prev_ck == GOD_MAKHLEB? "makhleb" : - "random"); + Options.prev_ck == GOD_XOM ? "xom" : + Options.prev_ck == GOD_MAKHLEB ? "makhleb" : + Options.prev_ck == GOD_LUGONU ? "lugonu" + : "random"); } if (Options.prev_dk != DK_NO_SELECTION) { fprintf(f, "death_knight = %s\n", - Options.prev_dk == DK_NECROMANCY? "necromancy" : - Options.prev_dk == DK_YREDELEMNUL? "yredelemnul" : - "random"); + Options.prev_dk == DK_NECROMANCY ? "necromancy" : + Options.prev_dk == DK_YREDELEMNUL ? "yredelemnul" + : "random"); } if (is_priest_god(Options.prev_pr) || Options.prev_pr == GOD_RANDOM) { @@ -2035,21 +2036,23 @@ void game_options::read_option_line(const std::string &str, bool runscript) else COLOUR_OPTION(status_caption_colour); else if (key == "weapon") { - // choose this weapon for classes that get choice + // Choose this weapon for classes that get choice. weapon = _str_to_weapon( field ); } else if (key == "book") { - // choose this book for classes that get choice + // Choose this book for classes that get choice. book = _str_to_book( field ); } else if (key == "chaos_knight") { - // choose god for Chaos Knights + // Choose god for Chaos Knights. if (field == "xom") chaos_knight = GOD_XOM; else if (field == "makhleb") chaos_knight = GOD_MAKHLEB; + else if (field == "lugonu") + chaos_knight = GOD_LUGONU; else if (field == "random") chaos_knight = GOD_RANDOM; } |