Updates Message Packets (#321)
### API Breaking Change Combined `AsciiMessage` and `UnicodeMessage` into a single function that takes two arguments, `bool ascii` and `string lang`. Lang can be null (or anything) if ascii is true. - [X] Changes message packets - [X] Cleans up some code - [X] Uses benchmarks to determine if the spanwriter + copyfrom
This commit is contained in:
parent
10d884fe30
commit
b6cd408623
59 changed files with 1160 additions and 1025 deletions
|
|
@ -519,7 +519,7 @@ namespace Server.Items
|
|||
|
||||
if (m_Completed)
|
||||
{
|
||||
list.Add(1041507, m_CompletedBy == null ? "someone" : m_CompletedBy.Name); // completed by ~1_val~
|
||||
list.Add(1041507, m_CompletedBy?.RawName ?? "someone"); // completed by ~1_val~
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -527,19 +527,16 @@ namespace Server.Items
|
|||
{
|
||||
if (m_Completed)
|
||||
{
|
||||
from.Send(
|
||||
new MessageLocalizedAffix(
|
||||
Serial,
|
||||
ItemID,
|
||||
MessageType.Label,
|
||||
0x3B2,
|
||||
3,
|
||||
1048030,
|
||||
"",
|
||||
AffixType.Append,
|
||||
$" completed by {(m_CompletedBy == null ? "someone" : m_CompletedBy.Name)}",
|
||||
""
|
||||
)
|
||||
from.NetState.SendMessageLocalizedAffix(
|
||||
Serial,
|
||||
ItemID,
|
||||
MessageType.Label,
|
||||
0x3B2,
|
||||
3,
|
||||
1048030,
|
||||
"",
|
||||
AffixType.Append,
|
||||
$" completed by {m_CompletedBy?.RawName ?? "someone"}"
|
||||
);
|
||||
}
|
||||
else if (m_Decoder != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue