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

@ -190,15 +190,9 @@ namespace Server.Multis
public static ComponentVerification Verification => m_Verification ?? (m_Verification = new ComponentVerification());
public bool IsFixture(Item item)
{
return Fixtures.Contains(item);
}
public bool IsFixture(Item item) => Fixtures.Contains(item);
public override int GetMaxUpdateRange()
{
return 24;
}
public override int GetMaxUpdateRange() => 24;
public override int GetUpdateRange(Mobile m)
{
@ -633,13 +627,7 @@ namespace Server.Multis
}
}
private static DoorFacing GetSADoorFacing(int offset)
{
/* Offset 0 2 4 6
* DoorFacing 2 3 6 7
*/
return (DoorFacing)((offset / 2 + 2 * (1 + offset / 4)) % 8);
}
private static DoorFacing GetSADoorFacing(int offset) => (DoorFacing)((offset / 2 + 2 * (1 + offset / 4)) % 8);
public void AddFixture(Item item, MultiTileEntry mte)
{
@ -932,10 +920,7 @@ namespace Server.Multis
base.Deserialize(reader);
}
public bool IsHiddenToCustomizer(Item item)
{
return item == Signpost || item == SignHanger || item == Sign || IsFixture(item);
}
public bool IsHiddenToCustomizer(Item item) => item == Signpost || item == SignHanger || item == Sign || IsFixture(item);
public static void Initialize()
{
@ -1525,10 +1510,8 @@ namespace Server.Multis
{
try
{
using (StreamWriter op = new StreamWriter("comp_val.log", true))
{
op.WriteLine("{0}\t{1}\tInvalid ItemID 0x{2:X4}", state, state.Mobile, itemID);
}
using StreamWriter op = new StreamWriter("comp_val.log", true);
op.WriteLine("{0}\t{1}\tInvalid ItemID 0x{2:X4}", state, state.Mobile, itemID);
}
catch
{
@ -2519,10 +2502,8 @@ namespace Server.Multis
try
{
using (StreamWriter op = new StreamWriter("dsd_exceptions.txt", true))
{
op.WriteLine(e);
}
using StreamWriter op = new StreamWriter("dsd_exceptions.txt", true);
op.WriteLine(e);
}
catch
{