From 86b89c04ff2fda73c67b0db1ed7239ab00a3225d Mon Sep 17 00:00:00 2001 From: dploog Date: Mon, 1 Dec 2008 21:27:08 +0000 Subject: 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 --- crawl-ref/source/dat/icecave.des | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (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 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 -- cgit v1.2.3-54-g00ecf