diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-03 12:02:02 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-03 12:02:02 +0000 |
commit | da7b14eeeda044dc523653b4c0b365e15495282e (patch) | |
tree | 2cec3f9fe140b3f6b129ec65eb22a2fcb4c72de1 /crawl-ref/source/decks.cc | |
parent | eedaf28e2ab8dfae0eaae2fc308bdf683bf57021 (diff) | |
download | crawl-ref-da7b14eeeda044dc523653b4c0b365e15495282e.tar.gz crawl-ref-da7b14eeeda044dc523653b4c0b365e15495282e.zip |
Minor cleanups (especially of Xom code.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1728 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r-- | crawl-ref/source/decks.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 2cc06286cb..6e72756b13 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -816,7 +816,7 @@ static void potion_card(int power, deck_rarity_type rarity) POT_POISON, POT_CONFUSION, POT_DEGENERATION }; - potion_type pot = pot_effects[random2(ARRAYSIZE(pot_effects))]; + potion_type pot = RANDOM_ELEMENT(pot_effects); if ( power_level >= 1 && coinflip() ) pot = (coinflip() ? POT_CURE_MUTATION : POT_MUTATION); |