From 9b909453a2e070df3ac33277d0a7f07deb6e9132 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 27 Jul 2007 17:26:00 +0000 Subject: 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 --- crawl-ref/source/files.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/files.cc') 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, -- cgit v1.2.3-54-g00ecf