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

@ -65,10 +65,8 @@ namespace Server
try
{
using (StreamWriter op = new StreamWriter("faction-power-items.log", true))
{
op.WriteLine("{0}\t{1}\t{2}\t{3}", DateTime.UtcNow, killer, victim, obj);
}
using StreamWriter op = new StreamWriter("faction-power-items.log", true);
op.WriteLine("{0}\t{1}\t{2}\t{3}", DateTime.UtcNow, killer, victim, obj);
}
catch
{
@ -144,10 +142,8 @@ namespace Server
private bool _screamed;
public DestructionTimer(Mobile mob)
: base(TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(0.1), 10)
{
: base(TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(0.1), 10) =>
_mobile = mob;
}
protected override void OnTick()
{
@ -178,10 +174,7 @@ namespace Server
public Type Type{ get; }
public Item Construct()
{
return Activator.CreateInstance(Type) as Item;
}
public Item Construct() => Activator.CreateInstance(Type) as Item;
}
}
}