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

Post Tuesday, 30th May 2017, 04:08

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: 4341

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

Post Tuesday, 30th May 2017, 06:23

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: 319

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

Post Tuesday, 30th May 2017, 17:01

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: 1818

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

Post Tuesday, 30th May 2017, 17:24

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 (48). Remaining (15): 5 species: Ba, Fe, Mu, Na, Op; 6 Backgrounds: Tm, AM, Wr, Su, AE, Ar; 3 gods: Jiyv, newNem, WJC

Slime Squisher

Posts: 330

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

Location: France

Post Tuesday, 30th May 2017, 17:46

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

Shoals Surfer

Posts: 317

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

Post Tuesday, 30th May 2017, 18:42

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

Post Tuesday, 30th May 2017, 21:15

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"?
User avatar

Ziggurat Zagger

Posts: 4288

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

Post Tuesday, 30th May 2017, 22:25

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.
...{HaBeKoAK}CeVM{MfWnMiAK}TeAMDrIE{FoVMVSFi}{MuVMGhGlVpMo}HaWrSpWz{OgGlTrMo}{CeWnMfBeMiSk}
DrEE{GrFiFoGl}DgEnFeNe{OpGlHuSu}DDArHaCKSpAEGrTmDgFEDsCjGhMoHuVM{HaAMBaEn}{HuMoHOWn}
DsWzDDHu{DgWnGnBe}FeIE{MiEnMfCj}SpNeBaEEGrFE{HaAKTrCK}DsFESpHu{FoArNaBe}FeEE

Ziggurat Zagger

Posts: 6182

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

Post Wednesday, 31st May 2017, 00:01

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 5 guests

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