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/effects.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/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 26d2847bef..db5f40a017 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -2474,9 +2474,9 @@ void handle_time(long time_delta) } } - // Adjust the player's stats if s/he has the deterioration mutation + // Adjust the player's stats if s/he has the deterioration mutation. if (player_mutation_level(MUT_DETERIORATION) - && random2(200) <= player_mutation_level(MUT_DETERIORATION) * 5 - 2) + && x_chance_in_y(player_mutation_level(MUT_DETERIORATION) * 5 - 1, 200)) { lose_stat(STAT_RANDOM, 1, false, "deterioration mutation"); } @@ -2531,13 +2531,13 @@ void handle_time(long time_delta) // roll.) if (is_sanctuary(you.x_pos, you.y_pos) && you.magic_contamination >= 5 - && random2(25) <= you.magic_contamination) + && x_chance_in_y(you.magic_contamination + 1, 25)) { mpr("Your body momentarily shudders from a surge of wild " "energies until Zin's power calms it.", MSGCH_GOD); } else if (you.magic_contamination >= 5 - && random2(25) <= you.magic_contamination) + && x_chance_in_y(you.magic_contamination + 1, 25)) { mpr("Your body shudders with the violent release " "of wild energies!", MSGCH_WARN); @@ -2654,11 +2654,10 @@ void handle_time(long time_delta) } // Check to see if an upset god wants to do something to the player. - // jmf: moved huge thing to religion.cc handle_god_time(); if (player_mutation_level(MUT_SCREAM) - && (random2(100) <= 2 + player_mutation_level(MUT_SCREAM) * 3)) + && x_chance_in_y(3 + player_mutation_level(MUT_SCREAM) * 3, 100)) { yell(true); } |