diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-12 20:30:12 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-12 20:30:12 -0500 |
commit | 8075717d132ff61257a8836ce7854f71f1eb05f8 (patch) | |
tree | 115643864aa9b4c5c8ace4cdd3864d9f31a80997 /crawl-ref/source/monster.cc | |
parent | 4cf89bf43fe0847385567b94f0a61a16003561fb (diff) | |
download | crawl-ref-8075717d132ff61257a8836ce7854f71f1eb05f8.tar.gz crawl-ref-8075717d132ff61257a8836ce7854f71f1eb05f8.zip |
Change ballistomycete spore mechanics again
New status: if a ballistomycete or giant spore dies any ballistos on
the level get +1 to a counter. Ballistos with a count higher than zero
get spore production on a short (~150 turn) timer. When a spore is
spawned (by a ballisto) the count of all ballistos on the level is
decreased by 1.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index b3fda3a9d7..4b706d8a47 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -5010,23 +5010,12 @@ void monsters::apply_enchantment(const mon_enchant &me) if (rc != -1) { env.mons[rc].behaviour = BEH_WANDER; - env.mons[rc].number = 10; + env.mons[rc].number = 20; if (observe_cell(adjacent) && observe_cell(pos())) mpr("A nearby fungus spawns a giant spore."); - // Decrease the count and maybe become inactive - // again - if(this->number) - { - this->number--; - if(this->number == 0) - { - this->colour = MAGENTA; - if(you.can_see(this)) - mprf("A nearby ballistomycete calms down."); - } - } + deactivate_ballistos(); } break; } |