diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 0aca9b3fa..69eb14bba 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1317 $ $NHDT-Date: 1701500708 2023/12/02 07:05:08 $ +$NHDT-Branch: (unknown) $:$NHDT-Revision: 1.1339 $ $NHDT-Date: 1702264272 2023/12/11 03:11:12 $ General Fixes and Modified Features ----------------------------------- @@ -1329,6 +1329,7 @@ avoid impossible "trapped without a trap (fmon)" from 'sanity_check' when a non-flyer monster survived that it got marked as trapped even though flooding deleted the trap demons cannot be frightened by showing them their reflection +HP regeneration formula has changed, primarily to be less fast in the endgame Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/allmain.c b/src/allmain.c index dbe9b0fe7..f0bf8e8e6 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -605,24 +605,10 @@ regen_hp(int wtcap) once u.mh reached u.mhmax; that may have been convenient for the player, but it didn't make sense for gameplay...] */ if (u.uhp < u.uhpmax && (encumbrance_ok || U_CAN_REGEN())) { - if (u.ulevel > 9) { - if (!(gm.moves % 3L)) { - int Con = (int) ACURR(A_CON); + heal = (u.ulevel + (int)ACURR(A_CON)) > rn2(100); - if (Con <= 12) { - heal = 1; - } else { - heal = rnd(Con); - if (heal > u.ulevel - 9) - heal = u.ulevel - 9; - } - } - } else { /* u.ulevel <= 9 */ - if (!(gm.moves % (long) ((MAXULEV + 12) / (u.ulevel + 2) + 1))) - heal = 1; - } - if (U_CAN_REGEN() && !heal) - heal = 1; + if (U_CAN_REGEN()) + heal += 1; if (Sleepy && u.usleep) heal++;