Core/DB: Fix AnimationData structure

Port From (https://github.com/TrinityCore/TrinityCore/commit/1e52f9fdf566320fd586127692c5a1c16e34f741)
This commit is contained in:
hondacrx
2021-11-03 17:10:04 -04:00
parent 798066708f
commit 418a0ec8ca
3 changed files with 4 additions and 3 deletions
@@ -43,7 +43,7 @@ namespace Framework.Database
PrepareStatement(HotfixStatements.SEL_ADVENTURE_MAP_POI_LOCALE, "SELECT ID, Title_lang, Description_lang FROM adventure_map_poi_locale WHERE locale = ?"); PrepareStatement(HotfixStatements.SEL_ADVENTURE_MAP_POI_LOCALE, "SELECT ID, Title_lang, Description_lang FROM adventure_map_poi_locale WHERE locale = ?");
// AnimationData.db2 // AnimationData.db2
PrepareStatement(HotfixStatements.SEL_ANIMATION_DATA, "SELECT ID, BehaviorID, BehaviorTier, Fallback, Flags1, Flags2 FROM animation_data"); PrepareStatement(HotfixStatements.SEL_ANIMATION_DATA, "SELECT ID, Fallback, BehaviorTier, BehaviorID, Flags1, Flags2 FROM animation_data");
// AnimKit.db2 // AnimKit.db2
PrepareStatement(HotfixStatements.SEL_ANIM_KIT, "SELECT ID, OneShotDuration, OneShotStopAnimKitID, LowDefAnimKitID FROM anim_kit"); PrepareStatement(HotfixStatements.SEL_ANIM_KIT, "SELECT ID, OneShotDuration, OneShotStopAnimKitID, LowDefAnimKitID FROM anim_kit");
+2 -2
View File
@@ -97,9 +97,9 @@ namespace Game.DataStorage
public sealed class AnimationDataRecord public sealed class AnimationDataRecord
{ {
public uint Id; public uint Id;
public ushort BehaviorID; public ushort Fallback;
public byte BehaviorTier; public byte BehaviorTier;
public int Fallback; public int BehaviorID;
public int[] Flags = new int[2]; public int[] Flags = new int[2];
} }
@@ -0,0 +1 @@
ALTER TABLE `animation_data` CHANGE COLUMN `BehaviorID` `Fallback` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0' AFTER `ID`, CHANGE COLUMN `Fallback` `BehaviorID` INT(11) NOT NULL DEFAULT '0' AFTER `BehaviorTier`;