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

@ -76,10 +76,6 @@ namespace Server.Items
Total += score;
Count += 1;
}
public ScoreEntry()
{
}
}
private Dictionary<Mobile, ScoreEntry> m_Entries;
@ -103,7 +99,7 @@ namespace Server.Items
return;
}
if ( DateTime.UtcNow < (LastUse + UseDelay) )
if ( DateTime.UtcNow < LastUse + UseDelay )
return;
Point3D worldLoc = GetWorldLocation();
@ -206,7 +202,7 @@ namespace Server.Items
splitScore = 5;
}
bool split = ( isKnown && ((Arrows + Bolts) * 0.02) > Utility.RandomDouble() );
bool split = isKnown && (Arrows + Bolts) * 0.02 > Utility.RandomDouble();
if ( split )
{

View file

@ -79,12 +79,11 @@ namespace Server.Items
int version = reader.ReadInt();
switch (version)
m_Resource = version switch
{
case 1:
m_Resource = (CraftResource)reader.ReadInt();
break;
}
1 => (CraftResource)reader.ReadInt(),
_ => m_Resource
};
}
public override void OnDoubleClick(Mobile from)

View file

@ -1,6 +1,5 @@
using System;
using System.Linq;
using Server.Commands;
using Server.Mobiles;
namespace Server.Items