From 37ba8b3ae6c9c7f6b39e372c4dd8f305f69923be Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Wed, 11 Nov 2009 22:31:41 -0500 Subject: 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. --- crawl-ref/source/mon-act.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/mon-act.cc') 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); -- cgit v1.2.3-54-g00ecf