git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2717 c06c8d41-db1a-0410-9941-cceddc491573
RLARLENIGHKWCS2X7NOUYUWYYZ5H2TJLTIH42YQURZLQFQTPBBVAC K. Portal Vaults------------------Portal vaults are vaults accessed by portals in the dungeon (bazaarsare a special case of portal vaults). You can create custom portalvaults as follows:Define a vault to hold the portal itself:# Bare-bones portal vault entryNAME: portal_generic_entryTAGS: allow_dupORIENT: floatMARKER: O = lua:one_way_stair { desc = "A portal to places unknown", \dst = "generic_portal" }KFEAT: O = enter_portal_vaultMAPOENDMAPPortal entries must contain a portal vault entry (enter_portal_vault).This feature must always have a marker that provides the portal with adescription ("A portal to places unknown") and a destination("generic_portal").This will produce a portal, but attempting to use it will trigger anASSERT since there's no map for the destination. So we create adestination map like so:NAME: portal_generic_generic# Tag must match dst value of portal in entry.TAGS: generic_portal allow_dupORIENT: encompassMONS: ancient lichKFEAT: > = exit_portal_vaultMAPxxxxxxxxxxxx111111111xx1A111111>xx111111111xxxxxxxxxxxxENDMAPNote that the entry point into the map will be a stone arch. You mustprovide an exit to the dungeon explicitly (KFEAT: > =exit_portal_vault) or the player will not be able to leave.Stairs will not work right in portal vaults, do not use them.You can use multiple maps with the destination tag (generic_portal),and the dungeon builder will pick one at random.