Revert "Updates Packets & Randomizer (#43)" (#61)

This reverts commit 179cb50557.
This commit is contained in:
Kamron Batman 2019-11-11 08:46:11 -08:00 committed by GitHub
parent 179cb50557
commit c2ecc76457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
588 changed files with 16260 additions and 10926 deletions

View file

@ -1,4 +1,5 @@
using Server.Network;
using Server.Prompts;
using Server.Targeting;
namespace Server.Items
@ -203,9 +204,14 @@ namespace Server.Items
{
base.GetProperties(list);
string desc = m_KeyVal == 0 ? "(blank)" : m_Description?.Trim() ?? "";
string desc;
if (desc != "")
if (m_KeyVal == 0)
desc = "(blank)";
else if ((desc = m_Description) == null || (desc = desc.Trim()).Length <= 0)
desc = null;
if (desc != null)
list.Add(desc);
}
@ -213,10 +219,15 @@ namespace Server.Items
{
base.OnSingleClick(from);
string desc = m_KeyVal == 0 ? "(blank)" : m_Description?.Trim() ?? "";
string desc;
if (m_KeyVal == 0)
desc = "(blank)";
else if ((desc = m_Description) == null || (desc = desc.Trim()).Length <= 0)
desc = "";
if (desc.Length > 0)
Packets.SendUnicodeMessage(from.NetState, Serial, ItemID, MessageType.Regular, 0x3B2, 3, "ENU", "", desc);
from.Send(new UnicodeMessage(Serial, ItemID, MessageType.Regular, 0x3B2, 3, "ENU", "", desc));
}
public bool UseOn(Mobile from, ILockable o)