Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -6,10 +6,7 @@ namespace Server.Items
|
|||
{
|
||||
private DateTime m_NextPassiveTrigger, m_NextActiveTrigger;
|
||||
|
||||
public BaseTrap(int itemID) : base(itemID)
|
||||
{
|
||||
Movable = false;
|
||||
}
|
||||
public BaseTrap(int itemID) : base(itemID) => Movable = false;
|
||||
|
||||
public BaseTrap(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
@ -36,16 +33,11 @@ namespace Server.Items
|
|||
return hue - 1;
|
||||
}
|
||||
|
||||
public bool CheckRange(Point3D loc, Point3D oldLoc, int range)
|
||||
{
|
||||
return CheckRange(loc, range) && !CheckRange(oldLoc, range);
|
||||
}
|
||||
public bool CheckRange(Point3D loc, Point3D oldLoc, int range) => CheckRange(loc, range) && !CheckRange(oldLoc, range);
|
||||
|
||||
public bool CheckRange(Point3D loc, int range)
|
||||
{
|
||||
return Z + 8 >= loc.Z && loc.Z + 16 > Z
|
||||
&& Utility.InRange(GetWorldLocation(), loc, range);
|
||||
}
|
||||
public bool CheckRange(Point3D loc, int range) =>
|
||||
Z + 8 >= loc.Z && loc.Z + 16 > Z
|
||||
&& Utility.InRange(GetWorldLocation(), loc, range);
|
||||
|
||||
public override void OnMovement(Mobile m, Point3D oldLocation)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,10 +10,7 @@ namespace Server.Items
|
|||
private Timer m_Timer;
|
||||
|
||||
[Constructible]
|
||||
public FlameSpurtTrap() : base(0x1B71)
|
||||
{
|
||||
Visible = false;
|
||||
}
|
||||
public FlameSpurtTrap() : base(0x1B71) => Visible = false;
|
||||
|
||||
public FlameSpurtTrap(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,10 +23,7 @@ namespace Server.Items
|
|||
}
|
||||
|
||||
[Constructible]
|
||||
public GasTrap(GasTrapType type, Poison poison = null) : base(GetBaseID(type))
|
||||
{
|
||||
Poison = poison;
|
||||
}
|
||||
public GasTrap(GasTrapType type, Poison poison = null) : base(GetBaseID(type)) => Poison = poison;
|
||||
|
||||
public GasTrap(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -84,10 +84,7 @@ namespace Server.Items
|
|||
return 0;
|
||||
}
|
||||
|
||||
public static int GetExtendedID(SpikeTrapType type)
|
||||
{
|
||||
return GetBaseID(type) + GetExtendedOffset(type);
|
||||
}
|
||||
public static int GetExtendedID(SpikeTrapType type) => GetBaseID(type) + GetExtendedOffset(type);
|
||||
|
||||
public static int GetExtendedOffset(SpikeTrapType type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,10 +13,7 @@ namespace Server.Items
|
|||
public class StoneFaceTrap : BaseTrap
|
||||
{
|
||||
[Constructible]
|
||||
public StoneFaceTrap() : base(0x10FC)
|
||||
{
|
||||
Light = LightType.Circle225;
|
||||
}
|
||||
public StoneFaceTrap() : base(0x10FC) => Light = LightType.Circle225;
|
||||
|
||||
public StoneFaceTrap(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue