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

@ -132,10 +132,7 @@ namespace Server.Factions
public static List<Town> Towns => Reflector.Towns;
public int CompareTo(Town other)
{
return Definition.Sort - (other?.Definition.Sort ?? 0);
}
public int CompareTo(Town other) => Definition.Sort - (other?.Definition.Sort ?? 0);
public static Town FromRegion(Region reg)
{
@ -379,17 +376,13 @@ namespace Server.Factions
CommandSystem.Register("GrantTownSilver", AccessLevel.Administrator, GrantTownSilver_OnCommand);
}
public bool IsSheriff(Mobile mob)
{
return mob?.Deleted == false &&
(mob.AccessLevel >= AccessLevel.GameMaster || mob == Sheriff);
}
public bool IsSheriff(Mobile mob) =>
mob?.Deleted == false &&
(mob.AccessLevel >= AccessLevel.GameMaster || mob == Sheriff);
public bool IsFinance(Mobile mob)
{
return mob?.Deleted == false &&
(mob.AccessLevel >= AccessLevel.GameMaster || mob == Finance);
}
public bool IsFinance(Mobile mob) =>
mob?.Deleted == false &&
(mob.AccessLevel >= AccessLevel.GameMaster || mob == Finance);
public void Capture(Faction f)
{
@ -445,10 +438,7 @@ namespace Server.Factions
ConstructGuardLists();
}
public override string ToString()
{
return Definition.FriendlyName;
}
public override string ToString() => Definition.FriendlyName;
public static void WriteReference(GenericWriter writer, Town town)
{