Core: Updated to 10.0.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/4bec7233badf9d3ab71dbdde8b24f66f7c4eedfb)
This commit is contained in:
hondacrx
2023-01-30 10:07:42 -05:00
parent e982be523a
commit 08fcedaf21
25 changed files with 1684 additions and 1470 deletions
+4 -4
View File
@@ -18,11 +18,11 @@ namespace Game.Mails
items.Add(mii);
}
public bool RemoveItem(uint item_guid)
public bool RemoveItem(ulong itemGuid)
{
foreach (var item in items)
{
if (item.item_guid == item_guid)
if (item.item_guid == itemGuid)
{
items.Remove(item);
return true;
@@ -33,7 +33,7 @@ namespace Game.Mails
public bool HasItems() { return !items.Empty(); }
public uint messageID;
public ulong messageID;
public MailMessageType messageType;
public MailStationery stationery;
public uint mailTemplateId;
@@ -42,7 +42,7 @@ namespace Game.Mails
public string subject;
public string body;
public List<MailItemInfo> items = new();
public List<uint> removedItems = new();
public List<ulong> removedItems = new();
public long expire_time;
public long deliver_time;
public ulong money;
+1 -1
View File
@@ -131,7 +131,7 @@ namespace Game.Mails
if (pReceiver != null)
PrepareItems(pReceiver, trans); // generate mail template items
uint mailId = Global.ObjectMgr.GenerateMailID();
ulong mailId = Global.ObjectMgr.GenerateMailID();
long deliver_time = GameTime.GetGameTime() + deliver_delay;