diff options
author | reaver <address.auto@gmail.com> | 2014-02-28 18:16:17 -0500 |
---|---|---|
committer | Pekka Lampila <pekka.lampila@iki.fi> | 2014-03-01 02:24:58 +0200 |
commit | e61cbc8dec160eba00cf3c7144b0e6b73b5a81d6 (patch) | |
tree | 28c56dab203a1e2e7c3824705bf94236abbc8343 /crawl-ref/source/throw.cc | |
parent | 608f08d4e8de5b9ae7ad0da9390d7d6765bc4d2e (diff) | |
download | crawl-ref-e61cbc8dec160eba00cf3c7144b0e6b73b5a81d6.tar.gz crawl-ref-e61cbc8dec160eba00cf3c7144b0e6b73b5a81d6.zip |
s/x_chance_in_y(1,/one_chance_in(/
This is a pure name change, with no functional changes. I did not change
the cases where x_chance_in_y was called through Lua, presumming that a
macro would be unusuable in Lua.
Diffstat (limited to 'crawl-ref/source/throw.cc')
-rw-r--r-- | crawl-ref/source/throw.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/throw.cc b/crawl-ref/source/throw.cc index 39955b1946..a555d20b6e 100644 --- a/crawl-ref/source/throw.cc +++ b/crawl-ref/source/throw.cc @@ -1800,7 +1800,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, // check for returning ammo from launchers if (returning && projected == LRET_LAUNCHED) { - if (!x_chance_in_y(1, 1 + skill_bump(range_skill(*you.weapon())))) + if (!one_chance_in(1 + skill_bump(range_skill(*you.weapon())))) did_return = true; } @@ -1809,7 +1809,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, { returning = returning && !teleport; - if (returning && !x_chance_in_y(1, 1 + skill_bump(SK_THROWING))) + if (returning && !one_chance_in(1 + skill_bump(SK_THROWING))) did_return = true; baseHit = 0; |