diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-24 05:05:29 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-24 05:05:29 +0000 |
commit | 87b16bb06d3f693ec3f6d727a50bdadf4df5c138 (patch) | |
tree | ad3445cac5278e9fa8c422f09d88639935159894 /crawl-ref/source/externs.h | |
parent | 7facfd7958a3f544d702f12310b4d5f40563641b (diff) | |
download | crawl-ref-87b16bb06d3f693ec3f6d727a50bdadf4df5c138.tar.gz crawl-ref-87b16bb06d3f693ec3f6d727a50bdadf4df5c138.zip |
For items that originate in a portal vault, store the string describing
their origin place in "portal_vault_origin" in the item's prop hash table,
so that (for example) an item bought in a bazaar will display its origin
as "in a bazaar" after exiting the bazaar, instead of "in a Portal Vault".
The string can be made different than the default with the "dstorigin"
property of the entrance portal marker, or via the lua function
dgn.set_level_type_origin().
Ziggurat items now say "on level X of a ziggurat", and sewer items
"in the sewers", with other portal vaults using the default.
Breaks savefile compatibilty.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7577 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 6419609046..6c75be735d 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -741,6 +741,11 @@ public: // if not explicitly set by the entry portal. std::string level_type_name; + // Item origin string for items from portal vaults, so that dumps + // can have origins like "You found it in on level 2 of a ziggurat". + // Will be set relative to level_type_name if not explicitly set. + std::string level_type_origin; + // .des file tag for portal vault std::string level_type_tag; |