From fa362030f57011d35e9e254b86b193c971132dfa Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 1 Jun 2008 02:29:25 +0000 Subject: Clean up and consolidate random_uselessness(), as well as its associated outsourced text. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5388 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 950ea4ba6c..d0c1b8e051 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4205,7 +4205,7 @@ void read_scroll( int slot ) { if (you.duration[DUR_CONF]) { - random_uselessness(random2(9), item_slot); + random_uselessness(item_slot); dec_inv_item_quantity( item_slot, 1 ); return; } @@ -4228,7 +4228,7 @@ void read_scroll( int slot ) break; case SCR_RANDOM_USELESSNESS: - random_uselessness(random2(9), item_slot); + random_uselessness(item_slot); id_the_scroll = false; break; -- cgit v1.2.3-54-g00ecf