tracking peak maximum HP and energy
Keep track of the highest value that u.uhpmax and u.uenmax have attained, in new u.uhppeak and u.uenpeak. They aren't used for anything yet. u.mhmax (max HP while polymorphed) isn't interesting enough to track. Not save and bones compatible so increments EDITLEVEL.
This commit is contained in:
@@ -661,8 +661,8 @@ u_init(void)
|
||||
set_uasmon();
|
||||
|
||||
u.ulevel = 0; /* set up some of the initial attributes */
|
||||
u.uhp = u.uhpmax = newhp();
|
||||
u.uen = u.uenmax = newpw();
|
||||
u.uhp = u.uhpmax = u.uhppeak = newhp();
|
||||
u.uen = u.uenmax = u.uenpeak = newpw();
|
||||
u.uspellprot = 0;
|
||||
adjabil(0, 1);
|
||||
u.ulevel = u.ulevelmax = 1;
|
||||
|
||||
Reference in New Issue
Block a user