Formatting FIxes (#58)

This commit is contained in:
Kamron Batman 2019-10-04 23:08:13 -07:00 • committed by GitHub
parent 57fb9fb525
commit 096d39609e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1318 changed files with 11633 additions and 22129 deletions

View file

@ -128,10 +128,7 @@ namespace Server.Items
private bool m_IsRewardItem;
[Constructible]
public BloodyPentagramDeed()
{
LootType = LootType.Blessed;
}
public BloodyPentagramDeed() => LootType = LootType.Blessed;
public BloodyPentagramDeed(Serial serial) : base(serial)
{

View file

@ -9,10 +9,7 @@ namespace Server.Items
{
public class CannonAddonComponent : AddonComponent
{
public CannonAddonComponent(int itemID) : base(itemID)
{
LootType = LootType.Blessed;
}
public CannonAddonComponent(int itemID) : base(itemID) => LootType = LootType.Blessed;
public CannonAddonComponent(Serial serial) : base(serial)
{
@ -254,10 +251,7 @@ namespace Server.Items
{
private CannonAddon m_Cannon;
public InternalTarget(CannonAddon cannon) : base(12, true, TargetFlags.None)
{
m_Cannon = cannon;
}
public InternalTarget(CannonAddon cannon) : base(12, true, TargetFlags.None) => m_Cannon = cannon;
protected override void OnTarget(Mobile from, object targeted)
{
@ -373,10 +367,7 @@ namespace Server.Items
private bool m_IsRewardItem;
[Constructible]
public CannonDeed()
{
LootType = LootType.Blessed;
}
public CannonDeed() => LootType = LootType.Blessed;
public CannonDeed(Serial serial) : base(serial)
{

View file

@ -11,10 +11,7 @@ namespace Server.Items
private bool m_IsRewardItem;
[Constructible]
public DecorativeShield(int itemID = 0x156C) : base(itemID)
{
Movable = false;
}
public DecorativeShield(int itemID = 0x156C) : base(itemID) => Movable = false;
public DecorativeShield(Serial serial) : base(serial)
{
@ -44,12 +41,10 @@ namespace Server.Items
}
}
public bool CouldFit(IPoint3D p, Map map)
{
return map?.CanFit(p.X, p.Y, p.Z, ItemData.Height) == true && (FacingSouth
&& BaseAddon.IsWall(p.X, p.Y - 1, p.Z, map)
|| BaseAddon.IsWall(p.X - 1, p.Y, p.Z, map));
}
public bool CouldFit(IPoint3D p, Map map) =>
map?.CanFit(p.X, p.Y, p.Z, ItemData.Height) == true && (FacingSouth
&& BaseAddon.IsWall(p.X, p.Y - 1, p.Z, map)
|| BaseAddon.IsWall(p.X - 1, p.Y, p.Z, map));
[CommandProperty(AccessLevel.GameMaster)]
public bool IsRewardItem

View file

@ -196,10 +196,7 @@ namespace Server.Items
{
private FlamingHeadDeed m_Head;
public InternalTarget(FlamingHeadDeed head) : base(-1, true, TargetFlags.None)
{
m_Head = head;
}
public InternalTarget(FlamingHeadDeed head) : base(-1, true, TargetFlags.None) => m_Head = head;
protected override void OnTarget(Mobile from, object targeted)
{

View file

@ -337,10 +337,7 @@ namespace Server.Items
private bool m_IsRewardItem;
[Constructible]
public MiningCartDeed()
{
LootType = LootType.Blessed;
}
public MiningCartDeed() => LootType = LootType.Blessed;
public MiningCartDeed(Serial serial) : base(serial)
{

View file

@ -94,10 +94,7 @@ namespace Server.Items
private MinotaurStatueType m_StatueType;
[Constructible]
public MinotaurStatueDeed()
{
LootType = LootType.Blessed;
}
public MinotaurStatueDeed() => LootType = LootType.Blessed;
public MinotaurStatueDeed(Serial serial) : base(serial)
{

View file

@ -14,10 +14,7 @@ namespace Server.Items
}
[Constructible]
public RewardPottedCactus(int itemID) : base(itemID)
{
Weight = 5.0;
}
public RewardPottedCactus(int itemID) : base(itemID) => Weight = 5.0;
public RewardPottedCactus(Serial serial) : base(serial)
{

View file

@ -7,10 +7,7 @@ namespace Server.Items
{
public class StoneAnkhComponent : AddonComponent
{
public StoneAnkhComponent(int itemID) : base(itemID)
{
Weight = 1.0;
}
public StoneAnkhComponent(int itemID) : base(itemID) => Weight = 1.0;
public StoneAnkhComponent(Serial serial) : base(serial)
{
@ -147,10 +144,7 @@ namespace Server.Items
private bool m_IsRewardItem;
[Constructible]
public StoneAnkhDeed()
{
LootType = LootType.Blessed;
}
public StoneAnkhDeed() => LootType = LootType.Blessed;
public StoneAnkhDeed(Serial serial) : base(serial)
{

View file

@ -190,10 +190,7 @@ namespace Server.Items
private int m_Logs;
[Constructible]
public TreeStumpDeed()
{
LootType = LootType.Blessed;
}
public TreeStumpDeed() => LootType = LootType.Blessed;
public TreeStumpDeed(Serial serial) : base(serial)
{

View file

@ -269,10 +269,7 @@ namespace Server.Items
private bool m_IsRewardItem;
[Constructible]
public WallBannerDeed()
{
LootType = LootType.Blessed;
}
public WallBannerDeed() => LootType = LootType.Blessed;
public WallBannerDeed(Serial serial) : base(serial)
{

View file

@ -185,19 +185,13 @@ namespace Server.Items
}
}
public static WeaponEngravingTool Find(Mobile from)
{
return from.Backpack?.FindItemByType<WeaponEngravingTool>();
}
public static WeaponEngravingTool Find(Mobile from) => from.Backpack?.FindItemByType<WeaponEngravingTool>();
private class TargetWeapon : Target
{
private WeaponEngravingTool m_Tool;
public TargetWeapon(WeaponEngravingTool tool) : base(-1, true, TargetFlags.None)
{
m_Tool = tool;
}
public TargetWeapon(WeaponEngravingTool tool) : base(-1, true, TargetFlags.None) => m_Tool = tool;
protected override void OnTarget(Mobile from, object targeted)
{