mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
[Improvement] Flee Overhaul (#4407)
* Lots of flee updates primarily based on TAKPs source * Update Values to EQEmu values. * Add rule * Adjustments to fear pathing * Flee/Pathing adjustments (More TAKP code adjusted) * updates * Updates (Massaged functions from TAKP source) --------- Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
@@ -2686,6 +2686,22 @@ uint32 Zone::GetSpawnKillCount(uint32 in_spawnid) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool Zone::IsWaterZone(float z)
|
||||
{
|
||||
|
||||
switch (GetZoneID()) {
|
||||
case Zones::KEDGE:
|
||||
return true;
|
||||
case Zones::POWATER:
|
||||
if (z < 0.0f) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void Zone::SetIsHotzone(bool is_hotzone)
|
||||
{
|
||||
Zone::is_hotzone = is_hotzone;
|
||||
|
||||
Reference in New Issue
Block a user