From 85e11d2d3c892c2ffcd53b0bf55c0e83ce13fb9d Mon Sep 17 00:00:00 2001 From: zelgadis Date: Wed, 14 Jan 2009 12:00:48 +0000 Subject: Implented some ranged brands from FR #2006917 and #1891231: shadow and penetration (not phasing) for launchers and shadow, penetration, dispersal, exploding, steel and silver for ammo. Never randomly generated. If a launcher of venom is used to launch flame or ice ammo then the resulting bolt will be poisoned, just like poisoned ammo launched from a launcer of flame or frost. Put missile beam setup code that's common to monsters and the player in setup_missile_beam(). Removed mons_thrown_object_destroyed(), thrown_object_destroyed() is now used for both monsters and the player. The bolt struct has several new callback fields that can be set to alter the beam's behaviour; currently only used by the brands implemented in this commit, but they should be general enough to be used by anything. The bolt struct has the new field "special_explosion" which can be used to cause an explosion with flavour and/or damage dice different than the rest of the beam. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8449 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monstuff.h') diff --git a/crawl-ref/source/monstuff.h b/crawl-ref/source/monstuff.h index 3dea7bb035..36561e82a4 100644 --- a/crawl-ref/source/monstuff.h +++ b/crawl-ref/source/monstuff.h @@ -86,8 +86,8 @@ bool monster_polymorph(monsters *monster, monster_type targetc, * called from: bang - beam - effects - fight - misc - monstuff - mstuff2 - * spells1 - spells2 - spells3 - spells4 * *********************************************************************** */ -void monster_die(monsters *monster, killer_type killer, - int killer_index, bool silent = false, bool wizard = false); +int monster_die(monsters *monster, killer_type killer, + int killer_index, bool silent = false, bool wizard = false); int fill_out_corpse(const monsters* monster, item_def& corpse, bool allow_weightless = false); -- cgit v1.2.3-54-g00ecf