# Talk:HP

When someone gets the rewrite figured out, can they add that to the HP Modifiers page somewhere? It is a viable addition. -Zilly 00:04, 10 December 2005 (Central Standard Time)

A formula for HP:

From Dornbeast on forums: HP: =CEILING(CEILING( Max[ (FLOOR((M+3)*C)+P), FLOOR(m) ] *R)*G) where M is your buffed Muscle, m is your base Muscle C is 1.5 if you are a Muscle class (1 for other classes), P is any direct HP bonuses you have (e.g. from an accordion strap), R is 1.25 if you have Spirit of Ravioli (1 if you don't), and G is 1.05 if you have Gnomish Hardigness (1 if you don't).

--DirkDiggler 21:37, 2 November 2006 (CST)

- That's from me, here[1], and with a mistake in the debuffed muscle version. I fixed it on the main page.--Salien 20:40, 11 February 2008 (CST)

## Formula

I think there's a slight problem with the formula, in that *A* and *G* need to be swapped. I cast Holiday Weight Gain for +55 HP, which, according to the current formula, should give:

- ceil(1.05*ceil(1.1*ceil(1.25*55)))) = ceil(1.05*ceil(1.1*ceil(68.75))) = ceil(1.05*ceil(1.1*69)) = ceil(1.05*ceil(75.9)) = ceil(1.05*76) = ceil(79.8) = 80

When in fact, in-game, it gives 81. Which does fit if the 1.1 and 1.05 are swapped in the above formula (it comes out in the end to ceil(80.3) = 81. If someone else could confirm that I'm not crazy, that'd be fantastic. (Alternatively, a bejeweled pledge pin gives +59 with all the skills, but the current formula thinks it's supposed to be 58, my revision to the formula agrees with +59). --RoyalTonberry 07:06, 25 January 2010 (UTC)

- Additionally confirmed your revision in-game, with [S, G, A, R, M, C, P, m] = [0, 1.05, 1.1, 1.25, 99, 1.5, 60, 55], which yields 310 in-game, contrary to 309 with the original formula. --Bagatelle
^{T}/_{C}02:43, 26 January 2010 (UTC)

## Jan 25th changes

Apparently it's now going to be:

Max HP = F + CEILING( (A+G+R) × MAXIMUM( FLOOR((M + 3) × C), FLOOR(m × C) ) ) ) )

Where F is the sum of your flat/absolute bonus HP Modifiers. It should be the same formulation for MP. But this needs to be confirmed in practice.

On a DB with 131 Muscle, under the Vole (+20 HP/MP) and Spirit of Ravioli (+25% HP) I'm getting 188 HP, which matches perfectly. Tested this on a few other characters and everything seems to line up. --TechSmurf 07:31, 13 August 2012 (CEST)

## HP below unbuffed muscle

It says " your HP can never be less than what you would get with just your unbuffed Muscle. (Known to be incorrect.)" ... but doesn't say how to accomplish this, which is handy for going up against YoGurt. Can this get updated with info and / or changed to be not strike-through?--Random42 (talk) 23:57, 24 April 2020 (UTC)