summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-01-02 18:02:28 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-01-02 18:02:28 +1000
commit2a673e4ca8d871c8f5b01056a9f19e06b65b7abc (patch)
treeac31d35bc587b809f5d3cbcb9ecfe7a4d1ed18b2 /crawl-ref/source/dat
parent5456eceb4f103ac12e7a6aaf9c7234887588a5e0 (diff)
downloadcrawl-ref-2a673e4ca8d871c8f5b01056a9f19e06b65b7abc.tar.gz
crawl-ref-2a673e4ca8d871c8f5b01056a9f19e06b65b7abc.zip
Fix feat library errors here, too (sorear).
Diffstat (limited to 'crawl-ref/source/dat')
-rw-r--r--crawl-ref/source/dat/wizlab.des6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/dat/wizlab.des b/crawl-ref/source/dat/wizlab.des
index 97d0669555..c5e9eca4ec 100644
--- a/crawl-ref/source/dat/wizlab.des
+++ b/crawl-ref/source/dat/wizlab.des
@@ -498,7 +498,7 @@ function grow (data, triggerable, triggerer, marker, ev)
if crawl.one_chance_in(10) then
-- Fruit!
for spot in iter.adjacent_iterator() do
- if not feat.is_solid(spot:xy()) and not feat.destroys_items(spot:xy())
+ if not feat.is_solid(spot:xy()) and not feat.has_solid_floor(spot:xy())
and crawl.one_chance_in(3) then
-- Do nothing.
dgn.create_item(spot.x, spot.y, "pear / apple / choko / apricot / orange"
@@ -513,7 +513,7 @@ function grow (data, triggerable, triggerer, marker, ev)
else
-- Flowers!
for spot in iter.adjacent_iterator() do
- if not feat.is_solid(spot:xy()) and not feat.destroys_items(spot:xy())
+ if not feat.is_solid(spot:xy()) and not feat.has_solid_floor(spot:xy())
and not crawl.one_chance_in(3) then
dgn.create_monster(spot.x, spot.y, "toadstool col:any name:flowers " ..
"name_replace name_descriptor name_definite")
@@ -1317,7 +1317,7 @@ local function summon_monks (data, triggerable, triggerer, marker, ev)
local count = 0
for point in iter.circle_iterator(3) do
if crawl.one_chance_in(11) then
- if feat.is_solid(point.x, point.y) or feat.destroys_items(point.x, point.y) then
+ if feat.is_solid(point.x, point.y) or not feat.has_solid_floor(point.x, point.y) then
else
local mon = dgn.create_monster(point.x, point.y, msp)
mon.set_prop("description", "It seems a flimsy representation of a monk;"