Core/DB: Fix AnimationData structure
Port From (https://github.com/TrinityCore/TrinityCore/commit/1e52f9fdf566320fd586127692c5a1c16e34f741)
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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`;
|
||||||
Reference in New Issue
Block a user