summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-01 21:27:08 +0000
committerdploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-01 21:27:08 +0000
commit86b89c04ff2fda73c67b0db1ed7239ab00a3225d (patch)
tree8c335bdcb6bd5edd01dacade95b9852752eb0e63
parent9618dbde9f448cd4ce19239ecaf33eeeaeeb2010 (diff)
downloadcrawl-ref-86b89c04ff2fda73c67b0db1ed7239ab00a3225d.tar.gz
crawl-ref-86b89c04ff2fda73c67b0db1ed7239ab00a3225d.zip
Add lua function to icecave.des for later cloud production.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7714 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/dat/icecave.des22
1 files changed, 10 insertions, 12 deletions
diff --git a/crawl-ref/source/dat/icecave.des b/crawl-ref/source/dat/icecave.des
index a52036b9ee..526e50e28f 100644
--- a/crawl-ref/source/dat/icecave.des
+++ b/crawl-ref/source/dat/icecave.des
@@ -3,8 +3,6 @@
# disable controlled teleports?
#
# Todo:
-# add several types of cloud generators
-# timed entry (around 2000 turns), also for Sewer
# some ice cave destination maps could be smaller
###############################################################################
@@ -17,7 +15,6 @@
# of depth.
#
# Flavour: white colours, ice monsters, appropriate clouds.
-# Gameplay:
# The escape is at the start. The player can back away if s/he decides
# some challenges are much to handle.
#
@@ -51,13 +48,16 @@ function ice_cave_colours(e)
end
}}
-# Using this function will turn any ^ glyph on the map into a fog generator
-# of the following kind:
-#{{
-#function place_vapours()
-#subst("^ = lua:fog_machine{ pow_max = 20, delay_min = 50, delay_max = 300, size = 12, #start_clouds = 1, cloud_type = "freezing vapour"} ")
-#end
-#}}
+# Using this function will turn any ^ glyph on the map into a fog generator.
+# Any use requires two parameters as follows:
+# : place_fog(_G, "freezing vapour", 200)
+{{
+function place_fog(e, type, strength)
+ e.lua_marker(".", fog_machine { pow_max = strength, cloud_type = type,
+ delay_min = 50, delay_max = 300, size = 12,
+ start_clouds = 1 } )
+end
+}}
# Entries ##########################################
@@ -175,8 +175,6 @@ ENDMAP
#
# all start with a similar ice statue arrangement
#
-# lacking possible random fog generators
-#
# These have the starting point near the exit, so you can always retreat;
# a middle point where there is some loot; and the end, where there is a
# big challenge and some major loot. Ideally weaker characters attempt to