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

@ -5,10 +5,8 @@ namespace Server
public sealed class BloodRose : PowerFactionItem
{
public BloodRose()
: base(Utility.RandomList(6378, 9035))
{
: base(Utility.RandomList(6378, 9035)) =>
Hue = 2118;
}
public BloodRose(Serial serial)
: base(serial)

View file

@ -5,10 +5,8 @@ namespace Server
public sealed class ClarityPotion : PowerFactionItem
{
public ClarityPotion()
: base(3628)
{
: base(3628) =>
Hue = 1154;
}
public ClarityPotion(Serial serial)
: base(serial)

View file

@ -6,10 +6,8 @@ namespace Server
public sealed class GemOfEmpowerment : PowerFactionItem
{
public GemOfEmpowerment()
: base(7955)
{
: base(7955) =>
Hue = 1154;
}
public GemOfEmpowerment(Serial serial)
: base(serial)

View file

@ -65,10 +65,8 @@ namespace Server
try
{
using (StreamWriter op = new StreamWriter("faction-power-items.log", true))
{
op.WriteLine("{0}\t{1}\t{2}\t{3}", DateTime.UtcNow, killer, victim, obj);
}
using StreamWriter op = new StreamWriter("faction-power-items.log", true);
op.WriteLine("{0}\t{1}\t{2}\t{3}", DateTime.UtcNow, killer, victim, obj);
}
catch
{
@ -144,10 +142,8 @@ namespace Server
private bool _screamed;
public DestructionTimer(Mobile mob)
: base(TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(0.1), 10)
{
: base(TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(0.1), 10) =>
_mobile = mob;
}
protected override void OnTick()
{
@ -178,10 +174,7 @@ namespace Server
public Type Type{ get; }
public Item Construct()
{
return Activator.CreateInstance(Type) as Item;
}
public Item Construct() => Activator.CreateInstance(Type) as Item;
}
}
}

View file

@ -10,10 +10,8 @@ namespace Server
public sealed class StormsEye : PowerFactionItem
{
public StormsEye()
: base(3967)
{
: base(3967) =>
Hue = 1165;
}
public StormsEye(Serial serial)
: base(serial)

View file

@ -221,10 +221,7 @@ namespace Server.Factions
}
}
public static bool ExistsOn(Mobile mob)
{
return mob.Backpack?.FindItemByType<Sigil>() != null;
}
public static bool ExistsOn(Mobile mob) => mob.Backpack?.FindItemByType<Sigil>() != null;
private void BeginCorrupting(Faction faction)
{

View file

@ -105,10 +105,7 @@ namespace Server.Factions
public abstract void DoVisibleEffect();
public abstract void DoAttackEffect(Mobile m);
public virtual int IsValidLocation()
{
return IsValidLocation(GetWorldLocation(), Map);
}
public virtual int IsValidLocation() => IsValidLocation(GetWorldLocation(), Map);
public virtual int IsValidLocation(Point3D p, Map m)
{