Group Mobs Initial Implementation

* For now only mob.json is read for grouped mobs.
* Grouped mobs are fully functional granted the mobs.json is prepared correctly.
* Removed redundant move packet.
This commit is contained in:
2020-11-15 07:06:29 +00:00
committed by Gent S
parent e9ffbe6148
commit 883a1c17e6
3 changed files with 87 additions and 16 deletions

View File

@@ -51,6 +51,11 @@ struct Mob : public BaseNPC {
// drop
int dropType;
// group
int groupLeader = 0;
int offsetX, offsetY;
int groupMember[4] = {0, 0, 0, 0};
// temporary; until we're sure what's what
nlohmann::json data;