Moves Item/Mobile locks to a handler. (#34)
This commit is contained in:
parent
cf90a58bea
commit
de50bc9e43
10 changed files with 876 additions and 1055 deletions
|
|
@ -16,10 +16,7 @@ namespace Server.Items
|
|||
{
|
||||
From = from;
|
||||
|
||||
if (From.NetState != null)
|
||||
Address = From.NetState.Address;
|
||||
else
|
||||
Address = IPAddress.None;
|
||||
Address = From.NetState?.Address ?? IPAddress.None;
|
||||
|
||||
Date = DateTime.UtcNow;
|
||||
}
|
||||
|
|
@ -367,9 +364,7 @@ namespace Server.Items
|
|||
|
||||
public string FormatPrice()
|
||||
{
|
||||
if (m_TicketPrice == 0)
|
||||
return "FREE";
|
||||
return $"{m_TicketPrice} gold";
|
||||
return m_TicketPrice == 0 ? "FREE" : $"{m_TicketPrice} gold";
|
||||
}
|
||||
|
||||
public override void GetProperties(ObjectPropertyList list)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue