Is there a maximum to the amount of health/HP?

I had accumulated a large quantity of candy and figured that since I had nothing else to spend them on at the time, I would eat them to increase my health. However my HP did not change as seen below. (I’m not playing in hard mode.)

Is there a hard limit to the amount of health you can have from eating candies? (I couldn’t find anything about it in the wiki.) Could it be a bug?

There is no maximum max health set by the game, but the maximum you can get out of eating candies is 900 (the function on row 4 in the code below maxes out at 900). You need to eat about 2 700 000 candies to reach the cap. Any candies eaten after that do not matter at all.

You can get much higher by using

pains au chocolat in the Wishing Well to get more max health. (`gameGiftHealth` in the code below)

That method goes all the way to the max integer of javascript as it is defined in the script (9 007 199 254 740 992).

``````    var maxHp = 100;

maxHp += Math.ceil((1 - Math.exp(-this.game.getCandiesEaten().getCurrent() / 3000)) * 100) + Math.ceil((1 - Math.exp(-this.game.getCandiesEaten().getCurrent() / 400000)) * 800);
}