From 09687dbfa8bc4df93dd243e4c291a1fad58f7470 Mon Sep 17 00:00:00 2001 From: abrahamwl Date: Sat, 31 Oct 2009 08:39:53 -0700 Subject: Combine mons_res_foo(monsters *m) into monsters::res_foo() ...and replace all references to mons_res_foo() with res_foo(). Where "foo" is one of the many different things monsters can resist that happened to have a function of that format. TGfR! (Thank God for Regex!) Signed-off-by: Robert Vollmert --- crawl-ref/source/mon-util.h | 14 +------------- 1 file changed, 1 insertion(+), 13 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 b06517207c..e5bfa0f84d 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -219,7 +219,7 @@ enum mon_resist_flags // resistances // Notes: - // - negative energy is mostly handled via mons_res_negative_energy() + // - negative energy is mostly handled via monsters::res_negative_energy() MR_RES_ELEC = (1<< 0), MR_RES_POISON = (1<< 1), MR_RES_FIRE = (1<< 2), @@ -611,18 +611,6 @@ habitat_type mons_secondary_habitat(const monsters *mon); bool intelligent_ally(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_asphyx(const monsters *mon); -int mons_res_sticky_flame(const monsters *mon); -int mons_res_rotting(const monsters *mon); -int mons_res_acid(const monsters *mon); -int mons_res_negative_energy(const monsters *mon); - - // last updated 12may2000 {dlb} /* *********************************************************************** * called from: dungeon - items - spells2 - spells4 -- cgit v1.2.3-54-g00ecf