Mob movement smoothening + Bugfixes

* Mobs now move at a tickrate per second of 2 as opposed to less than 1 before.
* How lerping works was changed slightly, mobs are bumped down to half the speed to account for the higher tickrate.
* Damage formula was altered to more closely match the OG game.
This commit is contained in:
2020-09-27 03:28:06 +01:00
parent 4fea2ae896
commit a5d3160588
2 changed files with 34 additions and 15 deletions

View File

@@ -104,5 +104,5 @@ namespace MobManager {
void killMob(CNSocket *sock, Mob *mob);
void giveReward(CNSocket *sock);
std::pair<int,int> lerp(int, int, int, int, int);
std::pair<int,int> getDamage(int, int, bool);
std::pair<int,int> getDamage(int, int, bool, int);
}