Add another layer of randomization to roam box logic, npc's who weren't originally spawned in water won't roambox into water

This commit is contained in:
Akkadius
2018-08-18 22:01:46 -05:00
parent 4b6ab34fd9
commit 834062fbf9
7 changed files with 61 additions and 8 deletions
+8
View File
@@ -5455,3 +5455,11 @@ void Mob::DoOffHandAttackRounds(Mob *target, ExtraAttackOptions *opts)
}
}
}
bool Mob::GetWasSpawnedInWater() const {
return spawned_in_water;
}
void Mob::SetSpawnedInWater(bool spawned_in_water) {
Mob::spawned_in_water = spawned_in_water;
}