diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-06-18 11:37:07 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-06-18 11:37:07 +0200 |
| commit | ceb8d561b44579118b109a9ff71ba415df53bbdc (patch) | |
| tree | b2a6b87afa6a2b83b8040b8632a87cb9a8308775 /src/server/game/DataStores | |
| parent | e02e8a474244c229cc34c4efb987e24b6dd417f5 (diff) | |
Core: Updated to 11.1.7
Diffstat (limited to 'src/server/game/DataStores')
| -rw-r--r-- | src/server/game/DataStores/DB2LoadInfo.h | 16 | ||||
| -rw-r--r-- | src/server/game/DataStores/DB2Metadata.h | 150 | ||||
| -rw-r--r-- | src/server/game/DataStores/DB2Structure.h | 13 | ||||
| -rw-r--r-- | src/server/game/DataStores/DBCEnums.h | 6 |
4 files changed, 143 insertions, 42 deletions
diff --git a/src/server/game/DataStores/DB2LoadInfo.h b/src/server/game/DataStores/DB2LoadInfo.h index e903b611777..f14f8a85f97 100644 --- a/src/server/game/DataStores/DB2LoadInfo.h +++ b/src/server/game/DataStores/DB2LoadInfo.h @@ -733,7 +733,7 @@ struct BattlemasterListLoadInfo { .IsSigned = false, .Type = FT_STRING, .Name = "GameType" }, { .IsSigned = false, .Type = FT_STRING, .Name = "ShortDescription" }, { .IsSigned = false, .Type = FT_STRING, .Name = "LongDescription" }, - { .IsSigned = true, .Type = FT_BYTE, .Name = "InstanceType" }, + { .IsSigned = true, .Type = FT_INT, .Name = "PvpType" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "MinLevel" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "MaxLevel" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "RatedPlayers" }, @@ -1306,13 +1306,15 @@ struct ConditionalContentTuningLoadInfo struct ContentTuningLoadInfo { - static constexpr DB2FieldMeta Fields[15] = + static constexpr DB2FieldMeta Fields[17] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = true, .Type = FT_INT, .Name = "Flags" }, { .IsSigned = true, .Type = FT_INT, .Name = "ExpansionID" }, { .IsSigned = true, .Type = FT_INT, .Name = "HealthItemLevelCurveID" }, { .IsSigned = true, .Type = FT_INT, .Name = "DamageItemLevelCurveID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "HealthPrimaryStatCurveID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "DamagePrimaryStatCurveID" }, { .IsSigned = true, .Type = FT_INT, .Name = "MinLevel" }, { .IsSigned = true, .Type = FT_INT, .Name = "MaxLevel" }, { .IsSigned = true, .Type = FT_INT, .Name = "MinLevelType" }, @@ -1325,7 +1327,7 @@ struct ContentTuningLoadInfo { .IsSigned = false, .Type = FT_FLOAT, .Name = "QuestXpMultiplier" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 15, &ContentTuningMeta::Instance, HOTFIX_SEL_CONTENT_TUNING }; + static constexpr DB2LoadInfo Instance{ Fields, 17, &ContentTuningMeta::Instance, HOTFIX_SEL_CONTENT_TUNING }; }; struct ContentTuningXExpectedLoadInfo @@ -4214,7 +4216,7 @@ struct PlayerConditionLoadInfo { .IsSigned = false, .Type = FT_INT, .Name = "CurrentCompletedQuestLogic" }, { .IsSigned = false, .Type = FT_INT, .Name = "SpellLogic" }, { .IsSigned = false, .Type = FT_INT, .Name = "ItemLogic" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "ItemFlags" }, + { .IsSigned = true, .Type = FT_INT, .Name = "ItemFlags" }, { .IsSigned = false, .Type = FT_INT, .Name = "AuraSpellLogic" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "WorldStateExpressionID" }, { .IsSigned = true, .Type = FT_INT, .Name = "WeatherID" }, @@ -4627,7 +4629,7 @@ struct QuestV2LoadInfo static constexpr DB2FieldMeta Fields[3] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, - { .IsSigned = false, .Type = FT_SHORT, .Name = "UniqueBitFlag" }, + { .IsSigned = true, .Type = FT_INT, .Name = "UniqueBitFlag" }, { .IsSigned = true, .Type = FT_INT, .Name = "UiQuestDetailsTheme" }, }; @@ -5850,7 +5852,7 @@ struct TalentLoadInfo { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING, .Name = "Description" }, { .IsSigned = false, .Type = FT_BYTE, .Name = "TierID" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "Flags" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Flags" }, { .IsSigned = false, .Type = FT_BYTE, .Name = "ColumnIndex" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "TabID" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "ClassID" }, @@ -6772,7 +6774,7 @@ struct WmoAreaTableLoadInfo { .IsSigned = false, .Type = FT_SHORT, .Name = "IntroSound" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "UwIntroSound" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "AreaTableID" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "Flags" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Flags" }, }; static constexpr DB2LoadInfo Instance{ Fields, 15, &WMOAreaTableMeta::Instance, HOTFIX_SEL_WMO_AREA_TABLE }; diff --git a/src/server/game/DataStores/DB2Metadata.h b/src/server/game/DataStores/DB2Metadata.h index c71bbabf68c..33da4246e1f 100644 --- a/src/server/game/DataStores/DB2Metadata.h +++ b/src/server/game/DataStores/DB2Metadata.h @@ -1425,6 +1425,74 @@ struct ArtifactUnlockMeta }; }; +struct AssistedCombatMeta +{ + static constexpr DB2MetaField Fields[2] = + { + { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + }; + + static constexpr DB2Meta Instance = + { + .FileDataId = 6698666, + .IndexField = 0, + .ParentIndexField = 1, + .FieldCount = 2, + .FileFieldCount = 2, + .LayoutHash = 0x5A49E0BC, + .Fields = Fields + }; +}; + +struct AssistedCombatRuleMeta +{ + static constexpr DB2MetaField Fields[8] = + { + { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + }; + + static constexpr DB2Meta Instance = + { + .FileDataId = 6698667, + .IndexField = 0, + .ParentIndexField = 7, + .FieldCount = 8, + .FileFieldCount = 7, + .LayoutHash = 0x43CDA4C0, + .Fields = Fields + }; +}; + +struct AssistedCombatStepMeta +{ + static constexpr DB2MetaField Fields[4] = + { + { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + }; + + static constexpr DB2Meta Instance = + { + .FileDataId = 6698668, + .IndexField = 0, + .ParentIndexField = 2, + .FieldCount = 4, + .FileFieldCount = 4, + .LayoutHash = 0x89C93557, + .Fields = Fields + }; +}; + struct AuctionHouseMeta { static constexpr DB2MetaField Fields[4] = @@ -2176,7 +2244,7 @@ struct BattlemasterListMeta { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, @@ -2197,7 +2265,7 @@ struct BattlemasterListMeta .ParentIndexField = -1, .FieldCount = 16, .FileFieldCount = 16, - .LayoutHash = 0x0063AE4C, + .LayoutHash = 0x764135B1, .Fields = Fields }; }; @@ -4866,7 +4934,7 @@ struct ContentRestrictionRuleSetMeta struct ContentTuningMeta { - static constexpr DB2MetaField Fields[15] = + static constexpr DB2MetaField Fields[17] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, @@ -4882,6 +4950,8 @@ struct ContentTuningMeta { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true }, }; @@ -4890,9 +4960,29 @@ struct ContentTuningMeta .FileDataId = 1962930, .IndexField = 0, .ParentIndexField = -1, - .FieldCount = 15, - .FileFieldCount = 15, - .LayoutHash = 0x7B58533B, + .FieldCount = 17, + .FileFieldCount = 17, + .LayoutHash = 0xCD32761B, + .Fields = Fields + }; +}; + +struct ContentTuningXDifficultyMeta +{ + static constexpr DB2MetaField Fields[2] = + { + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + }; + + static constexpr DB2Meta Instance = + { + .FileDataId = 7001981, + .IndexField = -1, + .ParentIndexField = 1, + .FieldCount = 2, + .FileFieldCount = 1, + .LayoutHash = 0xD976173D, .Fields = Fields }; }; @@ -5763,7 +5853,7 @@ struct CreatureFamilyMeta .ParentIndexField = -1, .FieldCount = 9, .FileFieldCount = 9, - .LayoutHash = 0x126721A8, + .LayoutHash = 0x4EBC1C18, .Fields = Fields }; }; @@ -6505,7 +6595,7 @@ struct DifficultyMeta .ParentIndexField = -1, .FieldCount = 14, .FileFieldCount = 14, - .LayoutHash = 0x017A4F91, + .LayoutHash = 0x31965C41, .Fields = Fields }; }; @@ -7387,7 +7477,7 @@ struct GameObjectAnimGroupMemberMeta { { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, }; @@ -7398,7 +7488,7 @@ struct GameObjectAnimGroupMemberMeta .ParentIndexField = 0, .FieldCount = 4, .FileFieldCount = 4, - .LayoutHash = 0xD36FC187, + .LayoutHash = 0xE5352F37, .Fields = Fields }; }; @@ -9443,7 +9533,7 @@ struct GroundEffectDoodadMeta static constexpr DB2MetaField Fields[9] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true }, @@ -9460,7 +9550,7 @@ struct GroundEffectDoodadMeta .ParentIndexField = -1, .FieldCount = 9, .FileFieldCount = 9, - .LayoutHash = 0xD8C42C51, + .LayoutHash = 0xCFD94A21, .Fields = Fields }; }; @@ -12467,7 +12557,7 @@ struct LightSkyboxMeta static constexpr DB2MetaField Fields[4] = { { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; @@ -12479,7 +12569,7 @@ struct LightSkyboxMeta .ParentIndexField = -1, .FieldCount = 4, .FileFieldCount = 4, - .LayoutHash = 0x407FEBCF, + .LayoutHash = 0x9D4956FF, .Fields = Fields }; }; @@ -13147,7 +13237,7 @@ struct MapMeta .ParentIndexField = -1, .FieldCount = 25, .FileFieldCount = 25, - .LayoutHash = 0xE0196C63, + .LayoutHash = 0x75863E23, .Fields = Fields }; }; @@ -15488,7 +15578,7 @@ struct PlayerConditionMeta { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, @@ -15564,7 +15654,7 @@ struct PlayerConditionMeta .ParentIndexField = -1, .FieldCount = 86, .FileFieldCount = 86, - .LayoutHash = 0x91789B48, + .LayoutHash = 0x7A27D6F8, .Fields = Fields }; }; @@ -16710,7 +16800,7 @@ struct QuestV2Meta static constexpr DB2MetaField Fields[3] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; @@ -16721,7 +16811,7 @@ struct QuestV2Meta .ParentIndexField = -1, .FieldCount = 3, .FileFieldCount = 3, - .LayoutHash = 0x46207E09, + .LayoutHash = 0x1854BDB9, .Fields = Fields }; }; @@ -16733,7 +16823,7 @@ struct QuestV2CliTaskMeta { .Type = FT_LONG, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true }, @@ -16763,7 +16853,7 @@ struct QuestV2CliTaskMeta .ParentIndexField = -1, .FieldCount = 24, .FileFieldCount = 24, - .LayoutHash = 0xC8D602DB, + .LayoutHash = 0xC0E0D02B, .Fields = Fields }; }; @@ -17170,7 +17260,7 @@ struct ResistancesMeta static constexpr DB2MetaField Fields[3] = { { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, }; @@ -17181,7 +17271,7 @@ struct ResistancesMeta .ParentIndexField = -1, .FieldCount = 3, .FileFieldCount = 3, - .LayoutHash = 0xF7AC4E26, + .LayoutHash = 0xED08F596, .Fields = Fields }; }; @@ -20670,7 +20760,7 @@ struct StationeryMeta static constexpr DB2MetaField Fields[3] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 2, .IsSigned = true }, }; @@ -20681,7 +20771,7 @@ struct StationeryMeta .ParentIndexField = -1, .FieldCount = 3, .FileFieldCount = 3, - .LayoutHash = 0xF075ED96, + .LayoutHash = 0x071EF9E6, .Fields = Fields }; }; @@ -20753,7 +20843,7 @@ struct TalentMeta { { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, @@ -20774,7 +20864,7 @@ struct TalentMeta .ParentIndexField = -1, .FieldCount = 14, .FileFieldCount = 14, - .LayoutHash = 0x4D999D55, + .LayoutHash = 0x147B0045, .Fields = Fields }; }; @@ -23840,7 +23930,7 @@ struct WMOAreaTableMeta { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; static constexpr DB2Meta Instance = @@ -23850,7 +23940,7 @@ struct WMOAreaTableMeta .ParentIndexField = 2, .FieldCount = 15, .FileFieldCount = 15, - .LayoutHash = 0x58247DE7, + .LayoutHash = 0xC5A7B977, .Fields = Fields }; }; @@ -24225,7 +24315,7 @@ struct WeaponImpactSoundsMeta .ParentIndexField = -1, .FieldCount = 7, .FileFieldCount = 7, - .LayoutHash = 0x21DD049D, + .LayoutHash = 0xA77CBD9D, .Fields = Fields }; }; diff --git a/src/server/game/DataStores/DB2Structure.h b/src/server/game/DataStores/DB2Structure.h index 46e8346ca9f..bb9a5e55c43 100644 --- a/src/server/game/DataStores/DB2Structure.h +++ b/src/server/game/DataStores/DB2Structure.h @@ -512,7 +512,7 @@ struct BattlemasterListEntry LocalizedString GameType; LocalizedString ShortDescription; LocalizedString LongDescription; - int8 InstanceType; + int32 PvpType; int8 MinLevel; int8 MaxLevel; int8 RatedPlayers; @@ -525,6 +525,7 @@ struct BattlemasterListEntry int32 IconFileDataID; int32 RequiredPlayerConditionID; + BattlemasterType GetType() const { return static_cast<BattlemasterType>(PvpType); } EnumFlag<BattlemasterListFlags> GetFlags() const { return static_cast<BattlemasterListFlags>(Flags); } }; @@ -944,6 +945,8 @@ struct ContentTuningEntry int32 ExpansionID; int32 HealthItemLevelCurveID; int32 DamageItemLevelCurveID; + int32 HealthPrimaryStatCurveID; + int32 DamagePrimaryStatCurveID; int32 MinLevel; int32 MaxLevel; int32 MinLevelType; @@ -3170,7 +3173,7 @@ struct PlayerConditionEntry uint32 CurrentCompletedQuestLogic; uint32 SpellLogic; uint32 ItemLogic; - uint8 ItemFlags; + int32 ItemFlags; uint32 AuraSpellLogic; uint16 WorldStateExpressionID; int32 WeatherID; @@ -3407,7 +3410,7 @@ struct QuestSortEntry struct QuestV2Entry { uint32 ID; - uint16 UniqueBitFlag; + int32 UniqueBitFlag; int32 UiQuestDetailsTheme; }; @@ -4182,7 +4185,7 @@ struct TalentEntry uint32 ID; LocalizedString Description; uint8 TierID; - uint8 Flags; + int32 Flags; uint8 ColumnIndex; uint16 TabID; int8 ClassID; @@ -4839,7 +4842,7 @@ struct WMOAreaTableEntry uint16 IntroSound; uint16 UwIntroSound; uint16 AreaTableID; - uint8 Flags; + int32 Flags; }; struct WorldEffectEntry diff --git a/src/server/game/DataStores/DBCEnums.h b/src/server/game/DataStores/DBCEnums.h index b5537b643ba..951ca42004e 100644 --- a/src/server/game/DataStores/DBCEnums.h +++ b/src/server/game/DataStores/DBCEnums.h @@ -270,6 +270,12 @@ enum class BattlePetSpeciesFlags : int32 DEFINE_ENUM_FLAG(BattlePetSpeciesFlags); +enum class BattlemasterType : int32 +{ + Battleground = 0, + Arena = 1, +}; + enum class BattlemasterListFlags : uint32 { InternalOnly = 0x01, |
