[Experience] Change Exp Calculations to be 64 bit where needed. (#2677)

* [Experience] Change Exp Calculations to be 64 bit where needed.

* Fix lua values

* Formatting
This commit is contained in:
Aeadoin
2022-12-30 22:03:30 -05:00
committed by GitHub
parent f962466573
commit 9c3c5b5230
18 changed files with 92 additions and 85 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ void Client::mod_client_death_duel(Mob* killerMob) { return; }
void Client::mod_client_death_env() { return; }
//Calculated xp before consider modifier, called whenever a client gets XP for killing a mob.
int32 Client::mod_client_xp(int32 in_xp, NPC *npc) { return(in_xp); }
int64 Client::mod_client_xp(int64 in_xp, NPC *npc) { return(in_xp); }
//Client XP formula. Changes here will cause clients to change level after gaining or losing xp.
//Either modify this before your server goes live, or be prepared to write a quest script that fixes levels.