Potions of healing, extra healing, and lifesaved heal amount

Make potions of healing and extra healing more useful in the early
game, by upping the average amount of health restored.

Make amulet of life saving restore between 60 and 170 health,
depending on constitution. Previously life saving was the best way
to heal back up to full, even if you had thousands of hp.
This commit is contained in:
Pasi Kallinen
2022-08-02 01:11:11 +03:00
parent e5b8fc86eb
commit 09cf464816
3 changed files with 7 additions and 4 deletions

View File

@@ -988,6 +988,8 @@ if an item-using monster zaps a wand of digging downward on a level that
doesn't allow holes but does allow pits, create a pit and trigger it
no longer override the effect of a new moon by simply carring a lizard corpse
make explosions burn monster's armor just like they do hero's armor
make healing and extra healing better by upping the average amount healed
lifesaving healing amount depends on the consitution
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository

View File

@@ -903,6 +903,7 @@ static void
savelife(int how)
{
int uhpmin;
int givehp = 50 + 10 * (ACURR(A_CON) / 2);
/* life-drain/level-loss to experience level 0 kills without actually
reducing ulevel below 1, but include this for bulletproofing */
@@ -911,9 +912,9 @@ savelife(int how)
uhpmin = minuhpmax(10);
if (u.uhpmax < uhpmin)
setuhpmax(uhpmin);
u.uhp = u.uhpmax;
u.uhp = min(u.uhpmax, givehp);
if (Upolyd) /* Unchanging, or death which bypasses losing hit points */
u.mh = u.mhmax;
u.mh = min(u.mhmax, givehp);
if (u.uhunger < 500 || how == CHOKING) {
init_uhunger();
}

View File

@@ -1099,7 +1099,7 @@ static void
peffect_healing(struct obj *otmp)
{
You_feel("better.");
healup(d(6 + 2 * bcsign(otmp), 4), !otmp->cursed ? 1 : 0,
healup(8 + d(4 + 2 * bcsign(otmp), 4), !otmp->cursed ? 1 : 0,
!!otmp->blessed, !otmp->cursed);
exercise(A_CON, TRUE);
}
@@ -1108,7 +1108,7 @@ static void
peffect_extra_healing(struct obj *otmp)
{
You_feel("much better.");
healup(d(6 + 2 * bcsign(otmp), 8),
healup(16 + d(4 + 2 * bcsign(otmp), 8),
otmp->blessed ? 5 : !otmp->cursed ? 2 : 0, !otmp->cursed,
TRUE);
(void) make_hallucinated(0L, TRUE, 0L);