summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.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/it_use2.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/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index f55396eba7..f3625fae6b 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -301,19 +301,8 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known)
break; // I'll let this slip past robe of archmagi
case POT_MAGIC:
- // Restore all MP
- you.magic_points = you.max_magic_points;
-
- // Sometimes boost max
- if (one_chance_in(3))
- {
- mpr("You feel extremely magical!");
- inc_mp(1, true);
- }
- else
- {
- mpr("You feel magical!");
- }
+ inc_mp((10 + random2avg(28, 3)), false);
+ mpr("Magic courses through your body.");
break;
case POT_RESTORE_ABILITIES: