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

@ -57,23 +57,21 @@ namespace Server.Items
switch (version)
{
case 0:
{
if (reader.ReadBool())
{
m_CurArcaneCharges = reader.ReadInt();
m_MaxArcaneCharges = reader.ReadInt();
if (reader.ReadBool())
{
m_CurArcaneCharges = reader.ReadInt();
m_MaxArcaneCharges = reader.ReadInt();
if (Hue == 2118)
Hue = ArcaneGem.DefaultArcaneHue;
if (Hue == 2118)
Hue = ArcaneGem.DefaultArcaneHue;
}
break;
}
break;
}
}
}
#region Arcane Impl
private int m_MaxArcaneCharges, m_CurArcaneCharges;
[CommandProperty(AccessLevel.GameMaster)]
@ -137,7 +135,5 @@ namespace Server.Items
else if (ItemID == 0x317C)
ItemID = 0x2FC6;
}
#endregion
}
}

View file

@ -56,23 +56,21 @@ namespace Server.Items
switch (version)
{
case 1:
{
if (reader.ReadBool())
{
m_CurArcaneCharges = reader.ReadInt();
m_MaxArcaneCharges = reader.ReadInt();
if (reader.ReadBool())
{
m_CurArcaneCharges = reader.ReadInt();
m_MaxArcaneCharges = reader.ReadInt();
if (Hue == 2118)
Hue = ArcaneGem.DefaultArcaneHue;
if (Hue == 2118)
Hue = ArcaneGem.DefaultArcaneHue;
}
break;
}
break;
}
}
}
#region Arcane Impl
private int m_MaxArcaneCharges, m_CurArcaneCharges;
[CommandProperty(AccessLevel.GameMaster)]
@ -136,7 +134,5 @@ namespace Server.Items
else if (ItemID == 0x13CE)
ItemID = 0x13C6;
}
#endregion
}
}

View file

@ -26,7 +26,6 @@ namespace Server.Items
public override ArmorMaterialType MaterialType => ArmorMaterialType.Leather;
public override CraftResource DefaultResource => CraftResource.RegularLeather;
public override ArmorMeditationAllowance DefMedAllowance => ArmorMeditationAllowance.All;
public override void Serialize(IGenericWriter writer)

View file

@ -42,18 +42,18 @@ namespace Server.Items
switch (version)
{
case 1:
{
if (reader.ReadBool())
{
reader.ReadInt();
reader.ReadInt();
if (reader.ReadBool())
{
reader.ReadInt();
reader.ReadInt();
}
Weight = 2.0;
ItemID = 0x2792;
break;
}
Weight = 2.0;
ItemID = 0x2792;
break;
}
}
}
}