-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add exp table, level up methods to modifystatcontext
- Loading branch information
Showing
3 changed files
with
133 additions
and
1 deletion.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
src/common/Edelstein.Common.Gameplay/Constants/EXPTable.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
namespace Edelstein.Common.Gameplay.Constants; | ||
|
||
public static class EXPTable | ||
{ | ||
public static readonly int[] CharacterEXP; | ||
public static readonly int[] PetTameness; | ||
public static readonly int[] TamingMobTameness; | ||
|
||
static EXPTable() | ||
{ | ||
CharacterEXP = new int[201]; | ||
CharacterEXP[0] = 15; | ||
CharacterEXP[1] = 15; | ||
CharacterEXP[2] = 34; | ||
CharacterEXP[3] = 57; | ||
CharacterEXP[4] = 92; | ||
CharacterEXP[5] = 135; | ||
CharacterEXP[6] = 372; | ||
CharacterEXP[7] = 560; | ||
CharacterEXP[8] = 840; | ||
CharacterEXP[9] = 1242; | ||
|
||
for (var i = 10; i < 15; i++) CharacterEXP[i] = CharacterEXP[i - 1]; | ||
|
||
for (var i = 15; i < 30; i++) | ||
CharacterEXP[i] = (int)(CharacterEXP[i - 1] * 1.2 + 0.5); | ||
for (var i = 30; i < 35; i++) CharacterEXP[i] = CharacterEXP[i - 1]; | ||
|
||
for (var i = 35; i < 40; i++) | ||
CharacterEXP[i] = (int)(CharacterEXP[i - 1] * 1.2 + 0.5); | ||
for (var i = 40; i < 70; i++) | ||
CharacterEXP[i] = (int)(CharacterEXP[i - 1] * 1.08 + 0.5); | ||
|
||
for (var i = 70; i < 75; i++) CharacterEXP[i] = CharacterEXP[i - 1]; | ||
|
||
for (var i = 75; i < 120; i++) | ||
CharacterEXP[i] = (int)(CharacterEXP[i - 1] * 1.07 + 0.5); | ||
|
||
for (var i = 120; i < 125; i++) CharacterEXP[i] = CharacterEXP[i - 1]; | ||
|
||
for (var i = 125; i < 160; i++) | ||
CharacterEXP[i] = (int)(CharacterEXP[i - 1] * 1.07 + 0.5); | ||
for (var i = 160; i < 200; i++) | ||
CharacterEXP[i] = (int)(CharacterEXP[i - 1] * 1.06 + 0.5); | ||
|
||
CharacterEXP[200] = 0; | ||
|
||
PetTameness = new[] | ||
{ | ||
0x1, 0x3, 0x6, 0xE, 0x1F, 0x3C, 0x6C, 0x0B5, 0x11F, 0x1B2, | ||
0x278, 0x37B, 0x4C8, 0x66A, 0x871, 0x0AE9, 0x0DE5, 0x1173, 0x15A6, 0x1A91, | ||
0x2047, 0x26DE, 0x2E6A, 0x3704, 0x40C2, 0x4BBF, 0x5813, 0x65DA, 0x7530, 0x0 | ||
}; | ||
TamingMobTameness = new[] | ||
{ | ||
0x0, 0x14, 0x2D, 0x4B, 0x6F, 0x99, 0x0C9, 0x100, 0x13F, 0x185, | ||
0x1D3, 0x22A, 0x28B, 0x2F5, 0x36A, 0x3EB, 0x478, 0x511, 0x5B8, 0x66E, | ||
0x734, 0x80A, 0x8F2, 0x9ED, 0x0AFC, 0x0C21, 0x0D5C, 0x0EB0, 0x101E, 0x11A8 | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters