Difference between revisions of "FStatsHealthLevelMult"

Jump to navigation Jump to search
311 bytes added ,  11:04, 24 May 2006
redid formula in language agnoistc format and broken out into smaller terms
imported>DragoonWraith
(revert - there is no reason to have a C++ program in lieu of a formula)
imported>Nezroy
(redid formula in language agnoistc format and broken out into smaller terms)
<br/><br/>
 
TheTo fullcalculate formula for calculatingthe player health at a given level, should belet:
 
:endurance_delta = ''CurrentEndurance'' - ''StartingEndurance''
Health = (CurrentEndurance * ''FPCBaseHealthMult'') + [[(StartingEndurance * ''FStatsHealthLevelMult'') + (Current Endurance * ''FStatsHealthLevelMult'')] / 2 ] * (Level - 1)
 
:optimal_lvls = '''floor'''(endurance_delta / ''iLevelUp10Mult'')
Where CurrentEndurance is the endurance stat value at the desired level, and StartingEndurance is the endurance stat value the character has at level 1.
 
:partial_lvls = endurance_delta '''mod''' ''iLevelUp10Mult''
Note: I haven't checked whether Endurance changes are retroactively applied to levelling bonuses, in which case the formula for health at a level would simply be:
 
:remain_lvls = ''CurrentLevel'' - optimal_lvls - 1
Health = (CurrentEndurance * ''FPCBaseHealthMult'') + (CurrentEndurance * ''FStatsHealthLevelMult'') * (Level - 1)▼
 
:base_health = (''CurrentLevel'' - 1) * ''StartingEndurance''
 
:lvl_health = (optimal_lvls + 1) * ''iLevelUp10Mult'' * optimal_lvls / 2
 
:max_base = base_health + lvl_health + (endurance_delta * remain_lvls)
 
:min_base = base_health + lvl_health + (partial_lvls * (optimal_lvls + 1))
 
<br/>With these terms, the maximum possible health for a given level, assuming endurance was raised as early as possible, is:
 
▲Health = :'''floor'''((''CurrentEndurance'' * ''FPCBaseHealthMult''2) + (CurrentEndurance * ''FStatsHealthLevelMult'') * (Level - 1max_base))
 
<br/>Likewise, the minimum possible health for a given level, assuming endurance was raised as late as possible, is:
 
:'''floor'''((''CurrentEndurance'' * 2) + (''FStatsHealthLevelMult'' * min_base))
 
|-
Anonymous user

Navigation menu