summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-08 16:36:57 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-08 16:36:57 +0000
commit459e277ada7ab661190d4a3497a374d76e30c5a4 (patch)
tree76831767628f80206b9116ff4ee7708dc5b745b5 /crawl-ref/source/decks.cc
parentb5d57494a0e21209f23208562f960dd8f1cebebe (diff)
downloadcrawl-ref-459e277ada7ab661190d4a3497a374d76e30c5a4.tar.gz
crawl-ref-459e277ada7ab661190d4a3497a374d76e30c5a4.zip
Redo potions of magic again. They are now effectively potions of heal wounds
for MP; there is never any max-MP gain. Classes no longer influence max MP. Instead, you get an extra MP point for each level of Spellcasting between 1 and 5. (This might be too good.) Invocations does not get this boost. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8981 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index fccf5447a9..ad2b4dfba0 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -2031,7 +2031,13 @@ static void _potion_card(int power, deck_rarity_type rarity)
pot = (coinflip() ? POT_CURE_MUTATION : POT_MUTATION);
if (power_level >= 2 && one_chance_in(5))
- pot = POT_MAGIC;
+ {
+ // +1 to a random stat.
+ const potion_type gain_stat_pots[] = {
+ POT_GAIN_STRENGTH, POT_GAIN_DEXTERITY, POT_GAIN_INTELLIGENCE
+ };
+ pot = RANDOM_ELEMENT(gain_stat_pots);
+ }
potion_effect(pot, random2(power/4));
}