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

@ -255,25 +255,13 @@ namespace Server.SkillHandlers
return chance > Utility.Random(100);
}
private static bool IsAnimal(Mobile m)
{
return !m.Player && m.Body.IsAnimal;
}
private static bool IsAnimal(Mobile m) => !m.Player && m.Body.IsAnimal;
private static bool IsMonster(Mobile m)
{
return !m.Player && m.Body.IsMonster;
}
private static bool IsMonster(Mobile m) => !m.Player && m.Body.IsMonster;
private static bool IsHumanNPC(Mobile m)
{
return !m.Player && m.Body.IsHuman;
}
private static bool IsHumanNPC(Mobile m) => !m.Player && m.Body.IsHuman;
private static bool IsPlayer(Mobile m)
{
return m.Player;
}
private static bool IsPlayer(Mobile m) => m.Player;
public override void OnResponse(NetState state, RelayInfo info)
{
@ -294,10 +282,7 @@ namespace Server.SkillHandlers
{
private Mobile m_From;
public InternalSorter(Mobile from)
{
m_From = from;
}
public InternalSorter(Mobile from) => m_From = from;
public int Compare(Mobile x, Mobile y)
{