refactor(Core): Add definition file for area table entries. (#22054)

This commit is contained in:
Benjamin Jackson
2025-05-09 09:48:02 -04:00
committed by GitHub
parent db62fe8310
commit 52799d76f6
146 changed files with 866 additions and 656 deletions

View File

@@ -18,6 +18,7 @@
#ifndef ACORE_DBCSTRUCTURE_H
#define ACORE_DBCSTRUCTURE_H
#include "AreaDefines.h"
#include "DBCEnums.h"
#include "Define.h"
#include "Util.h"
@@ -531,7 +532,7 @@ struct AreaTableEntry
// helpers
[[nodiscard]] bool IsSanctuary() const
{
if (mapid == 609)
if (mapid == MAP_EBON_HOLD)
return true;
return (flags & AREA_FLAG_SANCTUARY);
}
@@ -1369,7 +1370,7 @@ struct MapEntry
[[nodiscard]] bool IsContinent() const
{
return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571;
return MapID == MAP_EASTERN_KINGDOMS || MapID == MAP_KALIMDOR || MapID == MAP_OUTLAND || MapID == MAP_NORTHREND;
}
[[nodiscard]] bool IsDynamicDifficultyMap() const { return Flags & MAP_FLAG_DYNAMIC_DIFFICULTY; }