diff options
author | abrahamwl <abrahamwl@gmail.com> | 2009-10-31 08:39:53 -0700 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-31 17:31:05 +0100 |
commit | 09687dbfa8bc4df93dd243e4c291a1fad58f7470 (patch) | |
tree | ce71ea575914510913a171a68b295197d7b7376f /crawl-ref/source/effects.cc | |
parent | c1d8dc0f1c7cfa48c46d7fe34c558a1d8f0ff586 (diff) | |
download | crawl-ref-09687dbfa8bc4df93dd243e4c291a1fad58f7470.tar.gz crawl-ref-09687dbfa8bc4df93dd243e4c291a1fad58f7470.zip |
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 <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 6f64234350..ffca8c92c9 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -296,7 +296,7 @@ int torment_monsters(coord_def where, int pow, int caster, actor *attacker) if (monster == NULL) return (retval); - if (!monster->alive() || mons_res_negative_energy(monster) == 3) + if (!monster->alive() || monster->res_negative_energy() == 3) return (retval); int hploss = std::max(0, monster->hit_points / 2 - 1); |