From 4cf89bf43fe0847385567b94f0a61a16003561fb Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Wed, 11 Nov 2009 23:32:33 -0500 Subject: Change the ballistomycete activation mechanic Give ballistomycetes a counter, when it's at zero they have the slow spawn rate (are considered inactive), when it's greater than zero they have the fast spawn rate. Killing a ballisto gives +1 to any others on the level, a ballisto spawning a spore subtracts 1 from its own counter --- crawl-ref/source/mon-info.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/mon-info.cc') diff --git a/crawl-ref/source/mon-info.cc b/crawl-ref/source/mon-info.cc index 55d47f1387..12f64499dc 100644 --- a/crawl-ref/source/mon-info.cc +++ b/crawl-ref/source/mon-info.cc @@ -115,6 +115,9 @@ bool monster_info::less_than(const monster_info& m1, if (m1type == MONS_SLIME_CREATURE) return (m1.m_mon->number > m2.m_mon->number); + if (m1type == MONS_BALLISTOMYCETE) + return ((m1.m_mon->number > 0) > (m2.m_mon->number > 0)); + if (zombified) { // Because of the type checks above, if one of the two is zombified, so -- cgit v1.2.3-54-g00ecf