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/religion.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/religion.cc') diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 64d2f9190c..1620868e1c 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1646,7 +1646,7 @@ static bool _tso_blessing_holy_wpn(monsters* mon) static bool _tso_blessing_holy_arm(monsters* mon) { // If a monster has full negative energy resistance, get out. - if (mons_res_negative_energy(mon) == 3) + if (mon->res_negative_energy() == 3) return (false); // Pick either a monster's armour or its shield. -- cgit v1.2.3-54-g00ecf