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

@ -47,9 +47,9 @@ namespace Server.Items
int num = 0;
for (int y = 0; y < size; ++y)
for (int x = 0; x < size; ++x)
if (info.Graphics[num] != 0x1) // Veteran Rewards Mod
AddComponent(new AddonComponent(info.Graphics[num++]), size - x - 1, size - y - 1, 0);
for (int x = 0; x < size; ++x)
if (info.Graphics[num] != 0x1) // Veteran Rewards Mod
AddComponent(new AddonComponent(info.Graphics[num++]), size - x - 1, size - y - 1, 0);
}
public override void Serialize(IGenericWriter writer)
@ -70,10 +70,10 @@ namespace Server.Items
switch (version)
{
case 0:
{
m_Type = (MiniHouseType)reader.ReadInt();
break;
}
{
m_Type = (MiniHouseType)reader.ReadInt();
break;
}
}
}
}
@ -134,10 +134,10 @@ namespace Server.Items
switch (version)
{
case 0:
{
m_Type = (MiniHouseType)reader.ReadInt();
break;
}
{
m_Type = (MiniHouseType)reader.ReadInt();
break;
}
}
if (Weight == 0.0)
@ -167,13 +167,13 @@ namespace Server.Items
SandstoneHouseWithPatio,
SmallStoneWorkshop,
SmallMarbleWorkshop,
MalasMountainPass, //Veteran reward house
ChurchAtNight //Veteran reward house
MalasMountainPass, // Veteran reward house
ChurchAtNight // Veteran reward house
}
public class MiniHouseInfo
{
private static MiniHouseInfo[] m_Info =
private static readonly MiniHouseInfo[] m_Info =
{
/* Stone and plaster house */ new MiniHouseInfo(0x22C4, 1, 1011303),
/* Field stone house */ new MiniHouseInfo(0x22DE, 1, 1011304),
@ -217,9 +217,9 @@ namespace Server.Items
Graphics = graphics;
}
public int[] Graphics{ get; }
public int[] Graphics { get; }
public int LabelNumber{ get; }
public int LabelNumber { get; }
public static MiniHouseInfo GetInfo(MiniHouseType type)
{