Hitpoints: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Updating the formula for working out experience for the damage done |
||
Line 2: | Line 2: | ||
== Experience Calculation == | == Experience Calculation == | ||
Experience gained in [[Hitpoints]] is calculated using the formula: <code style="background: var(--bg-contrast) !important; border: 1px solid var(--border-color-base) !important;">floor(4/3 | Experience gained in [[Hitpoints]] is calculated using the formula: <code style="background: var(--bg-contrast) !important; border: 1px solid var(--border-color-base) !important;">floor(4/3 × damage)</code> | ||
Because of the floor rounding, you may lose small amounts of experience if your damage dealt isn't divisible by 3. For example: | Because of the floor rounding, you may lose small amounts of experience if your damage dealt isn't divisible by 3. For example: |
Latest revision as of 15:02, 9 July 2025
Hitpoints is a combat-related skill that determines how much damage a player or NPC can withstand before dying. Food can be consumed to restore lost Hitpoints, and they also regenerate passively over time—healing 1 point every 100 Ticks (60s)—both during and outside of combat. This allows for slow, natural recovery without the use of food.
Experience Calculation[edit]
Experience gained in Hitpoints is calculated using the formula: floor(4/3 × damage)
Because of the floor rounding, you may lose small amounts of experience if your damage dealt isn't divisible by 3. For example:
- A hit of 3 or 6 will yield full XP.
- A hit of 2 or 5 will result in a decimal value (e.g., 10.66), which is rounded down to 10.
This rounding loss becomes less significant as your hits get larger. (Losing 0.33 XP from a 2-damage hit is more impactful than losing 0.33 XP from a 20-damage hit.)