From 04d5776a5cd366a0812dec39f23a2dd8867f47c0 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 28 Dec 2008 06:53:07 +0000 Subject: The entry gates to portal vaults can now set their long feature description via 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 --- crawl-ref/source/dat/icecave.des | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/dat/icecave.des') diff --git a/crawl-ref/source/dat/icecave.des b/crawl-ref/source/dat/icecave.des index 533f348e1b..336b3768ce 100644 --- a/crawl-ref/source/dat/icecave.des +++ b/crawl-ref/source/dat/icecave.des @@ -15,6 +15,10 @@ {{ function ice_cave_portal(e) + local desc_long = "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." + local timeout_turns = crawl.random_range(1200, 1700) local messager = @@ -33,6 +37,7 @@ function ice_cave_portal(e) timed_marker { disappear = "The archway melts and disappears.", desc = "A frozen archway", + desc_long = desc_long, entity = 'archway', dst = "ice_cave", dstname_abbrev = "IceCv", -- cgit v1.2.3-54-g00ecf