Fixes body expression style.

This commit is contained in:
Kamron Batman 2018-09-14 08:46:14 -07:00
parent 3f0a72a62f
commit 33f5e77a24
957 changed files with 7424 additions and 15973 deletions

View file

@ -26,19 +26,19 @@ namespace Server
[Parsable]
public abstract class Race
{
public static Race DefaultRace { get { return m_Races[0]; } }
public static Race DefaultRace => m_Races[0];
private static Race[] m_Races = new Race[0x100];
public static Race[] Races { get { return m_Races; } }
public static Race[] Races => m_Races;
public static Race Human { get { return m_Races[0]; } }
public static Race Elf { get { return m_Races[1]; } }
public static Race Gargoyle { get { return m_Races[2]; } }
public static Race Human => m_Races[0];
public static Race Elf => m_Races[1];
public static Race Gargoyle => m_Races[2];
private static List<Race> m_AllRaces = new List<Race>();
public static List<Race> AllRaces { get { return m_AllRaces; } }
public static List<Race> AllRaces => m_AllRaces;
private int m_RaceID, m_RaceIndex;
@ -105,13 +105,13 @@ namespace Server
private Expansion m_RequiredExpansion;
public Expansion RequiredExpansion { get { return m_RequiredExpansion; } }
public Expansion RequiredExpansion => m_RequiredExpansion;
public int MaleBody { get { return m_MaleBody; } }
public int MaleGhostBody { get { return m_MaleGhostBody; } }
public int MaleBody => m_MaleBody;
public int MaleGhostBody => m_MaleGhostBody;
public int FemaleBody { get { return m_FemaleBody; } }
public int FemaleGhostBody { get { return m_FemaleGhostBody; } }
public int FemaleBody => m_FemaleBody;
public int FemaleGhostBody => m_FemaleGhostBody;
protected Race( int raceID, int raceIndex, string name, string pluralName, int maleBody, int femaleBody, int maleGhostBody, int femaleGhostBody, Expansion requiredExpansion )
{
@ -167,44 +167,20 @@ namespace Server
return (female ? m_FemaleGhostBody : m_MaleGhostBody);
}
public int RaceID
{
get
{
return m_RaceID;
}
}
public int RaceID => m_RaceID;
public int RaceIndex
{
get
{
return m_RaceIndex;
}
}
public int RaceIndex => m_RaceIndex;
public string Name
{
get
{
return m_Name;
}
set
{
m_Name = value;
}
get => m_Name;
set => m_Name = value;
}
public string PluralName
{
get
{
return m_PluralName;
}
set
{
m_PluralName = value;
}
get => m_PluralName;
set => m_PluralName = value;
}
}
}