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

@ -591,15 +591,9 @@ namespace Server.Mobiles
return false;
}
public virtual int GetWalkingRange()
{
return m_WalkingRange;
}
public virtual int GetWalkingRange() => m_WalkingRange;
public virtual WayPoint GetWayPoint()
{
return WayPoint;
}
public virtual WayPoint GetWayPoint() => WayPoint;
public virtual Point3D GetSpawnPosition(ISpawnable spawned, Map map)
{
@ -671,10 +665,7 @@ namespace Server.Mobiles
return false;
}
public virtual Map GetSpawnMap()
{
return Map;
}
public virtual Map GetSpawnMap() => Map;
public void DoTimer()
{
@ -1024,19 +1015,17 @@ namespace Server.Mobiles
{
Console.WriteLine("Warning: {0} bad spawns detected, logged: 'badspawn.log'", m_List.Count);
using (StreamWriter op = new StreamWriter("badspawn.log", true))
{
op.WriteLine("# Bad spawns : {0}", DateTime.Now);
op.WriteLine("# Format: X Y Z F Name");
op.WriteLine();
using StreamWriter op = new StreamWriter("badspawn.log", true);
op.WriteLine("# Bad spawns : {0}", DateTime.Now);
op.WriteLine("# Format: X Y Z F Name");
op.WriteLine();
foreach (WarnEntry e in m_List)
op.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}", e.m_Point.X, e.m_Point.Y, e.m_Point.Z, e.m_Map,
e.m_Name);
foreach (WarnEntry e in m_List)
op.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}", e.m_Point.X, e.m_Point.Y, e.m_Point.Z, e.m_Map,
e.m_Name);
op.WriteLine();
op.WriteLine();
}
op.WriteLine();
op.WriteLine();
}
catch
{