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

@ -152,10 +152,7 @@ namespace Server
private class InternalTarget : Target
{
public InternalTarget() : base(12, false, TargetFlags.None)
{
CheckLOS = true;
}
public InternalTarget() : base(12, false, TargetFlags.None) => CheckLOS = true;
protected override void OnTarget(Mobile from, object targeted)
{
@ -371,10 +368,7 @@ namespace Server
}
}
public bool CheckDistance()
{
return true;
}
public bool CheckDistance() => true;
public void Cancel()
{
@ -395,10 +389,7 @@ namespace Server
{
private HonorContext m_Context;
public InternalTimer(HonorContext context) : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
{
m_Context = context;
}
public InternalTimer(HonorContext context) : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0)) => m_Context = context;
protected override void OnTick()
{

View file

@ -165,10 +165,7 @@ namespace Server
{
}
public override string Compile(NetState ns)
{
return $"{{ gumppic {X} {Y} {GumpID} hue={Hue} class=VirtueGumpItem }}";
}
public override string Compile(NetState ns) => $"{{ gumppic {X} {Y} {GumpID} hue={Hue} class=VirtueGumpItem }}";
public override void AppendTo(NetState ns, IGumpWriter disp)
{

View file

@ -25,15 +25,9 @@ namespace Server
public class VirtueHelper
{
public static bool HasAny(Mobile from, VirtueName virtue)
{
return from.Virtues.GetValue((int)virtue) > 0;
}
public static bool HasAny(Mobile from, VirtueName virtue) => from.Virtues.GetValue((int)virtue) > 0;
public static bool IsHighestPath(Mobile from, VirtueName virtue)
{
return from.Virtues.GetValue((int)virtue) >= GetMaxAmount(virtue);
}
public static bool IsHighestPath(Mobile from, VirtueName virtue) => from.Virtues.GetValue((int)virtue) >= GetMaxAmount(virtue);
public static VirtueLevel GetLevel(Mobile from, VirtueName virtue)
{
@ -83,10 +77,7 @@ namespace Server
return true;
}
public static bool Atrophy(Mobile from, VirtueName virtue)
{
return Atrophy(from, virtue, 1);
}
public static bool Atrophy(Mobile from, VirtueName virtue) => Atrophy(from, virtue, 1);
public static bool Atrophy(Mobile from, VirtueName virtue, int amount)
{
@ -100,20 +91,11 @@ namespace Server
return current > 0;
}
public static bool IsSeeker(Mobile from, VirtueName virtue)
{
return GetLevel(from, virtue) >= VirtueLevel.Seeker;
}
public static bool IsSeeker(Mobile from, VirtueName virtue) => GetLevel(from, virtue) >= VirtueLevel.Seeker;
public static bool IsFollower(Mobile from, VirtueName virtue)
{
return GetLevel(from, virtue) >= VirtueLevel.Follower;
}
public static bool IsFollower(Mobile from, VirtueName virtue) => GetLevel(from, virtue) >= VirtueLevel.Follower;
public static bool IsKnight(Mobile from, VirtueName virtue)
{
return GetLevel(from, virtue) >= VirtueLevel.Knight;
}
public static bool IsKnight(Mobile from, VirtueName virtue) => GetLevel(from, virtue) >= VirtueLevel.Knight;
public static void AwardVirtue(PlayerMobile pm, VirtueName virtue, int amount)
{