Core/DataStores: Updated db2 structures to 9.1.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/d52c00a8fe79186013980af0e2caa3fd13c0c5fa)
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Game.Garrisons
|
||||
_garrisonBuildingPlotInstances[MathFunctions.MakePair64(buildingPlotInst.GarrBuildingID, buildingPlotInst.GarrSiteLevelPlotInstID)] = buildingPlotInst.Id;
|
||||
|
||||
foreach (GarrBuildingRecord building in CliDB.GarrBuildingStorage.Values)
|
||||
_garrisonBuildingsByType.Add(building.BuildingType, building.Id);
|
||||
_garrisonBuildingsByType.Add((byte)building.BuildingType, building.Id);
|
||||
|
||||
for (var i = 0; i < 2; ++i)
|
||||
_garrisonFollowerAbilities[i] = new Dictionary<uint, GarrAbilities>();
|
||||
|
||||
@@ -430,7 +430,7 @@ namespace Game.Garrisons
|
||||
if (constructing.UpgradeLevel > 1)
|
||||
{
|
||||
// Restore previous level building
|
||||
uint restored = Global.GarrisonMgr.GetPreviousLevelBuilding(constructing.BuildingType, constructing.UpgradeLevel);
|
||||
uint restored = Global.GarrisonMgr.GetPreviousLevelBuilding((byte)constructing.BuildingType, constructing.UpgradeLevel);
|
||||
Cypher.Assert(restored != 0);
|
||||
|
||||
GarrisonPlaceBuildingResult placeBuildingResult = new();
|
||||
@@ -500,7 +500,7 @@ namespace Game.Garrisons
|
||||
Follower follower = new();
|
||||
follower.PacketInfo.DbID = dbId;
|
||||
follower.PacketInfo.GarrFollowerID = garrFollowerId;
|
||||
follower.PacketInfo.Quality = followerEntry.Quality; // TODO: handle magic upgrades
|
||||
follower.PacketInfo.Quality = (uint)followerEntry.Quality; // TODO: handle magic upgrades
|
||||
follower.PacketInfo.FollowerLevel = followerEntry.FollowerLevel;
|
||||
follower.PacketInfo.ItemLevelWeapon = followerEntry.ItemLevelWeapon;
|
||||
follower.PacketInfo.ItemLevelArmor = followerEntry.ItemLevelArmor;
|
||||
|
||||
Reference in New Issue
Block a user