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

@ -30,18 +30,18 @@ namespace Server.Engines.Mahjong
Flipped = reader.ReadBool();
}
public MahjongGame Game{ get; }
public MahjongGame Game { get; }
public int Number{ get; }
public int Number { get; }
public MahjongTileType Value{ get; }
public MahjongTileType Value { get; }
public Point2D Position => m_Position;
public int StackLevel{ get; private set; }
public int StackLevel { get; private set; }
public MahjongPieceDirection Direction{ get; private set; }
public MahjongPieceDirection Direction { get; private set; }
public bool Flipped{ get; private set; }
public bool Flipped { get; private set; }
public MahjongPieceDim Dimensions => GetDimensions(m_Position, Direction);
@ -60,8 +60,8 @@ namespace Server.Engines.Mahjong
int curHandArea = Dimensions.GetHandArea();
int newHandArea = dim.GetHandArea();
if (!IsMovable || !dim.IsValid() || validHandArea >= 0 &&
(curHandArea >= 0 && curHandArea != validHandArea || newHandArea >= 0 && newHandArea != validHandArea))
if (!IsMovable || !dim.IsValid() || (validHandArea >= 0 &&
((curHandArea >= 0 && curHandArea != validHandArea) || (newHandArea >= 0 && newHandArea != validHandArea))))
return;
m_Position = position;