summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mgen_data.h
diff options
context:
space:
mode:
authorPete Hurst <pete@streamuniverse.tv>2013-06-23 02:41:07 +0100
committerPete Hurst <pete@streamuniverse.tv>2013-06-23 02:43:30 +0100
commit799380530f2bc5cf3a036422bf7727e1fd9d7d29 (patch)
treef9a937eb7fb0697c3d9b1689fec912e2c418a6e6 /crawl-ref/source/mgen_data.h
parent151d926e33d1d003cfc23956df55f5a7dcf60976 (diff)
downloadcrawl-ref-799380530f2bc5cf3a036422bf7727e1fd9d7d29.tar.gz
crawl-ref-799380530f2bc5cf3a036422bf7727e1fd9d7d29.zip
Allow random chimera to be created with MONS syntax
This enables a MONS spec to just be "chimera" and three depth- appropriate monsters will be used. This can produce bizarre results but might be useful. It should also allows things like "place:Zot:5 chimera vs place:Pan chimera" in Arena. The filters could be refined further to allow random chimera to not be completely ridiculous.
Diffstat (limited to 'crawl-ref/source/mgen_data.h')
-rw-r--r--crawl-ref/source/mgen_data.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mgen_data.h b/crawl-ref/source/mgen_data.h
index 4d3b0bffc5..81144dbcf5 100644
--- a/crawl-ref/source/mgen_data.h
+++ b/crawl-ref/source/mgen_data.h
@@ -161,6 +161,9 @@ struct mgen_data
bool summoned() const { return (abjuration_duration > 0); }
+ void define_chimera(monster_type part1, monster_type part2,
+ monster_type part3);
+
static mgen_data sleeper_at(monster_type what,
const coord_def &where,
unsigned genflags = 0)