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

@ -16,10 +16,7 @@ namespace Server.Items
0x2B, 0x42, 0x54, 0x60
};
public PlagueBeastBackpack() : base(0x261B)
{
Layer = Layer.Backpack;
}
public PlagueBeastBackpack() : base(0x261B) => Layer = Layer.Backpack;
public PlagueBeastBackpack(Serial serial) : base(serial)
{

View file

@ -7,10 +7,7 @@ namespace Server.Items
{
private Timer m_Timer;
public PlagueBeastBlood() : base(0x122C, 0)
{
m_Timer = Timer.DelayCall(TimeSpan.FromSeconds(1.5), TimeSpan.FromSeconds(1.5), 3, Hemorrhage);
}
public PlagueBeastBlood() : base(0x122C, 0) => m_Timer = Timer.DelayCall(TimeSpan.FromSeconds(1.5), TimeSpan.FromSeconds(1.5), 3, Hemorrhage);
public PlagueBeastBlood(Serial serial) : base(serial)
{

View file

@ -44,10 +44,7 @@ namespace Server.Items
private bool m_Delay;
private PlagueBeastHeart m_Heart;
public InternalTimer(PlagueBeastHeart heart) : base(TimeSpan.FromSeconds(0.5), TimeSpan.FromSeconds(0.5))
{
m_Heart = heart;
}
public InternalTimer(PlagueBeastHeart heart) : base(TimeSpan.FromSeconds(0.5), TimeSpan.FromSeconds(0.5)) => m_Heart = heart;
protected override void OnTick()
{

View file

@ -23,15 +23,9 @@ namespace Server.Items
{
}
public virtual bool Scissor(Mobile from, Scissors scissors)
{
return false;
}
public virtual bool Scissor(Mobile from, Scissors scissors) => false;
public virtual bool OnBandage(Mobile from)
{
return false;
}
public virtual bool OnBandage(Mobile from) => false;
public override bool IsAccessibleTo(Mobile check)
{
@ -76,10 +70,7 @@ namespace Server.Items
public class PlagueBeastComponent : PlagueBeastInnard
{
public PlagueBeastComponent(int itemID, int hue, bool movable = false) : base(itemID, hue)
{
Movable = movable;
}
public PlagueBeastComponent(int itemID, int hue, bool movable = false) : base(itemID, hue) => Movable = movable;
public PlagueBeastComponent(Serial serial) : base(serial)
{
@ -93,25 +84,13 @@ namespace Server.Items
public bool IsReceptacle => ItemID == 0x9DF;
public override bool DropToItem(Mobile from, Item target, Point3D p)
{
return target is PlagueBeastBackpack && base.DropToItem(from, target, p);
}
public override bool DropToItem(Mobile from, Item target, Point3D p) => target is PlagueBeastBackpack && base.DropToItem(from, target, p);
public override bool AllowSecureTrade(Mobile from, Mobile to, Mobile newOwner, bool accepted)
{
return false;
}
public override bool AllowSecureTrade(Mobile from, Mobile to, Mobile newOwner, bool accepted) => false;
public override bool DropToMobile(Mobile from, Mobile target, Point3D p)
{
return false;
}
public override bool DropToMobile(Mobile from, Mobile target, Point3D p) => false;
public override bool DropToWorld(Mobile from, Point3D p)
{
return false;
}
public override bool DropToWorld(Mobile from, Point3D p) => false;
public override bool OnDragDrop(Mobile from, Item dropped)
{

View file

@ -69,15 +69,9 @@ namespace Server.Items
m_Timer.Stop();
}
public virtual bool OnLifted(Mobile from, PlagueBeastComponent c)
{
return c.IsGland || c.IsBrain;
}
public virtual bool OnLifted(Mobile from, PlagueBeastComponent c) => c.IsGland || c.IsBrain;
public virtual bool OnDropped(Mobile from, Item item, PlagueBeastComponent to)
{
return false;
}
public virtual bool OnDropped(Mobile from, Item item, PlagueBeastComponent to) => false;
public virtual void FinishOpening(Mobile from)
{
@ -225,10 +219,7 @@ namespace Server.Items
private int m_Veins;
public PlagueBeastRubbleOrgan()
{
m_Veins = 3;
}
public PlagueBeastRubbleOrgan() => m_Veins = 3;
public PlagueBeastRubbleOrgan(Serial serial) : base(serial)
{
@ -446,10 +437,7 @@ namespace Server.Items
{
private int m_Brains;
public PlagueBeastMainOrgan()
{
m_Brains = 0;
}
public PlagueBeastMainOrgan() => m_Brains = 0;
public PlagueBeastMainOrgan(Serial serial) : base(serial)
{

View file

@ -7,10 +7,7 @@ namespace Server.Items
{
private Timer m_Timer;
public PlagueBeastVein(int itemID, int hue) : base(itemID, hue)
{
Cut = false;
}
public PlagueBeastVein(int itemID, int hue) : base(itemID, hue) => Cut = false;
public PlagueBeastVein(Serial serial) : base(serial)
{