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

@ -43,10 +43,7 @@ namespace Server.Items
public PotionEffect PotionEffect
{
get
{
return m_PotionEffect;
}
get => m_PotionEffect;
set
{
m_PotionEffect = value;
@ -54,8 +51,8 @@ namespace Server.Items
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return (Core.ML); } }
int ICommodity.DescriptionNumber => LabelNumber;
bool ICommodity.IsDeedable => (Core.ML);
public override int LabelNumber => 1041314 + (int)m_PotionEffect;
@ -71,7 +68,7 @@ namespace Server.Items
{
}
public virtual bool RequireFreeHand{ get{ return true; } }
public virtual bool RequireFreeHand => true;
public static bool HasFreeHand( Mobile m )
{

View file

@ -140,10 +140,7 @@ namespace Server.Items
{
private BaseConflagrationPotion m_Potion;
public BaseConflagrationPotion Potion
{
get{ return m_Potion; }
}
public BaseConflagrationPotion Potion => m_Potion;
public ThrowTarget( BaseConflagrationPotion potion ) : base( 12, true, TargetFlags.None )
{
@ -185,7 +182,7 @@ namespace Server.Items
private DateTime m_End;
private Timer m_Timer;
public Mobile From{ get{ return m_From; } }
public Mobile From => m_From;
public override bool BlocksFit => true;

View file

@ -160,10 +160,7 @@ namespace Server.Items
{
private BaseConfusionBlastPotion m_Potion;
public BaseConfusionBlastPotion Potion
{
get{ return m_Potion; }
}
public BaseConfusionBlastPotion Potion => m_Potion;
public ThrowTarget( BaseConfusionBlastPotion potion ) : base( 12, true, TargetFlags.None )
{

View file

@ -7,15 +7,9 @@ namespace Server.Items
private Poison m_Poison;
private double m_Chance;
public Poison Poison
{
get{ return m_Poison; }
}
public Poison Poison => m_Poison;
public double Chance
{
get{ return m_Chance; }
}
public double Chance => m_Chance;
public CureLevelInfo( Poison poison, double chance )
{

View file

@ -166,10 +166,7 @@ namespace Server.Items
{
private BaseExplosionPotion m_Potion;
public BaseExplosionPotion Potion
{
get{ return m_Potion; }
}
public BaseExplosionPotion Potion => m_Potion;
public ThrowTarget( BaseExplosionPotion potion ) : base( 12, true, TargetFlags.None )
{