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

@ -48,10 +48,7 @@ namespace Server.Spells.Bushido
FinishSequence();
}
public static bool IsConfident(Mobile m)
{
return m_Table.ContainsKey(m);
}
public static bool IsConfident(Mobile m) => m_Table.ContainsKey(m);
public static void BeginConfidence(Mobile m)
{
@ -73,10 +70,7 @@ namespace Server.Spells.Bushido
OnEffectEnd(m, typeof(Confidence));
}
public static bool IsRegenerating(Mobile m)
{
return m_RegenTable.ContainsKey(m);
}
public static bool IsRegenerating(Mobile m) => m_RegenTable.ContainsKey(m);
public static void BeginRegenerating(Mobile m)
{

View file

@ -62,10 +62,7 @@ namespace Server.Spells.Bushido
FinishSequence();
}
public static bool IsCountering(Mobile m)
{
return m_Table.ContainsKey(m);
}
public static bool IsCountering(Mobile m) => m_Table.ContainsKey(m);
public static void StartCountering(Mobile m)
{

View file

@ -24,10 +24,7 @@ namespace Server.Spells.Bushido
public override double RequiredSkill => 60.0;
public override int RequiredMana => 10;
public override bool CheckCast()
{
return VerifyCast(Caster, true) && base.CheckCast();
}
public override bool CheckCast() => VerifyCast(Caster, true) && base.CheckCast();
public static bool VerifyCast(Mobile Caster, bool messages)
{
@ -118,10 +115,7 @@ namespace Server.Spells.Bushido
FinishSequence();
}
public static bool IsEvading(Mobile m)
{
return m_Table.ContainsKey(m);
}
public static bool IsEvading(Mobile m) => m_Table.ContainsKey(m);
public static TimeSpan GetEvadeDuration(Mobile m)
{

View file

@ -74,15 +74,9 @@ namespace Server.Spells.Bushido
CheckGain(attacker);
}
public static int GetSwingBonus(Mobile target)
{
return m_Table.TryGetValue(target, out HonorableExecutionInfo info) ? info.m_SwingBonus : 0;
}
public static int GetSwingBonus(Mobile target) => m_Table.TryGetValue(target, out HonorableExecutionInfo info) ? info.m_SwingBonus : 0;
public static bool IsUnderPenalty(Mobile target)
{
return m_Table.TryGetValue(target, out HonorableExecutionInfo info) && info.m_Penalty;
}
public static bool IsUnderPenalty(Mobile target) => m_Table.TryGetValue(target, out HonorableExecutionInfo info) && info.m_Penalty;
public static void RemovePenalty(Mobile target)
{

View file

@ -13,10 +13,7 @@ namespace Server.Spells.Bushido
public override bool ValidatesDuringHit => false;
public override int GetAccuracyBonus(Mobile attacker)
{
return 50;
}
public override int GetAccuracyBonus(Mobile attacker) => 50;
public override bool Validate(Mobile from)
{

View file

@ -25,10 +25,7 @@ namespace Server.Spells.Bushido
public override int CastRecoveryBase => 7;
public static bool CheckExpansion(Mobile from)
{
return (from as PlayerMobile)?.NetState?.SupportsExpansion(Expansion.SE) == true;
}
public static bool CheckExpansion(Mobile from) => (from as PlayerMobile)?.NetState?.SupportsExpansion(Expansion.SE) == true;
public override bool CheckCast()
{
@ -93,10 +90,7 @@ namespace Server.Spells.Bushido
max = RequiredSkill + 37.5;
}
public override int GetMana()
{
return 0;
}
public override int GetMana() => 0;
public virtual void OnCastSuccessful(Mobile caster)
{