Variable damage to/from mobs

* Player weapons and armor ratings are taken into account when damaging/getting damaged by mobs.
* Players have a 5% chance to critical strike mobs, this doubles the player's weapon power.
* Aside from player and mob stat based damage variance, there is also an inherent 20% variance to any damage.
This commit is contained in:
2020-09-27 02:53:03 +01:00
parent b4fb449e69
commit 4fea2ae896
7 changed files with 61 additions and 9 deletions

View File

@@ -104,4 +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);
}