Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue