summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-summoning.h
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2014-01-24 11:21:18 -0330
committerDracoOmega <draco_omega@live.com>2014-01-28 02:31:44 -0330
commite94eb2fb6b68baccb94861d75f577f4d22532cd8 (patch)
tree4f49aba8d8cb542849002db58adce7e1175b6cdc /crawl-ref/source/spl-summoning.h
parent732301385daa64f7b8e827f25a3d3127038829b2 (diff)
downloadcrawl-ref-e94eb2fb6b68baccb94861d75f577f4d22532cd8.tar.gz
crawl-ref-e94eb2fb6b68baccb94861d75f577f4d22532cd8.zip
Don't let monsters cast a summon spell if it's already at its cap
Not only is doing so generally a complete waste of time, it's often directly counterproductive to the summoner, as it will erase monsters that have moved to engage the player and replace them with ones around the summoner (who is often further away, especially if the summons are fast).
Diffstat (limited to 'crawl-ref/source/spl-summoning.h')
-rw-r--r--crawl-ref/source/spl-summoning.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-summoning.h b/crawl-ref/source/spl-summoning.h
index eb5c47b16d..3919b583af 100644
--- a/crawl-ref/source/spl-summoning.h
+++ b/crawl-ref/source/spl-summoning.h
@@ -109,6 +109,7 @@ void summoned_monster(const monster* mons, const actor* caster,
spell_type spell);
bool summons_are_capped(spell_type spell);
int summons_limit(spell_type spell);
+int count_summons(const actor *summoner, spell_type spell);
struct summons_desc // : public data_index_entry<spell_type>
{