Difference between revisions of "FStatsHealthLevelMult"
Jump to navigation
Jump to search
no edit summary
imported>Lobosolitario |
imported>Inbredmonkey |
||
|
<br/><br/>
The following valid c++ code calculates a player's maximum health.
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.
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.▼
▲
<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
|-
| |||