diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-04 23:57:21 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-04 23:57:21 +0000 |
commit | 288e44e2590d8791f0841a70ef50108582990278 (patch) | |
tree | 558d104f241393407765b96b89e6ac69b726af50 /crawl-ref/source/skills2.cc | |
parent | 763ef75bd1f9c97c9f1ebee467bde287f156f483 (diff) | |
download | crawl-ref-288e44e2590d8791f0841a70ef50108582990278.tar.gz crawl-ref-288e44e2590d8791f0841a70ef50108582990278.zip |
Another one with a multitude of (smallish) changes.
- Fixed 1788033, 1787436, 1782862.
- Modified basename, so it's a bit more useful and it's
seeing use when not switching back during butcher.
- Mummy Wanderers won't get a potion.
- NOTE_XP_LEVEL_CHANGE notes "real" hp/mp.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2055 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index 50ebe1228d..157580c3ee 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -2170,7 +2170,7 @@ void init_skill_order( void ) } } -int calc_hp(void) +int calc_hp(bool real_hp) { int hitp; @@ -2178,14 +2178,14 @@ int calc_hp(void) hitp += (you.experience_level * you.skills[SK_FIGHTING]) / 5; // being berserk makes you resistant to damage. I don't know why. - if (you.duration[DUR_BERSERKER]) + if (you.duration[DUR_BERSERKER] && !real_hp) { hitp *= 15; hitp /= 10; } // some transformations give you extra hp - switch (you.attribute[ATTR_TRANSFORMATION]) + switch (you.attribute[ATTR_TRANSFORMATION] && !real_hp) { case TRAN_STATUE: hitp *= 15; @@ -2213,7 +2213,7 @@ int calc_hp(void) } // end calc_hp() -int calc_mp(void) +int calc_mp(bool real_mp) { int enp; @@ -2240,7 +2240,8 @@ int calc_mp(void) you.max_magic_points = 50; // now applied after scaling so that power items are more useful -- bwr - you.max_magic_points += player_magical_power(); + if (!real_mp) + you.max_magic_points += player_magical_power(); if (you.max_magic_points > 50) you.max_magic_points = 50 + ((you.max_magic_points - 50) / 2); |