diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-09 20:56:52 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-09 20:56:52 +0000 |
commit | 83749c5d2326aa46dd6840866353710d95a8baca (patch) | |
tree | 6e7e672150fbb5c1f2a7dd7247392f1425d7618d /crawl-ref/source/tutorial.cc | |
parent | eff8f68d9b45112f8d68711ebb8e6ab8f3d140f3 (diff) | |
download | crawl-ref-83749c5d2326aa46dd6840866353710d95a8baca.tar.gz crawl-ref-83749c5d2326aa46dd6840866353710d95a8baca.zip |
Fix 2014303: Vampire hunger properties
Fix 2014275: Sif Muna giving manuals
Fix 2013914: Draconians merging incorrectly
Also, at the start of a tutorial game change all secret doors within a
radius of 10 into closed doors, to avoid players encountering a dead-end
really close to the entry. (And yes, I've had that happen.)
Change display of forbidden choices in the character selection menus. It
should now be clearer what's going on.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6463 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r-- | crawl-ref/source/tutorial.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index 1507ade82a..ece23849de 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -262,6 +262,21 @@ static job_type _get_tutorial_job(unsigned int type) } } +// Converts all secret doors in a fixed radius around the player's starting +// position into normal closed doors. +void tutorial_zap_secret_doors() +{ + for (int x = you.x_pos - 10; x <= you.x_pos + 10; x++) + for (int y = you.y_pos - 10; y <= you.y_pos + 10; y++) + { + if (!in_bounds(x,y)) + continue; + + if (grd[x][y] == DNGN_SECRET_DOOR) + grd[x][y] = DNGN_CLOSED_DOOR; + } +} + // Prints the tutorial welcome screen. static formatted_string _tut_starting_info(unsigned int width) { |