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
{

View file

@ -122,10 +122,7 @@ namespace Server.Mobiles
AddImage(293, 308 + offset, 0x25E6);
}
public int GetButtonID(int type, int index)
{
return 1 + index * 10 + type;
}
public int GetButtonID(int type, int index) => 1 + index * 10 + type;
public void CreateArray(RelayInfo info, Mobile from, Spawner spawner)
{

View file

@ -4,9 +4,6 @@ namespace Server.Mobiles
{
public class SpawnerType
{
public static Type GetType(string name)
{
return AssemblyHandler.FindTypeByName(name);
}
public static Type GetType(string name) => AssemblyHandler.FindTypeByName(name);
}
}