summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-16 18:20:22 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-16 18:20:22 +0000
commit65ad20dff06c085e329e627ddeebe8a1deca6d04 (patch)
tree8f8328534f6ad696bc01d91d77b63a566340ee02 /crawl-ref/source/player.cc
parent96c41a695406df7d8bfcb3325447591ca9edba32 (diff)
downloadcrawl-ref-65ad20dff06c085e329e627ddeebe8a1deca6d04.tar.gz
crawl-ref-65ad20dff06c085e329e627ddeebe8a1deca6d04.zip
Add a few more poison-related cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7449 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 7a66a9538a..a210328302 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -5048,9 +5048,9 @@ bool confuse_player(int amount, bool resistable)
return (true);
}
-bool curare_hits_player(int agent, int degree)
+bool curare_hits_player(int agent, int amount)
{
- poison_player(degree);
+ poison_player(amount);
const bool res_poison = player_res_poison() > 0;
@@ -5070,7 +5070,7 @@ bool curare_hits_player(int agent, int degree)
ouch(hurted, agent, KILLED_BY_CURARE, "curare-induced apnoea");
}
- potion_effect(POT_SLOWING, 2 + random2(4 + degree));
+ potion_effect(POT_SLOWING, 2 + random2(4 + amount));
}
return (hurted > 0);