Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Server.Items
|
|||
{
|
||||
public class FireHorn : Item
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1060456; } } // fire horn
|
||||
public override int LabelNumber => 1060456; // fire horn
|
||||
|
||||
[Constructible]
|
||||
public FireHorn() : base( 0xFC7 )
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Server.Items
|
|||
{
|
||||
public class RecipeScroll : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1074560; } } // recipe scroll
|
||||
public override int LabelNumber => 1074560; // recipe scroll
|
||||
|
||||
private int m_RecipeID;
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ namespace Server.Items
|
|||
{
|
||||
pm.SendLocalizedMessage( 1073427 ); // You already know this recipe.
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,11 +16,11 @@ namespace Server.Items
|
|||
private TextDefinition m_NotNearbyMessage, m_Name;
|
||||
|
||||
public TextDefinition NotNearbyMessage{ get { return m_NotNearbyMessage; } }
|
||||
public TextDefinition Name { get { return m_Name; } }
|
||||
public TextDefinition Name => m_Name;
|
||||
|
||||
|
||||
public CraftSystem System { get { return m_System; } }
|
||||
public Type[] NearbyTypes { get { return m_NearbyTypes; } }
|
||||
public CraftSystem System => m_System;
|
||||
public Type[] NearbyTypes => m_NearbyTypes;
|
||||
|
||||
public RepairSkillInfo( CraftSystem system, Type[] nearbyTypes, TextDefinition notNearbyMessage, TextDefinition name )
|
||||
{
|
||||
|
|
@ -35,7 +35,7 @@ namespace Server.Items
|
|||
{
|
||||
}
|
||||
|
||||
public static RepairSkillInfo[] Table { get { return m_Table; } }
|
||||
public static RepairSkillInfo[] Table => m_Table;
|
||||
private static RepairSkillInfo[] m_Table = new RepairSkillInfo[]
|
||||
{
|
||||
new RepairSkillInfo( DefBlacksmithy.CraftSystem, typeof( Blacksmith ), 1047013, 1023015 ),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue