summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.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/spl-cast.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/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 0720b60d95..e24f6bf58f 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -673,7 +673,7 @@ bool cast_a_spell()
const bool staff_energy = player_energy();
if (you.duration[DUR_CONF])
- random_uselessness( 2 + random2(7), 0 );
+ random_uselessness();
else
{
const spret_type cast_result = your_spells( spell );
@@ -2297,7 +2297,7 @@ static void _miscast_enchantment(int severity, const char* cause)
potion_effect(POT_LEVITATION, 20);
break;
case 1:
- random_uselessness(2 + random2(7), 0);
+ random_uselessness();
break;
}
break;
@@ -2993,7 +2993,7 @@ static void _miscast_transmigration(int severity, const char* cause)
ouch(1 + random2avg(11, 2), 0, KILLED_BY_WILD_MAGIC, cause);
break;
case 1:
- random_uselessness(2 + random2(7), 0);
+ random_uselessness();
break;
}
break;