fix: Adds ISpanFormattable support to Serial (#1065)

This commit is contained in:
Kamron Batman 2022-06-14 18:39:46 -07:00 committed by GitHub
parent 4b2b7e2277
commit b779d7737f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 269 additions and 204 deletions

View file

@ -3165,10 +3165,10 @@ namespace Server
if (item == this)
{
Console.WriteLine(
"Warning: Adding item to itself: [0x{0:X} {1}].AddItem( [0x{2:X} {3}] )",
Serial.Value,
"Warning: Adding item to itself: [0x{0} {1}].AddItem( [0x{2} {3}] )",
Serial,
GetType().Name,
item.Serial.Value,
item.Serial,
item.GetType().Name
);
Console.WriteLine(new StackTrace());
@ -3178,10 +3178,10 @@ namespace Server
if (IsChildOf(item))
{
Console.WriteLine(
"Warning: Adding parent item to child: [0x{0:X} {1}].AddItem( [0x{2:X} {3}] )",
Serial.Value,
"Warning: Adding parent item to child: [0x{0} {1}].AddItem( [0x{2} {3}] )",
Serial,
GetType().Name,
item.Serial.Value,
item.Serial,
item.GetType().Name
);
Console.WriteLine(new StackTrace());
@ -4245,7 +4245,7 @@ namespace Server
public virtual bool IsStandardLoot() =>
(!Mobile.InsuranceEnabled || !Insured) && BlessedFor == null && m_LootType == LootType.Regular;
public override string ToString() => $"0x{Serial.Value:X} \"{GetType().Name}\"";
public override string ToString() => $"{Serial} \"{GetType().Name}\"";
public virtual void OnSectorActivate()
{