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

@ -511,16 +511,16 @@ namespace Server.Gumps
{
if (serial.IsItem)
{
return $"(I) 0x{serial.Value:X}";
return $"(I) {serial}";
}
if (serial.IsMobile)
{
return $"(M) 0x{serial.Value:X}";
return $"(M) {serial}";
}
}
return $"(?) 0x{serial.Value:X}";
return $"(?) {serial}";
}
if (o is byte or sbyte or short or ushort or int or uint or long or ulong)
@ -530,12 +530,12 @@ namespace Server.Gumps
if (o is Mobile mobile)
{
return $"(M) 0x{mobile.Serial.Value:X} \"{mobile.Name}\"";
return $"(M) {mobile.Serial} \"{mobile.Name}\"";
}
if (o is Item item)
{
return $"(I) 0x{item.Serial.Value:X}";
return $"(I) {item.Serial}";
}
if (o is Type type)