Per Level and fractions

So I'm looking to make an adjustment to the Path of the Warrior, whom I feel is slightly undervalued compared to the Defender, and I'd like to give them more hit points.  However, in terms of balance, probably +1HP/level is too much.  So the question is how to give them either a 0.5/Level or +1 HP every TWO levels.

Is <PerLevel>1</PerLevel> a boolean value?  I'm guessing so since I see no other value than 1.  Or can it be made to be <PerLevel>2</PerLevel>?

Since I guess not, how does the game handle

<StrVal>UnitStat_HitPoints</StrVal>
<Value>0.5</Value>
<PerLevel>1</PerLevel>

I can't find any instance of fractional HP, and Im not sure if the game manages that value as a Floating Point/Double or a Int.

5,647 views 5 replies
Reply #1 Top

perlevel is a boolean. If the value is 0.5 it will get 1 hp every 2 levels, not sure which way it gets rounded though you'll have to test.

Reply #2 Top

Quoting Heavenfall, reply 1
perlevel is a boolean. If the value is 0.5 it will get 1 hp every 2 levels, not sure which way it gets rounded though you'll have to test.
End of Heavenfall's quote

Will try it and let you know.  Have to get through this playthrough first though.

Reply #3 Top

I use .5 per level and it rounds down. It's perfect for me. Can also do .33 etc...

Reply #4 Top

This will work for other things as well. Initiative, precision etc.

Reply #5 Top

Just waiting until I can get a hero with Path of the Warrior - stupid playthrough gave me only admins at the low level and I raced to Heroes (on epic pacing, this is not much of a race) to get Naddi Arena recruited.  I'll get out how the new POTW works out probably tonight.  I've also moved Sweep out of POTA and into POTW because it made WAY more sense in there.