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

@ -8,7 +8,7 @@ namespace Server.Items
{
public class GreenThorns : Item
{
public override int LabelNumber { get { return 1060837; } } // green thorns
public override int LabelNumber => 1060837; // green thorns
[Constructible]
public GreenThorns() : this( 1 )
@ -151,8 +151,8 @@ namespace Server.Items
private int[] m_Tiles;
private Type m_Effect;
public int[] Tiles { get { return m_Tiles; } }
public Type Effect { get { return m_Effect; } }
public int[] Tiles => m_Tiles;
public Type Effect => m_Effect;
public TilesAndEffect( int[] tiles, Type effect )
{
@ -293,9 +293,9 @@ namespace Server.Items
private Map m_Map;
private Mobile m_From;
public Point3D Location { get { return m_Location; } }
public Map Map { get { return m_Map; } }
public Mobile From { get { return m_From; } }
public Point3D Location => m_Location;
public Map Map => m_Map;
public Mobile From => m_From;
public GreenThornsEffect( Point3D location, Map map, Mobile from ) : base( TimeSpan.FromSeconds( 2.5 ) )
{
@ -724,4 +724,4 @@ namespace Server.Items
Delete();
}
}
}
}

View file

@ -8,7 +8,7 @@ namespace Server.Items
{
public class OrangePetals : Item
{
public override int LabelNumber { get { return 1053122; } } // orange petals
public override int LabelNumber => 1053122; // orange petals
public override double DefaultWeight
{
@ -32,8 +32,8 @@ namespace Server.Items
{
}
public override bool CheckItemUse( Mobile from, Item item )
{
public override bool CheckItemUse( Mobile from, Item item )
{
if ( item != this )
return base.CheckItemUse( from, item );
@ -146,4 +146,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Items
{
public class RedLeaves : Item
{
public override int LabelNumber { get { return 1053123; } } // red leaves
public override int LabelNumber => 1053123; // red leaves
public override double DefaultWeight
{
@ -105,4 +105,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}