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

@ -17,7 +17,7 @@ namespace Server.Items
}
[CommandProperty(AccessLevel.GameMaster)]
public bool IsShipwreckedItem{ get; set; }
public bool IsShipwreckedItem { get; set; }
public override void Serialize(IGenericWriter writer)
{
@ -37,10 +37,10 @@ namespace Server.Items
switch (version)
{
case 1:
{
IsShipwreckedItem = reader.ReadBool();
break;
}
{
IsShipwreckedItem = reader.ReadBool();
break;
}
}
}
@ -67,7 +67,7 @@ namespace Server.Items
if (Quality == ClothingQuality.Exceptional)
DistributeBonuses(tool is BaseRunicTool ? 6 :
Core.SE ? 15 : 14); //BLAME OSI. (We can't confirm it's an OSI bug yet.)
Core.SE ? 15 : 14); // BLAME OSI. (We can't confirm it's an OSI bug yet.)
return base.OnCraft(quality, makersMark, from, craftSystem, typeRes, tool, craftItem, resHue);
}
@ -623,7 +623,7 @@ namespace Server.Items
int version = reader.ReadInt();
/*if ( Hue != 0x8A4 )
/*if (Hue != 0x8A4)
Hue = 0x8A4;*/
}
}
@ -631,7 +631,7 @@ namespace Server.Items
public class SavageMask : BaseHat
{
[Constructible]
public SavageMask() : this(GetRandomHue()) {}
public SavageMask() : this(GetRandomHue()) { }
[Constructible]
public SavageMask(int hue) : base(0x154B, hue) => Weight = 2.0;
@ -678,7 +678,7 @@ namespace Server.Items
int version = reader.ReadInt();
/*if ( Hue != 0 && (Hue < 2101 || Hue > 2130) )
/*if (Hue != 0 && (Hue < 2101 || Hue > 2130))
Hue = GetRandomHue();*/
}
}