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/spl-cast.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spl-cast.cc') 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; -- cgit v1.2.3-54-g00ecf