Formatting FIxes (#58)

This commit is contained in:
Kamron Batman 2019-10-04 23:08:13 -07:00 committed by GitHub
parent 57fb9fb525
commit 096d39609e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1318 changed files with 11633 additions and 22129 deletions

View file

@ -53,10 +53,7 @@ namespace Server.Items
return false;
}
public override bool IsAccessibleTo(Mobile check)
{
return IsChildOf(check) && Trade?.Valid == true && base.IsAccessibleTo(check);
}
public override bool IsAccessibleTo(Mobile check) => IsChildOf(check) && Trade?.Valid == true && base.IsAccessibleTo(check);
public override void OnItemAdded(Item item)
{
@ -96,12 +93,10 @@ namespace Server.Items
Trade.Update();
}
public override bool IsChildVisibleTo(Mobile m, Item child)
{
return child is VirtualCheck
public override bool IsChildVisibleTo(Mobile m, Item child) =>
child is VirtualCheck
? AccountGold.Enabled && m.NetState?.NewSecureTrading != true
: base.IsChildVisibleTo(m, child);
}
public override void Serialize(GenericWriter writer)
{