the desc_long property of the Lua marker. The lets the portal vault code be enitrely self contained, rather than having to have a portion of the description in dat/descript/features.txt. Also, in theory each different entry vault could have its own version of the description, or it could even programatically vary after the entry vault had been generated (since it can be a function in addition to a string). Also, since the gate's short feature description is no longer needed as a key into the features database, the short description doesn't need to be the same for each entry vault.
The way I put the descriptions into the .des files is a bit clunky, but when I tried to use the Lua multi-line string quote ([[string]]) each line displayed by Crawl was indented one space.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8001 c06c8d41-db1a-0410-9941-cceddc491573
CGVVHYCRLMKDZ6VRGREAOUT4SWKFW6N3JGZ2MNTFKVP66LPAG7NQC
PJXVVRYJ3TBADNHW4ULXKDO5YDVT3T2M6MSXPNZGA6KXQITBHINAC
HXIETRYLTZYNJR4QHS5ZN4ZZR76SLRIXTEJQQJGI33XMXHO6MNBAC
6ZESJ36SWHQHCHAGN3LV6UVVE3FZJZTZA2OHI5JJIL6K3B6X6Q4AC
LJPUO3NNFABVOQOBA5LUDNT2R5H4LMP6TPJBNVJ7VJBERCBYZIXQC
TLO257LZSB6ZO36STDUEWJBO2LETXFKTFGXELA6Y4BZBVAEIIINAC
EKQDSISM4EZQJVZKNWXDQGOQKX5ZLBOCUKXJMTHBZINYM7V4HHBQC
GQL5SIGBHLU3FMCE54XVGLRY5AZHRM6DUEB722REA2DPLGJSN6EQC
7Y5HSDFKA5TPLS2TWTRFMQVX6UXUDHXU5MUMXQSDFAIY4THQ3BIQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
2BTN774TDEFKS7L23YNEDQJSLSUWWKXPC5GA73ZGKLCKDHVEWSJAC
CRX4RG35C3DH57NIXCW4CG4X7SBMSX7TAJR2BAFQ4LQKCLYUNANQC
UEI5JAVCMN7Y2SACTEZPZSNFJWOJTC55G24Q6LKQCT4XNDH5ZQIAC
UNIJHT5L4GDN6L4WM2GQ6TZO3R6SRIHJ7XURBSNC4LF7JMYMWRFAC
H3552BCIAVBLKAYKE4DHFLBLFW5RGRMYBMRRYHYEB5IPIJRUVU5QC
DI5OZPCY3TZSSYQSVB54IIES42RYAHMCW2S7CEXRN6WGAJ32IZUQC
IBMESKENCPPFELRUBBBZXQRM3Y5AZJ4EXMTRJWOLXMSWBT4OFNXQC
I7QLYOTE6DLQZM7YWUWYLKHRJRB2A3STQ42ALSRGQICEWKD2QTEQC
PELXK6IIQWIBJZ47D4UFLEFTQH4TYG5W6VOORKZOINAXYOJ5UF7AC
GM5DTBBH7RMG64OB624WDHOYJX4LRTZ7WJ4PVTBHIGZ657QQZP2AC
KAU2TE3RUG6JLTKGLJX4P4JMX7J2OWZHFLDHKJH7Z55J7QIJ7YXQC
ALBZ3CT4GKBMX3DC3NF7ENPDMW7UJJKLI6SD5R7LJKDSNIDU5QOAC
NW4TZRZ3BNZTD3THM7SQ3ZUEJA4POHWLMOACQJBFYQSIXPBW456AC
KTF2SZLDR2NGPWSFAWDYV2X3UP4V5VDNTIGDGQ6G24HUNABFYR2QC
static std::string _marker_feature_description(const coord_def &pos)
{
std::vector<map_marker*> markers = env.markers.get_markers_at(pos);
for (int i = 0, size = markers.size(); i < size; ++i)
{
const std::string desc = markers[i]->feature_description_long();
if (!desc.empty())
return (desc);
}
return ("");
}
local desc_long =
"Every settlement brings forth the unpleasant sewers and drains, ignored by "..
"most but hideaways for others. Old tales speak of dangerous creatures, "..
"bathing in disgustingly green water, preying on each other without mercy. "..
"The tales also tell of the valuable items left by daring and unfortunate "..
"visitors, left to collect dust in the damp caverns. You have an uncanny "..
"feeling that the drain will fall apart rather soon."
%%%%
A flickering gateway to a bazaar
Aside from the vendors who've set up their stores at various places in the
dungeon, there are others trying to make a living by traveling from place
to place. Bazaars feature a number of different shops and often have better
stock than the sedentary ones, sometimes even at a bargain.
Once you hear the clinking of coins, be sure to hurry up and find the
impromptu marketplace before the caravan moves on!
Also be warned that their nomadic lifestyle has taught these sellers to
appropriate any items an adventurer might leave behind, and then leave
quickly, probably to sell them elsewhere.
%%%%
A frozen archway
A permanent cold front seems to surround this portal. Whatever lives on the
other side, they will be full of grim and arctic fury. You note that the
archway is melting away.
%%%%
A glowing drain
Every settlement brings forth the unpleasant sewers and drains, ignored by
most but hideaways for others. Old tales speak of dangerous creatures,
bathing in disgustingly green water, preying on each other without mercy.
The tales also tell of the valuable items left by daring and unfortunate
visitors, left to collect dust in the damp caverns. You have an uncanny
feeling that the drain will fall apart rather soon.
local desc_long =
"Aside from the vendors who've set up their stores at various places in the "..
"dungeon, there are others trying to make a living by traveling from place"..
"to place. Bazaars feature a number of different shops and often have better"..
"stock than the sedentary ones, sometimes even at a bargain."..
"Once you hear the clinking of coins, be sure to hurry up and find the"..
"impromptu marketplace before the caravan moves on!"..
"\n\n"..
"Also be warned that their nomadic lifestyle has taught these sellers to"..
"appropriate any items an adventurer might leave behind, and then leave"..
"quickly, probably to sell them elsewhere."