Difference between revisions of "FStatsHealthLevelMult"

Jump to navigation Jump to search
764 bytes removed ,  00:42, 16 May 2006
revert - there is no reason to have a C++ program in lieu of a formula
imported>Inbredmonkey
imported>DragoonWraith
(revert - there is no reason to have a C++ program in lieu of a formula)
<br/><br/>
 
The full formula for calculating player health at a given level should be:
The following valid c++ code calculates a player's maximum health.
 
Health = (CurrentEndurance * ''FPCBaseHealthMult'') + [[(StartingEndurance * ''FStatsHealthLevelMult'') + (Current Endurance * ''FStatsHealthLevelMult'')] / 2 ] * (Level - 1)
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.
 
current_enduranceWhere CurrentEndurance is the endurance stat value at the desired level, and starting_enduranceStartingEndurance is the endurance stat value the character has at level 1.▼
min_max_health denotes the maximum health a player would have if the player raised endurance as late as possible.
 
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:
▲current_endurance is the endurance stat value at the desired level, and starting_endurance is the endurance stat value the character has at level 1.
 
Health = (CurrentEndurance * ''FPCBaseHealthMult'') + (CurrentEndurance * ''FStatsHealthLevelMult'') * (Level - 1)
<pre>int max_levels = (current_endurance - starting_endurance) / iLevelUp10Mult;
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
 
|-

Navigation menu