Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -11,7 +11,7 @@ namespace Server.Items
{
public class Bandage : Item, IDyable
{
public static int Range = ( Core.AOS ? 2 : 1 );
public static int Range = ( Core.AOS ? 2 : 1 );
public override double DefaultWeight
{
@ -204,8 +204,7 @@ namespace Server.Items
public static BandageContext GetContext( Mobile healer )
{
BandageContext bc = null;
m_Table.TryGetValue( healer, out bc );
m_Table.TryGetValue( healer, out BandageContext bc );
return bc;
}
@ -514,7 +513,7 @@ namespace Server.Items
else if ( Core.AOS )
{
if (dex < 204)
{
{
seconds = 3.2-(Math.Sin((double)dex/130)*2.5) + resDelay;
}
else
@ -538,7 +537,7 @@ namespace Server.Items
if ( context != null )
context.StopHeal();
seconds *= 1000;
context = new BandageContext( healer, patient, TimeSpan.FromMilliseconds( seconds ) );
m_Table[healer] = context;
@ -553,4 +552,4 @@ namespace Server.Items
return null;
}
}
}
}