Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -27,7 +27,7 @@ namespace Server.Items
public override TimeSpan DecayTime => TimeSpan.FromDays(1.0);
[CommandProperty(AccessLevel.GameMaster)]
public SecureLevel Level{ get; set; }
public SecureLevel Level { get; set; }
public abstract void CreatePieces();
@ -101,15 +101,15 @@ namespace Server.Items
}
public static bool ValidateDefault(Mobile from, BaseBoard board) =>
!board.Deleted && (from.AccessLevel >= AccessLevel.GameMaster || from.Alive &&
(board.IsChildOf(from.Backpack) || !(board.RootParent is Mobile) &&
!board.Deleted && (from.AccessLevel >= AccessLevel.GameMaster || (from.Alive &&
(board.IsChildOf(from.Backpack) || (!(board.RootParent is Mobile) &&
board.Map == from.Map && from.InRange(board.GetWorldLocation(), 1) &&
BaseHouse.FindHouseAt(board)?.IsOwner(from) == true));
BaseHouse.FindHouseAt(board)?.IsOwner(from) == true))));
public class DefaultEntry : ContextMenuEntry
{
private BaseBoard m_Board;
private Mobile m_From;
private readonly BaseBoard m_Board;
private readonly Mobile m_From;
public DefaultEntry(Mobile from, BaseBoard board) : base(6162,
from.AccessLevel >= AccessLevel.GameMaster ? -1 : 1)