summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-27 17:26:00 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-27 17:26:00 +0000
commit9b909453a2e070df3ac33277d0a7f07deb6e9132 (patch)
tree531e033aec96fd1e97e797659a3d8790daad5eae /crawl-ref/source/files.cc
parente3698852a27d5565ba1381bd600776f5080ab9c9 (diff)
downloadcrawl-ref-9b909453a2e070df3ac33277d0a7f07deb6e9132.tar.gz
crawl-ref-9b909453a2e070df3ac33277d0a7f07deb6e9132.zip
Reworked Bazaars as a special case of portal vaults. The level-type is now
called portal vault. The dungeon builder bases its behaviour on the level_type_name, which must be set as the "dst" property on the portal leading to the bazaar/portal vault. Added WELCOME: directive to .des files to allow maps to specify a welcome message when the player enters the level (only relevant to encompass maps). Readjusted kenku flight speed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1941 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index e7e6762ec2..437ea5b389 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -554,8 +554,8 @@ static std::string get_level_suffix(int level, branch_type where,
return ("abs");
case LEVEL_PANDEMONIUM:
return ("pan");
- case LEVEL_BAZAAR:
- return ("bzr");
+ case LEVEL_PORTAL_VAULT:
+ return ("ptl");
}
}
@@ -704,11 +704,11 @@ static void place_player_on_stair(branch_type old_branch, int stair_taken)
// when entering a hell or pandemonium
stair_taken = DNGN_STONE_STAIRS_UP_I;
}
- else if (stair_taken == DNGN_ENTER_BAZAAR)
+ else if (stair_taken == DNGN_ENTER_PORTAL_VAULT)
{
stair_taken = DNGN_STONE_ARCH;
}
- else if (stair_taken == DNGN_EXIT_BAZAAR)
+ else if (stair_taken == DNGN_EXIT_PORTAL_VAULT)
{
stair_taken = DNGN_STONE_STAIRS_DOWN_I;
}
@@ -935,6 +935,9 @@ bool load( dungeon_feature_type stair_taken, load_mode_type load_mode,
// Things to update for player entering level
if (load_mode == LOAD_ENTER_LEVEL)
{
+ if (just_created_level)
+ level_welcome_messages();
+
// Activate markers that want activating, but only when
// entering a new level in an existing game. If we're starting
// a new game, or reloading an existing game,