Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old September 2, 2017, 19:25   #1
Sky
Knight
 
Join Date: Oct 2016
Location: Glasgae
Age: 44
Posts: 675
Sky is on a distinguished road
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?
__________________
#ARKENSTONESMATTER
Sky is offline   Reply With Quote
Old September 2, 2017, 20:14   #2
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 7,943
Derakon is on a distinguished road
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.
Derakon is offline   Reply With Quote
Old September 3, 2017, 10:36   #3
Sky
Knight
 
Join Date: Oct 2016
Location: Glasgae
Age: 44
Posts: 675
Sky is on a distinguished road
aha!

is that the reason why sometimes you can get down to 0 hp and still be alive?
__________________
#ARKENSTONESMATTER
Sky is offline   Reply With Quote
Old September 3, 2017, 11:27   #4
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,150
Donated: $40
Pete Mack is on a distinguished road
In most variants, 0HP is still enough. -1 is dead.
Pete Mack is offline   Reply With Quote
Old September 3, 2017, 14:28   #5
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 7,943
Derakon is on a distinguished road
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.
Derakon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 23:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.