Added speed to CombatNPC

- Mob's constructor sets speed
- MobAI.cpp now uses mob->speed
This commit is contained in:
2021-04-29 19:20:53 -05:00
parent 55f8dc94ce
commit 33ea5af8b7
3 changed files with 6 additions and 4 deletions

View File

@@ -101,6 +101,7 @@ struct CombatNPC : public BaseNPC {
int spawnY = 0;
int spawnZ = 0;
int level = 0;
int speed = 300;
void (*_stepAI)(CombatNPC*, time_t) = nullptr;