From 167ae03b160a0ccadd7934b2bfe557d491f1cb1f Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 7 Jul 2008 11:58:54 +0000 Subject: 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 --- crawl-ref/source/player.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/player.cc') 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(); } -- cgit v1.2.3-54-g00ecf