Max HP

From Project Alfheim Wiki
Jump to navigation Jump to search

General

Max HP (also called MHP) affects HP Recovery, Increase HP Recovery, and Spirits Recovery.

Base HP Calculation

Ragnarok Online does not calculate the base maximum HP of players in real time. Instead, this lookup table is used. The following pseudo-code describes how base HP is calculated:

var BASE_HP;

BASE_HP = 35 + (BASE_LEVEL * HP_JOB_B);

for (var i = 2; i <= BASE_LEVEL; i++)     
{
  BASE_HP += Math.round(HP_JOB_A * i);
}

Where:

HP_JOB_A: See the job modifier table
HP_JOB_B: The number in parenthesis, if any. Otherwise 5.

Note:

Base HP is the same for all characters with the same job and same level.

Max HP Calculation

Maximum HP is calculated in real time from a player's Base HP, VIT, and the sum of all HP modifiers the player has equipped (see modifiers below). The following pseudo-code describes how maximum HP is calculated:

var MAX_HP;
      
MAX_HP = Math.floor( BASE_HP * (1 + VIT * 0.01) * TRANS_MOD );
      
MAX_HP += HP_MOD_A;
      
MAX_HP = Math.floor( MAX_HP * (1 + HP_MOD_B * 0.01) );

Where:

HP_MOD_A: Sum of additive modifiers
HP_MOD_B: Sum of multiplicative modifiers
TRANS_MOD: 1.25 for transcendent classes, 1 otherwise

Additive Modifiers

Multiplicative Modifiers

Job Modifiers

Novices

Novice Super Novice
0 0

First Job Classes

Swordman Archer Thief Acolyte Merchant Mage
0.7 0.5 0.5 0.4 0.4 0.3

2-1 Job Classes

Knight Hunter Assassin Priest Blacksmith Wizard
1.5 0.85 1.1 0.75 0.9 0.55

2-2 Job Classes

Crusader Dancer/Bard Rogue Monk Alchemist Sage
1.1 (7) 0.75 (3) 0.85 0.9 (6.5) 0.9 0.75

Expanded Job Classes

TaeKwon Kid Ninja Gunslinger TaeKwon Master Soul Linker
0.7 0.8 (0) 0.75 (0) 0.9 (6.5) 0.75