diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-05-23 12:13:05 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-05-23 15:42:21 -0400 |
commit | b5a4d5e7b2f38e4794895c20c8f4bacfdf50ac7d (patch) | |
tree | d6442711b9a79159ad42471c6565a72c5dcb384d /crawl-ref/source/potion.cc | |
parent | a0261e132ed573fbad881f21a60102b829f8a099 (diff) | |
download | crawl-ref-b5a4d5e7b2f38e4794895c20c8f4bacfdf50ac7d.tar.gz crawl-ref-b5a4d5e7b2f38e4794895c20c8f4bacfdf50ac7d.zip |
Make no device heal a normal 3-level mutation.
Diffstat (limited to 'crawl-ref/source/potion.cc')
-rw-r--r-- | crawl-ref/source/potion.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/potion.cc b/crawl-ref/source/potion.cc index 0778598212..1d5604ad5d 100644 --- a/crawl-ref/source/potion.cc +++ b/crawl-ref/source/potion.cc @@ -51,7 +51,7 @@ bool potion_effect(potion_type pot_eff, int pow, item_def *potion, bool was_know pow = min(pow, 150); // Reduced effect for healing potions. - int factor = you.mutation[MUT_NO_DEVICE_HEAL] ? 2 : 1; + float mut_factor = you.mutation[MUT_NO_DEVICE_HEAL] / 3; // Knowingly drinking bad potions is much less amusing. int xom_factor = 1; @@ -88,7 +88,7 @@ bool potion_effect(potion_type pot_eff, int pow, item_def *potion, bool was_know } if (you.can_device_heal()) - inc_hp((5 + random2(7)) / factor); + inc_hp((5 + random2(7)) * mut_factor); mpr("You feel better."); @@ -128,7 +128,7 @@ bool potion_effect(potion_type pot_eff, int pow, item_def *potion, bool was_know break; } - inc_hp((10 + random2avg(28, 3)) / factor); + inc_hp((10 + random2avg(28, 3)) * mut_factor); mpr("You feel much better."); // only fix rot when healed to full |