Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -50,8 +50,8 @@ namespace Server.Engines.Plants
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SecureLevel Level
|
||||
{
|
||||
get{ return m_Level; }
|
||||
set{ m_Level = value; }
|
||||
get => m_Level;
|
||||
set => m_Level = value;
|
||||
}
|
||||
|
||||
public PlantSystem PlantSystem => m_PlantSystem;
|
||||
|
|
@ -73,7 +73,7 @@ namespace Server.Engines.Plants
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public PlantStatus PlantStatus
|
||||
{
|
||||
get { return m_PlantStatus; }
|
||||
get => m_PlantStatus;
|
||||
set
|
||||
{
|
||||
if ( m_PlantStatus == value || value < PlantStatus.BowlOfDirt || value > PlantStatus.DeadTwigs )
|
||||
|
|
@ -111,7 +111,7 @@ namespace Server.Engines.Plants
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public PlantType PlantType
|
||||
{
|
||||
get { return m_PlantType; }
|
||||
get => m_PlantType;
|
||||
set
|
||||
{
|
||||
m_PlantType = value;
|
||||
|
|
@ -122,7 +122,7 @@ namespace Server.Engines.Plants
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public PlantHue PlantHue
|
||||
{
|
||||
get { return m_PlantHue; }
|
||||
get => m_PlantHue;
|
||||
set
|
||||
{
|
||||
m_PlantHue = value;
|
||||
|
|
@ -133,7 +133,7 @@ namespace Server.Engines.Plants
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool ShowType
|
||||
{
|
||||
get { return m_ShowType; }
|
||||
get => m_ShowType;
|
||||
set
|
||||
{
|
||||
m_ShowType = value;
|
||||
|
|
@ -165,26 +165,17 @@ namespace Server.Engines.Plants
|
|||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool IsGrowable
|
||||
{
|
||||
get { return m_PlantStatus >= PlantStatus.BowlOfDirt && m_PlantStatus <= PlantStatus.Stage9; }
|
||||
}
|
||||
public bool IsGrowable => m_PlantStatus >= PlantStatus.BowlOfDirt && m_PlantStatus <= PlantStatus.Stage9;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool IsCrossable
|
||||
{
|
||||
get { return PlantHueInfo.IsCrossable( this.PlantHue ) && PlantTypeInfo.IsCrossable( this.PlantType ); }
|
||||
}
|
||||
public bool IsCrossable => PlantHueInfo.IsCrossable( this.PlantHue ) && PlantTypeInfo.IsCrossable( this.PlantType );
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool Reproduces
|
||||
{
|
||||
get { return PlantHueInfo.CanReproduce( this.PlantHue ) && PlantTypeInfo.CanReproduce( this.PlantType ); }
|
||||
}
|
||||
public bool Reproduces => PlantHueInfo.CanReproduce( this.PlantHue ) && PlantTypeInfo.CanReproduce( this.PlantType );
|
||||
|
||||
private static ArrayList m_Instances = new ArrayList();
|
||||
|
||||
public static ArrayList Plants{ get{ return m_Instances; } }
|
||||
public static ArrayList Plants => m_Instances;
|
||||
|
||||
[Constructible]
|
||||
public PlantItem() : this( false )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue