summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-01 02:29:25 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-01 02:29:25 +0000
commitfa362030f57011d35e9e254b86b193c971132dfa (patch)
tree2d850acb1ce2879ac4702a4b73b4b722cdebf108 /crawl-ref/source/item_use.cc
parent1aa4e8906e9d1db62973cecf451236247e5d94b6 (diff)
downloadcrawl-ref-fa362030f57011d35e9e254b86b193c971132dfa.tar.gz
crawl-ref-fa362030f57011d35e9e254b86b193c971132dfa.zip
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
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 2 insertions, 2 deletions
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;