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

@ -29,7 +29,7 @@ namespace Server.Multis
public override int LabelNumber => 1061690; // Packing Crate
public BaseHouse House{ get; set; }
public BaseHouse House { get; set; }
public override int DefaultMaxItems => 0;
public override int DefaultMaxWeight => 0;
@ -41,7 +41,7 @@ namespace Server.Multis
{
base.AddNameProperties( list );
if ( House != null && House.InternalizedVendors.Count > 0 )
if (House != null && House.InternalizedVendors.Count > 0)
list.Add( 1061833, House.InternalizedVendors.Count.ToString() ); // This packing crate contains ~1_COUNT~ vendors/barkeepers.
}
*/
@ -116,14 +116,14 @@ namespace Server.Multis
}
for (int i = 0; i < Rows; i++)
for (int j = 0; j < Columns; j++)
if (!positions[i, j])
{
int x = Bounds.X + j * HorizontalSpacing;
int y = Bounds.Y + i * VerticalSpacing;
for (int j = 0; j < Columns; j++)
if (!positions[i, j])
{
int x = Bounds.X + j * HorizontalSpacing;
int y = Bounds.Y + i * VerticalSpacing;
return new Point3D(x, y, 0);
}
return new Point3D(x, y, 0);
}
return Point3D.Zero;
}
@ -230,7 +230,7 @@ namespace Server.Multis
public class InternalizeTimer : Timer
{
private MovingCrate m_Crate;
private readonly MovingCrate m_Crate;
public InternalizeTimer(MovingCrate crate) : base(TimeSpan.FromMinutes(5.0))
{