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

@ -22,43 +22,40 @@ namespace Server
int i = 0, x = 0, y = 0;
if (File.Exists(filePath))
using (StreamReader ip = new StreamReader(filePath))
{
string line;
{
using StreamReader ip = new StreamReader(filePath);
string line;
while ((line = ip.ReadLine()) != null)
while ((line = ip.ReadLine()) != null)
{
i++;
try
{
i++;
string[] split = line.Split(' ');
x = Convert.ToInt32(split[0]);
y = Convert.ToInt32(split[1]);
try
{
string[] split = line.Split(' ');
x = Convert.ToInt32(split[0]);
y = Convert.ToInt32(split[1]);
try
{
new TreasureRegion(x, y, Map.Felucca);
new TreasureRegion(x, y, Map.Trammel);
}
catch (Exception e)
{
Console.WriteLine("{0} {1} {2} {3}", i, x, y, e);
}
new TreasureRegion(x, y, Map.Felucca);
new TreasureRegion(x, y, Map.Trammel);
}
catch
catch (Exception e)
{
Console.WriteLine("Warning: Error in Line '{0}' of Data/treasure.cfg", line);
Console.WriteLine("{0} {1} {2} {3}", i, x, y, e);
}
}
catch
{
Console.WriteLine("Warning: Error in Line '{0}' of Data/treasure.cfg", line);
}
}
}
}
public override bool AllowHousing(Mobile from, Point3D p)
{
return false;
}
public override bool AllowHousing(Mobile from, Point3D p) => false;
public override void OnEnter(Mobile m)
{