What is the precise relationship between Fighting and HP?

Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

Halls Hopper

Posts: 66

Joined: Monday, 21st September 2015, 03:35

What is the precise relationship between Fighting and HP?

Followup: how does training more Fighting earlier than later affect a character's eventual max HP?

Ziggurat Zagger

Posts: 4407

Joined: Friday, 8th May 2015, 17:51

Re: What is the precise relationship between Fighting and HP

It does not matter. You will have the same max HP no matter if you started training Fighting at XL 1 or 27. The same holds true for all other skills, there is no memory/history in crawl, just current skills matter.
Underestimated: cleaving, Deep Elf, Formicid, Vehumet, EV
Overestimated: AC, GDS
Twin account of Sandman25

Shoals Surfer

Posts: 321

Joined: Friday, 17th December 2010, 02:21

Re: What is the precise relationship between Fighting and HP

Learndb says the hp formula is Floor[(8 + Floor[(1+3*Fighting)/2]+Floor[11*XL/2]+Floor[Fighting*XL/14])*(1+Aptitude/10)]. Have fun with that.

Tartarus Sorceror

Posts: 1821

Joined: Thursday, 31st May 2012, 15:45

Re: What is the precise relationship between Fighting and HP

VeryAngryFelid wrote:It does not matter. You will have the same max HP no matter if you started training Fighting at XL 1 or 27. The same holds true for all other skills, there is no memory/history in crawl, just current skills matter.

While this is true for the effect of current skill values at the point in game-time when a function that needs that value is called, if I recall correctly the experience-point-to-skill-point conversion factor does change throughout the game, with skill points becoming progressively more expensive. So I think the most precise answer to OP is that the number of HP you have at Fighting = X is the same whenever you train it, but that the later you train it, the more expereince points it takes to get to Fighting = X. So you will get more HP/XP earlier than later, but you will always get the same HP/SP.
Won (52). Remaining (15): 5 species: Ba, Fe, Mu, Na, Op; 5 Backgrounds: AM, Wr, Su, AE, Ar; 5 gods: Jiyv, newNem, WJC, newSif, newFedh

Slime Squisher

Posts: 343

Joined: Tuesday, 14th April 2015, 19:56

Location: France

Re: What is the precise relationship between Fighting and HP

MainiacJoe wrote:
VeryAngryFelid wrote:It does not matter. You will have the same max HP no matter if you started training Fighting at XL 1 or 27. The same holds true for all other skills, there is no memory/history in crawl, just current skills matter.

While this is true for the effect of current skill values at the point in game-time when a function that needs that value is called, if I recall correctly the experience-point-to-skill-point conversion factor does change throughout the game, with skill points becoming progressively more expensive. So I think the most precise answer to OP is that the number of HP you have at Fighting = X is the same whenever you train it, but that the later you train it, the more expereince points it takes to get to Fighting = X. So you will get more HP/XP earlier than later, but you will always get the same HP/SP.

That may be true, but you also get LOTS more XP in the later game, which probably offsets this mechanism
3 runes : MiMo^Ru, HOFi^Beogh, TrMo^Yredelemnul, GrFi^Ru, FoFi^Gozag, MiGl^Okawaru
4 runes : DDFi^Makhleb
5 runes : GrEE^Vehumet
15 runes : MiFi^Ru, NaWz^Sif Muna, GrWz^Sif Muna
I mostly play offline or online on CXC

Slime Squisher

Posts: 341

Joined: Thursday, 11th April 2013, 21:07

Re: What is the precise relationship between Fighting and HP

asdu wrote:Learndb says the hp formula is Floor[(8 + Floor[(1+3*Fighting)/2]+Floor[11*XL/2]+Floor[Fighting*XL/14])*(1+Aptitude/10)]. Have fun with that.

Here's the code, which also handles temporary HP boosts not listed in the above formula:
https://github.com/crawl/crawl/blob/mas ... r.cc#L3855

Halls Hopper

Posts: 66

Joined: Monday, 21st September 2015, 03:35

Re: What is the precise relationship between Fighting and HP

Implojin wrote:
asdu wrote:Learndb says the hp formula is Floor[(8 + Floor[(1+3*Fighting)/2]+Floor[11*XL/2]+Floor[Fighting*XL/14])*(1+Aptitude/10)]. Have fun with that.

Here's the code, which also handles temporary HP boosts not listed in the above formula:
https://github.com/crawl/crawl/blob/mas ... r.cc#L3855

What is "Floor"?

Ziggurat Zagger

Posts: 4341

Joined: Wednesday, 23rd October 2013, 07:56

Re: What is the precise relationship between Fighting and HP

monkeytor wrote:What is "Floor"?

It means always rounding down, e.g. Floor(5.8) = 5.
...MiAK}TeAMDrIE{FoVMVSFi}{MuVMGhGlVpMo}HaWrSpWz{OgGlTrMo}{CeWnMfBeMiSk}DrEE{GrFiFoGl}
DgEnFeNe{OpGlHuSu}DDArHaCKSpAEGrTmDgFEDsCjGhMoHuVM{HaAMBaEn}{HuMoHOWn}DsWzDDHu
{DgWnGnBe}FeIE{MiEnMfCj}SpNeBaEEGrFE{HaAKTrCK}DsFESpHu{FoArNaBe}FeEE{HOIEMiAE}GrGlHuWr

Ziggurat Zagger

Posts: 6317

Joined: Tuesday, 30th October 2012, 19:06

Re: What is the precise relationship between Fighting and HP

monkeytor wrote:
Implojin wrote:
asdu wrote:Learndb says the hp formula is Floor[(8 + Floor[(1+3*Fighting)/2]+Floor[11*XL/2]+Floor[Fighting*XL/14])*(1+Aptitude/10)]. Have fun with that.

Here's the code, which also handles temporary HP boosts not listed in the above formula:
https://github.com/crawl/crawl/blob/mas ... r.cc#L3855

What is "Floor"?

https://www.youtube.com/watch?v=zYKupOsaJmk
Spoiler: show
This high quality signature has been hidden for your protection. To unlock it's secret, send 3 easy payments of \$9.99 to me, by way of your nearest theta band or ley line. Complete your transmission by midnight tonight for a special free gift!

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 10 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.