Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -7,13 +7,11 @@ namespace Server.Engines.Harvest
{
public abstract class HarvestSystem
{
private List<HarvestDefinition> m_Definitions;
public List<HarvestDefinition> Definitions => m_Definitions;
public List<HarvestDefinition> Definitions { get; }
public HarvestSystem()
{
m_Definitions = new List<HarvestDefinition>();
Definitions = new List<HarvestDefinition>();
}
public virtual bool CheckTool( Mobile from, Item tool )
@ -390,9 +388,9 @@ namespace Server.Engines.Harvest
{
HarvestDefinition def = null;
for ( int i = 0; def == null && i < m_Definitions.Count; ++i )
for ( int i = 0; def == null && i < Definitions.Count; ++i )
{
HarvestDefinition check = m_Definitions[i];
HarvestDefinition check = Definitions[i];
if ( check.Validate( tileID ) )
def = check;