Talk:Experience: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 16: Line 16:
7938 xp @ level 50<br>
7938 xp @ level 50<br>
8092 xp @ level 51
8092 xp @ level 51


Following formula to calculate experience points works for levels 0 - 6:

LEVEL * 500 + (15 * LEVEL * (LEVEL - 1) / 2)

For levels 5 and 6, following formula is added:

(LEVEL - 4) ^ 2

C# code snippet:
int baseLevel = 500 * level;
int triangularNumberSequenceModifier = 15 * level * (level - 1) / 2;
int squareModifier = level - 4 > 0 ? (int)Math.Pow(level - 4, 2) : 0;

return baseLevel + triangularNumberSequenceModifier + squareModifier;
This stops working after level 6.

Revision as of 11:22, 9 November 2024

47 requires 660,881 xp
48 requires 690,847 xp
49 requires 721,396 xp
50 requires 752,539 xp
51 requires 784,287 xp





knowledge xp boost
4542 xp @ level 21
7638 xp @ level 48
7786 xp @ level 49
7938 xp @ level 50
8092 xp @ level 51


Following formula to calculate experience points works for levels 0 - 6:

LEVEL * 500 + (15 * LEVEL * (LEVEL - 1) / 2)

For levels 5 and 6, following formula is added:

(LEVEL - 4) ^ 2

C# code snippet:

   int baseLevel = 500 * level;
   int triangularNumberSequenceModifier = 15 * level * (level - 1) / 2;
   int squareModifier = level - 4 > 0 ? (int)Math.Pow(level - 4, 2) : 0;
   return baseLevel + triangularNumberSequenceModifier + squareModifier;
   
This stops working after level 6.