summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-07 11:58:54 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-07 11:58:54 +0000
commit167ae03b160a0ccadd7934b2bfe557d491f1cb1f (patch)
treec1ee0ef626b416c5eee0f62082da72cb9f4137c3 /crawl-ref/source/player.cc
parent33dc7cedd5a65d3bd1ce8eff9006e4517a3390dd (diff)
downloadcrawl-ref-167ae03b160a0ccadd7934b2bfe557d491f1cb1f.tar.gz
crawl-ref-167ae03b160a0ccadd7934b2bfe557d491f1cb1f.zip
Another clean up, and add some new weapon speech.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6439 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 15cb592619..aa308bf8d5 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -2852,7 +2852,7 @@ void forget_map(unsigned char chance_forgotten, bool force)
for (unsigned char ycount = 0; ycount < GYM; ycount++)
{
if (!see_grid(xcount, ycount)
- && (force || random2(100) < chance_forgotten))
+ && (force || x_chance_in_y(chance_forgotten, 100)))
{
env.map[xcount][ycount].clear();
}
@@ -6733,7 +6733,7 @@ void player::awake()
void player::check_awaken(int disturbance)
{
- if (asleep() && random2(50) <= disturbance)
+ if (asleep() && x_chance_in_y(disturbance + 1, 50))
awake();
}