git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7714 c06c8d41-db1a-0410-9941-cceddc491573
QQNBWV5Z4HHXHEVK2IVQIP5VVBCLIWXTWKMDJ5IKFV6TUBTWN36QC
# 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
}}