Formatting #2 (#59)

This commit is contained in:
Kamron Batman 2019-10-05 00:37:03 -07:00 • committed by GitHub
parent 096d39609e
commit 8e9221bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 3688 additions and 5969 deletions

View file

@ -27,7 +27,7 @@ namespace Server.Items
{
Point3D point = new Point3D(p.X, p.Y, p.Z);
if (map == null || !map.CanFit(point, 20))
if (map?.CanFit(point, 20) != true)
return false;
BaseHouse house = BaseHouse.FindHouseAt(point, map, 20);
@ -113,13 +113,13 @@ namespace Server.Items
public int GetTypeNumber(StatueType type)
{
switch (type)
return type switch
{
case StatueType.Marble: return 1076181;
case StatueType.Jade: return 1076180;
case StatueType.Bronze: return 1076230;
default: return 1076181;
}
StatueType.Marble => 1076181,
StatueType.Jade => 1076180,
StatueType.Bronze => 1076230,
_ => 1076181
};
}
}
}