summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 83f9acc7fa..cb1a22ace2 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6963,7 +6963,7 @@ int player::hurt(const actor *agent, int amount, beam_type flavour,
return (amount);
}
-void player::drain_stat(int stat, int amount, actor* attacker)
+void player::drain_stat(int stat, int amount, actor *attacker)
{
if (attacker == NULL)
lose_stat(stat, amount, false, "");
@@ -6987,6 +6987,11 @@ void player::rot(actor *who, int amount, int immediate)
disease_player(50 + random2(100));
}
+void player::drain_exp(actor *who)
+{
+ ::drain_exp();
+}
+
void player::confuse(actor *who, int str)
{
confuse_player(str);
@@ -7025,7 +7030,7 @@ void player::petrify(actor *who, int str)
void player::slow_down(actor *foe, int str)
{
- ::slow_player( str );
+ ::slow_player(str);
}
int player::has_claws(bool allow_tran) const