summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 21:57:41 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 21:57:41 +0000
commita3a8c0f837972ec556dc6a89b411603953344da0 (patch)
treee18e7c5d0b60b01a49e48bb6ffe959db21d07c69 /crawl-ref/source/externs.h
parent72760b7751173d389735f6f129f92ef5963b1adc (diff)
downloadcrawl-ref-a3a8c0f837972ec556dc6a89b411603953344da0.tar.gz
crawl-ref-a3a8c0f837972ec556dc6a89b411603953344da0.zip
Add res_rotting() method to the actor class so that the "are you the right
type of undead to resist rotting" logic can be in just one place instead of duplicated every time the check is made. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6354 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index 1344136775..0fb8794be9 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -194,6 +194,7 @@ public:
virtual int res_elec() const = 0;
virtual int res_poison() const = 0;
virtual int res_negative_energy() const = 0;
+ virtual int res_rotting() const = 0;
virtual flight_type flight_mode() const = 0;
virtual bool is_levitating() const = 0;
@@ -876,6 +877,7 @@ public:
int res_elec() const;
int res_poison() const;
int res_negative_energy() const;
+ int res_rotting() const;
bool confusable() const;
bool slowable() const;
@@ -1212,6 +1214,7 @@ public:
int res_elec() const;
int res_poison() const;
int res_negative_energy() const;
+ int res_rotting() const;
flight_type flight_mode() const;
bool is_levitating() const;