![]() |
#1 |
Veteran
Join Date: Oct 2016
Location: London-ish
Age: 50
Posts: 2,136
![]() |
do i get my CON bonus at CL1
i just noticed something that, well, it's been bugging me for a while, but i just now saw it happen. but in the back of my mind i must have always known.
my brand new half-troll mage (best class in the game) has just dinged from CL1 to CL2, and his HP have jumped from 12 to 25. WHAT ? i have CON 15. i must assume that works at +1 hp per level, and i must also have 1d12 hp per level. How did i manage to gain 13 hp in one level, if my starting hp was 12? Do we not get our CON bonus at CL1?
__________________
"i can take this dracolich" |
![]() |
![]() |
![]() |
#2 |
Prophet
Join Date: Dec 2009
Posts: 9,022
![]() |
At CON 15, you get an extra .5HP/level. At level 1, that means 12.5 HP, which rounds down to 12. A perfect roll on the hitdie at level 2 doubles that, to 25.
|
![]() |
![]() |
![]() |
#3 |
Veteran
Join Date: Oct 2016
Location: London-ish
Age: 50
Posts: 2,136
![]() |
aha!
is that the reason why sometimes you can get down to 0 hp and still be alive?
__________________
"i can take this dracolich" |
![]() |
![]() |
![]() |
#4 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,726
Donated: $40
![]() |
In most variants, 0HP is still enough. -1 is dead.
|
![]() |
![]() |
![]() |
#5 |
Prophet
Join Date: Dec 2009
Posts: 9,022
![]() |
Angband uses integer arithmetic for everything, so you can't actually have 12.5 HP. The .5 HP/level is represented in hundredths (so the value in the code is 50), and the non-integer portion of the calculation is discarded.
This is also why e.g. skill growths for classes are given in "growth per 10 levels" instead of "growth per level", and why the energy system for determining how quickly you get turns gives you a turn when you reach 100 energy, instead of when you reach 1 energy. The reason to do this is that when Angband was first written, many computers didn't have the ability to do floating-point calculations, because there was no Floating Point Unit (FPU) in their hardware. Sticking to integer-only made it possible to run Angband on a substantially larger number of computers. These days it's not so relevant though. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Chengband maulers' +1 INT bonus | ekolis | Variants | 1 | June 16, 2012 16:46 |
Reducing value of CON | Timo Pietilä | Vanilla | 18 | June 25, 2011 22:43 |
Getting con! | Sirridan | Vanilla | 7 | December 24, 2010 01:17 |
Fear & AC-bonus | miyazaki | Vanilla | 2 | August 19, 2009 15:29 |
Stat Bonus vs Level Gain, stagnation too! | Hariolor | Vanilla | 11 | September 13, 2008 00:09 |