diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-19 20:45:51 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-19 20:45:51 +0000 |
commit | c4459f06231f7aaf1a35cdab56c3419dff6073df (patch) | |
tree | 2a2ae01555c3327be22a183cc2bb37d2b926331b /crawl-ref/source/newgame.cc | |
parent | cc5863ffc58f4058d97a392248cef63cf6a4f544 (diff) | |
download | crawl-ref-c4459f06231f7aaf1a35cdab56c3419dff6073df.tar.gz crawl-ref-c4459f06231f7aaf1a35cdab56c3419dff6073df.zip |
Move all tiles for stairs, gates and portals into a new subfolder
dc-dngn/gateways/.
Also prompt for randomly rolled unnamed characters.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10338 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r-- | crawl-ref/source/newgame.cc | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 34c122a86a..2c3b334527 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -1219,6 +1219,28 @@ game_start: strcpy( you.class_name, get_class_name(you.char_class) ); + if (Options.random_pick) + { + // For completely random combinations (!, #, or Options.random_pick) + // reroll characters until the player accepts one of them or quits. + clrscr(); + + std::string specs = species_name(you.species, you.experience_level); + if (specs.length() > 79) + specs = specs.substr(0, 79); + + cprintf( "You are a%s %s %s." EOL, + (is_vowel( specs[0] )) ? "n" : "", specs.c_str(), + you.class_name ); + + cprintf(EOL "Do you want to play this combination? (ynq) [y]"); + char c = getch(); + if (c == ESCAPE || tolower(c) == 'q') + end(0); + if (tolower(c) == 'n') + goto game_start; + } + // New: pick name _after_ race and class choices. if (you.your_name[0] == 0) { @@ -1250,27 +1272,6 @@ game_start: } } } - else if (Options.random_pick) - { - // For completely random combinations (!, #, or Options.random_pick) - // reroll characters until the player accepts one of them or quits. - clrscr(); - - std::string specs = species_name(you.species, you.experience_level); - if (specs.length() > 79) - specs = specs.substr(0, 79); - - cprintf( "You are a%s %s %s." EOL, - (is_vowel( specs[0] )) ? "n" : "", specs.c_str(), - you.class_name ); - - cprintf(EOL "Do you want to play this combination? (ynq) [y]"); - char c = getch(); - if (c == ESCAPE || tolower(c) == 'q') - end(0); - if (tolower(c) == 'n') - goto game_start; - } // ************ Round-out character statistics and such. ************ |