summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-place.h
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2013-04-02 20:51:46 -0230
committerDracoOmega <draco_omega@live.com>2013-04-02 20:51:46 -0230
commitdb45db7b37df5989d9c321bacdf7e9ea7097a0e6 (patch)
tree6df71c69cd3e2fd01220876120a7916f455d2efa /crawl-ref/source/mon-place.h
parent70a4f2ef4b8bbf4caad4f197810b9df2b248f4ea (diff)
downloadcrawl-ref-db45db7b37df5989d9c321bacdf7e9ea7097a0e6.tar.gz
crawl-ref-db45db7b37df5989d9c321bacdf7e9ea7097a0e6.zip
Allow summoning/recalling fliers over deep water
The routine which finds free space to place these monsters now uses monster_habitable_grid directly instead of its own logic (which ignored flying entirely). Spells which can summon both fliers and non-fliers (ie: call imp, summon greater demon, etc.) will make no attempt to respect the surrounding terrain when choosing a monster type (and so will sometimes attempt to summon a monster that cannot be placed at that terrain, and fail as previously), though it is arguably better if players cannot influence what things they summon by where they are standing. In either case, this is certainly much better than Haunt and Battlesphere failing when over deep water for no clear reason.
Diffstat (limited to 'crawl-ref/source/mon-place.h')
-rw-r--r--crawl-ref/source/mon-place.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-place.h b/crawl-ref/source/mon-place.h
index 18219ee473..a40e5aaa8d 100644
--- a/crawl-ref/source/mon-place.h
+++ b/crawl-ref/source/mon-place.h
@@ -64,8 +64,8 @@ conduct_type player_will_anger_monster(monster_type type);
conduct_type player_will_anger_monster(monster* mon);
bool player_angers_monster(monster* mon);
-bool empty_surrounds(const coord_def& where, dungeon_feature_type spc_wanted,
- int radius, bool allow_centre, coord_def& empty);
+bool find_habitable_spot_near(const coord_def& where, monster_type mon_type,
+ int radius, bool allow_centre, coord_def& empty);
monster_type summon_any_demon(monster_type dct);