sanity_check: current hero health better than max
Changes to setuhpmax() a couple of days ago to deal with sanity_check for "current hero health as monster better than maximum" ended up triggering sanity_check about "current hero health better than maximum" when gaining experience level(s) while polymorphed.
This commit is contained in:
@@ -383,7 +383,7 @@ newman(void)
|
||||
hpmax = u.ulevel; /* min of 1 HP per level */
|
||||
/* retain same proportion for current HP; u.uhp * hpmax / u.uhpmax */
|
||||
u.uhp = rounddiv((long) u.uhp * (long) hpmax, u.uhpmax);
|
||||
u.uhpmax = hpmax;
|
||||
setuhpmax(hpmax, TRUE); /* might reduce u.uhp */
|
||||
/*
|
||||
* Do the same for spell power.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user