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

@ -15,12 +15,12 @@ namespace Server.Items
public interface IAddon
{
Item Deed{ get; }
Item Deed { get; }
bool CouldFit(IPoint3D p, Map map);
}
public abstract class BaseAddon : Item, IChopable, IAddon
public abstract class BaseAddon : Item, IChoppable, IAddon
{
public BaseAddon() : base(1)
{
@ -38,7 +38,7 @@ namespace Server.Items
public virtual BaseAddonDeed Deed => null;
public List<AddonComponent> Components{ get; private set; }
public List<AddonComponent> Components { get; private set; }
public virtual bool ShareHue => true;
@ -155,7 +155,7 @@ namespace Server.Items
if (Utility.InRange(doorLoc, addonLoc, 1) &&
(addonLoc.Z == doorLoc.Z ||
addonLoc.Z + addonHeight > doorLoc.Z && doorLoc.Z + doorHeight > addonLoc.Z))
(addonLoc.Z + addonHeight > doorLoc.Z && doorLoc.Z + doorHeight > addonLoc.Z)))
return AddonFitResult.DoorTooClose;
}
}
@ -237,18 +237,16 @@ namespace Server.Items
{
case 1:
case 0:
{
Components = reader.ReadStrongItemList<AddonComponent>();
break;
}
{
Components = reader.ReadStrongItemList<AddonComponent>();
break;
}
}
if (version < 1 && Weight == 0)
Weight = -1;
}
#region Mondain's Legacy
private CraftResource m_Resource;
[CommandProperty(AccessLevel.GameMaster)]
@ -266,7 +264,5 @@ namespace Server.Items
}
}
}
#endregion
}
}