Skip to content

Commit

Permalink
Potions of healing, extra healing, and lifesaved heal amount
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
paxed committed Aug 1, 2022
1 parent e5b8fc8 commit 09cf464
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions doc/fixes3-7-0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/end.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions src/potion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
Expand Down

0 comments on commit 09cf464

Please sign in to comment.