Difference between revisions of "FStatsHealthLevelMult"

Jump to navigation Jump to search
764 bytes added ,  22:04, 15 May 2006
no edit summary
imported>Lobosolitario
imported>Inbredmonkey
<br/><br/>
 
The following valid c++ code calculates a player's maximum health.
The full formula for calculating player health at a given level should be:
 
max_max_health denotes the maximum health a player would have if that player recieved and used the highest possible endurance multipliers every level until reaching the current endurance.
Health = (CurrentEndurance * ''FPCBaseHealthMult'') + [[(StartingEndurance * ''FStatsHealthLevelMult'') + (Current Endurance * ''FStatsHealthLevelMult'')] / 2 ] * (Level - 1)
 
min_max_health denotes the maximum health a player would have if the player raised endurance as late as possible.
Where CurrentEndurance is the endurance stat value at the desired level, and StartingEndurance is the endurance stat value the character has at level 1.▼
 
▲Wherecurrent_endurance CurrentEndurance is the endurance stat value at the desired level, and StartingEndurancestarting_endurance is the endurance stat value the character has at level 1.
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:
 
<pre>int max_levels = (current_endurance - starting_endurance) / iLevelUp10Mult;
Health = (CurrentEndurance * ''FPCBaseHealthMult'') + (CurrentEndurance * ''FStatsHealthLevelMult'') * (Level - 1)
int partial_level_amt = (current_endurance - starting_endurance) % iLevelUp10Mult;
int remaining_levels = current_level - 1 - max_levels;
 
float max_max_health = (current_endurance * 2) + (FStatsHealthLevelMult *
(((current_level - 1) * starting_endurance) +
(iLevelUp10Mult * (max_levels + 1) * max_levels / 2) +
((current_endurance - starting_endurance) * remaining_levels)));
 
float min_max_health = (current_endurance * 2) + (FStatsHealthLevelMult *
(((current_level - 1) * starting_endurance) +
(iLevelUp10Mult * (max_levels + 1) * max_levels / 2) +
(partial_level_amt * (max_levels + 1))));</pre>
 
A player's max health can vary greatly depending on how early they raised endurance!
 
Example:
Breton with starting endurance of 35.<br>
At level 46, with 100 endurance:<br>
highest possible health: 611<br>
lowest possible health: 403
 
|-
Anonymous user

Navigation menu