Core/Items: Implement azerite empowered items

Port From (https://github.com/TrinityCore/TrinityCore/commit/d934824421c83598853487c5cc9e4cbb3c5d0006)
This commit is contained in:
hondacrx
2019-12-05 22:55:44 -05:00
parent 86e1065da0
commit 5b9ad41953
47 changed files with 1050 additions and 239 deletions
+4 -4
View File
@@ -247,7 +247,7 @@ namespace Game
if (factionEntry.CanHaveReputation())
{
FactionState newFaction = new FactionState();
newFaction.ID = factionEntry.Id;
newFaction.Id = factionEntry.Id;
newFaction.ReputationListID = (uint)factionEntry.ReputationIndex;
newFaction.Standing = 0;
newFaction.Flags = (FactionFlags)(GetDefaultStateFlags(factionEntry) & 0xFF);//todo fixme for higher value then byte?????
@@ -559,12 +559,12 @@ namespace Game
{
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.DEL_CHAR_REPUTATION_BY_FACTION);
stmt.AddValue(0, _player.GetGUID().GetCounter());
stmt.AddValue(1, factionState.ID);
stmt.AddValue(1, factionState.Id);
trans.Append(stmt);
stmt = DB.Characters.GetPreparedStatement(CharStatements.INS_CHAR_REPUTATION_BY_FACTION);
stmt.AddValue(0, _player.GetGUID().GetCounter());
stmt.AddValue(1, factionState.ID);
stmt.AddValue(1, factionState.Id);
stmt.AddValue(2, factionState.Standing);
stmt.AddValue(3, factionState.Flags);
trans.Append(stmt);
@@ -660,7 +660,7 @@ namespace Game
}
public class FactionState
{
public uint ID;
public uint Id;
public uint ReputationListID;
public int Standing;
public FactionFlags Flags;