diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-07 11:58:54 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-07 11:58:54 +0000 |
commit | 167ae03b160a0ccadd7934b2bfe557d491f1cb1f (patch) | |
tree | c1ee0ef626b416c5eee0f62082da72cb9f4137c3 /crawl-ref/source/it_use3.cc | |
parent | 33dc7cedd5a65d3bd1ce8eff9006e4517a3390dd (diff) | |
download | crawl-ref-167ae03b160a0ccadd7934b2bfe557d491f1cb1f.tar.gz crawl-ref-167ae03b160a0ccadd7934b2bfe557d491f1cb1f.zip |
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
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r-- | crawl-ref/source/it_use3.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc index a247b568f5..ef0ed9af09 100644 --- a/crawl-ref/source/it_use3.cc +++ b/crawl-ref/source/it_use3.cc @@ -223,7 +223,7 @@ void special_wielded() break; case SPWLD_SHADOW: - if (random2(8) <= player_spec_death()) + if (x_chance_in_y(player_spec_death() + 1, 8)) { create_monster( mgen_data(MONS_SHADOW, BEH_FRIENDLY, @@ -514,7 +514,7 @@ bool evoke_wielded() your_spells( SPELL_OLGREBS_TOXIC_RADIANCE, power, false ); - if (you.skills[SK_EVOCATIONS] >= random2(10)) + if (x_chance_in_y(you.skills[SK_EVOCATIONS] + 1, 10)) your_spells( SPELL_VENOM_BOLT, power, false ); break; @@ -563,7 +563,7 @@ bool evoke_wielded() else if (wpn.sub_type == STAFF_CHANNELING) { if (you.magic_points < you.max_magic_points - && you.skills[SK_EVOCATIONS] + 10 >= random2(40)) + && x_chance_in_y(you.skills[SK_EVOCATIONS] + 11, 40)) { mpr("You channel some magical energy."); inc_mp( 1 + random2(3), false ); @@ -695,7 +695,7 @@ bool evoke_wielded() static bool efreet_flask(void) { - bool friendly = (you.skills[SK_EVOCATIONS] / 3 + 10 > random2(20)); + bool friendly = x_chance_in_y(10 + you.skills[SK_EVOCATIONS] / 3, 20); mpr("You open the flask..."); @@ -960,7 +960,7 @@ static bool box_of_beasts() mpr("You open the lid..."); - if (random2(100) < 60 + you.skills[SK_EVOCATIONS]) + if (x_chance_in_y(60 + you.skills[SK_EVOCATIONS], 100)) { monster_type beasty = MONS_PROGRAM_BUG; |