diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-11 22:31:41 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-11 23:04:23 -0500 |
commit | 37ba8b3ae6c9c7f6b39e372c4dd8f305f69923be (patch) | |
tree | 40564211ce358b7531089d895770d70334bb9470 /crawl-ref/source/mon-act.cc | |
parent | 21cc906692321fd60c3fa6ab4780ce1fa0f083c6 (diff) | |
download | crawl-ref-37ba8b3ae6c9c7f6b39e372c4dd8f305f69923be.tar.gz crawl-ref-37ba8b3ae6c9c7f6b39e372c4dd8f305f69923be.zip |
Give giant spores a chance of spawning ballistos while wandering
Give giant spores a chance of creating a ballistomycete when they move
while wandering. This ability is on a timer, so they can't create more
than 1 ballisto per 20 turns. Numbers may need tweaking.
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r-- | crawl-ref/source/mon-act.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc index e0b9dfbe94..3c57266252 100644 --- a/crawl-ref/source/mon-act.cc +++ b/crawl-ref/source/mon-act.cc @@ -3112,10 +3112,14 @@ static bool _do_move_monster(monsters *monster, const coord_def& delta) } mgrd(monster->pos()) = NON_MONSTER; + coord_def old_pos = monster->pos(); + monster->set_position(f); mgrd(monster->pos()) = monster_index(monster); + ballisto_on_move(monster, old_pos); + monster->check_redraw(monster->pos() - delta); monster->apply_location_effects(monster->pos() - delta); |