Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 • committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -48,7 +48,9 @@ namespace Server.Items
public bool Validate()
{
if (!(RootParent is Mobile mobile) || mobile.AccessLevel >= AccessLevel)
{
return true;
}
Delete();
return false;
@ -57,13 +59,17 @@ namespace Server.Items
public override void OnSingleClick(Mobile from)
{
if (Validate())
base.OnSingleClick(from);
{
base.OnSingleClick(@from);
}
}
public override void OnDoubleClick(Mobile from)
{
if (Validate())
base.OnDoubleClick(from);
{
base.OnDoubleClick(@from);
}
}
public override bool VerifyMove(Mobile from) => from.AccessLevel >= AccessLevel;
@ -71,7 +77,9 @@ namespace Server.Items
public override bool OnEquip(Mobile from)
{
if (from.AccessLevel < AccessLevel)
from.SendMessage("You may not wear this.");
{
@from.SendMessage("You may not wear this.");
}
return from.AccessLevel >= AccessLevel;
}