From 96edac1d649d50f9cfacf317c88007783657c55f Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 19 Jan 2009 21:02:48 +0000 Subject: Expand effect applicator functions to take an actor parameter, and use it for holy word in order to generalize it. This way, monsters as well as players may be able to use it in the future. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8598 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/effects.h') diff --git a/crawl-ref/source/effects.h b/crawl-ref/source/effects.h index e2c05fac02..5b17185d33 100644 --- a/crawl-ref/source/effects.h +++ b/crawl-ref/source/effects.h @@ -96,10 +96,12 @@ void yell(bool force = false); /* *********************************************************************** * called from: item_use - spell * *********************************************************************** */ -int holy_word(int pow, int caster, const coord_def& where, bool silent); +int holy_word(int pow, int caster, const coord_def& where, bool silent = false, + actor *attacker = NULL); -int holy_word_player(int pow, int caster); -int holy_word_monsters(coord_def where, int pow, int caster); +int holy_word_player(int pow, int caster, actor *attacker = NULL); +int holy_word_monsters(coord_def where, int pow, int caster, + actor *attacker = NULL); // last updated 12may2000 {dlb} @@ -110,7 +112,8 @@ int holy_word_monsters(coord_def where, int pow, int caster); int torment(int caster, const coord_def& where); int torment_player(int pow, int caster); -int torment_monsters(coord_def where, int pow, int caster); +int torment_monsters(coord_def where, int pow, int caster, + actor *attacker = NULL); void immolation(int caster, bool known = false); -- cgit v1.2.3-54-g00ecf