From c6f1b8f3258bc3369e3d31ef9d66ae6f6dfcb7a6 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 6 Oct 2008 04:21:59 +0000 Subject: Expand mons_itemuse() to work at the individual monster level, as well. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7152 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mon-util.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'crawl-ref/source/mon-util.h') diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index f6ae1c1103..2232cf4b55 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -453,7 +453,8 @@ bool mons_wall_shielded(const monsters *mon); /* *********************************************************************** * called from: dungeon - monstuff * *********************************************************************** */ -mon_itemuse_type mons_itemuse(int mc); +mon_itemuse_type mons_class_itemuse(int mc); +mon_itemuse_type mons_itemuse(const monsters *mon); // last updated 12may2000 {dlb} @@ -559,16 +560,16 @@ habitat_type mons_secondary_habitat(const monsters *mon); bool intelligent_ally(const monsters *mon); -bool mons_res_sticky_flame( const monsters *mon ); -int mons_res_cold( const monsters *mon ); -int mons_res_elec( const monsters *mon ); -int mons_res_fire( const monsters *mon ); -int mons_res_steam( const monsters *mon ); -int mons_res_poison( const monsters *mon ); -int mons_res_acid( const monsters *mon ); -int mons_res_negative_energy( const monsters *mon ); -int mons_res_miasma( const monsters *mon ); -bool mons_res_asphyx( const monsters *mon ); +bool mons_res_sticky_flame(const monsters *mon); +int mons_res_cold(const monsters *mon); +int mons_res_elec(const monsters *mon); +int mons_res_fire(const monsters *mon); +int mons_res_steam(const monsters *mon); +int mons_res_poison(const monsters *mon); +int mons_res_acid(const monsters *mon); +int mons_res_negative_energy(const monsters *mon); +int mons_res_miasma(const monsters *mon); +bool mons_res_asphyx(const monsters *mon); // last updated 12may2000 {dlb} -- cgit v1.2.3-54-g00ecf