summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-18 14:57:52 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-18 14:57:52 +0000
commit564115dd01a10153ad421df67b1b008fe514cf0c (patch)
tree6eed91aab5f04e09745bb9de14bc9ab3ef98f281 /crawl-ref/source/hiscores.cc
parentacb58afeec9184c1910f705da7bae843b9fc14a8 (diff)
downloadcrawl-ref-564115dd01a10153ad421df67b1b008fe514cf0c.tar.gz
crawl-ref-564115dd01a10153ad421df67b1b008fe514cf0c.zip
Show place as "Sewer" in the HUD and in character dumps for the sewer portal vaults (portal vault entry marker's dst field is used as the name). Portal vault entrance is replaced with stone arch on use.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7474 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index 65e2151cb9..5a8b5ebf48 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -663,9 +663,16 @@ void scorefile_entry::set_base_xlog_fields() const
skill_title( best_skill, best_skill_lvl,
race, str, dex, god ).c_str() );
+ // "place" is a human readable place name, and it is write-only,
+ // so we can write place names like "Bazaar" that Crawl cannot
+ // translate back. This does have the unfortunate side-effect that
+ // Crawl will not preserve the "place" field in the highscores file.
fields->add_field("place", "%s",
place_name(get_packed_place(branch, dlvl, level_type),
false, true).c_str());
+
+ // Note: "br", "lvl" and "ltyp" are saved in canonical names that
+ // can be read back by future versions of Crawl.
fields->add_field("br", "%s", _short_branch_name(branch));
fields->add_field("lvl", "%d", dlvl);
fields->add_field("ltyp", "%s", level_area_type_name(level_type));