Core/Gossips: Added support for FriendshipFactionID
Port From (https://github.com/TrinityCore/TrinityCore/commit/1bbc8592d95978a4c681fa6177c7c457189ef485)
This commit is contained in:
@@ -249,7 +249,12 @@ namespace Game.Misc
|
||||
|
||||
GossipMessagePkt packet = new();
|
||||
packet.GossipGUID = objectGUID;
|
||||
packet.GossipID = (int)_gossipMenu.GetMenuId();
|
||||
packet.GossipID = _gossipMenu.GetMenuId();
|
||||
|
||||
GossipMenuAddon addon = Global.ObjectMgr.GetGossipMenuAddon(packet.GossipID);
|
||||
if (addon != null)
|
||||
packet.FriendshipFactionID = addon.FriendshipFactionID;
|
||||
|
||||
NpcText text = Global.ObjectMgr.GetNpcText(titleTextId);
|
||||
if (text != null)
|
||||
packet.TextID = (int)text.Data.SelectRandomElementByWeight(data => data.Probability).BroadcastTextID;
|
||||
@@ -747,6 +752,11 @@ namespace Game.Misc
|
||||
public List<Condition> Conditions = new();
|
||||
}
|
||||
|
||||
public class GossipMenuAddon
|
||||
{
|
||||
public int FriendshipFactionID;
|
||||
}
|
||||
|
||||
public class PointOfInterest
|
||||
{
|
||||
public uint Id;
|
||||
|
||||
Reference in New Issue
Block a user