Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue