diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 02:16:32 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 02:16:32 +0000 |
commit | 44125ccb3573b67221fa49e3cdeef9020ea7c2b6 (patch) | |
tree | 67bcc3635a30afe222630f9ec9667b39ca583fdd /crawl-ref/source/externs.h | |
parent | 20a096b93dc52950e35ff6d5323f0c00e0ac701b (diff) | |
download | crawl-ref-44125ccb3573b67221fa49e3cdeef9020ea7c2b6.tar.gz crawl-ref-44125ccb3573b67221fa49e3cdeef9020ea7c2b6.zip |
Add a power parameter to monsters::drain_exp(), and use it for the mass
drain card effect.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8972 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index d8c61d5131..7149b5c265 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -330,7 +330,7 @@ public: virtual bool can_safely_mutate() const = 0; virtual bool can_bleed() const = 0; virtual bool mutate() = 0; - virtual bool drain_exp(actor *agent, bool quiet = false) = 0; + virtual bool drain_exp(actor *agent, bool quiet = false, int pow = 3) = 0; virtual bool rot(actor *agent, int amount, int immediate = 0, bool quiet = false) = 0; virtual int hurt(const actor *attacker, int amount, @@ -1071,7 +1071,7 @@ public: void slow_down(actor *, int str); void confuse(actor *, int strength); void heal(int amount, bool max_too = false); - bool drain_exp(actor *, bool quiet = false); + bool drain_exp(actor *, bool quiet = false, int pow = 3); bool rot(actor *, int amount, int immediate = 0, bool quiet = false); int hurt(const actor *attacker, int amount, beam_type flavour = BEAM_MISSILE, @@ -1505,7 +1505,7 @@ public: void petrify(actor *, int str); void slow_down(actor *, int str); void confuse(actor *, int strength); - bool drain_exp(actor *, bool quiet = false); + bool drain_exp(actor *, bool quiet = false, int pow = 3); bool rot(actor *, int amount, int immediate = 0, bool quiet = false); int hurt(const actor *attacker, int amount, beam_type flavour = BEAM_MISSILE, |