Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -9,11 +9,7 @@ namespace Server.Targets
|
|||
private List<BaseAI> m_List;
|
||||
private OrderType m_Order;
|
||||
|
||||
public OrderType Order {
|
||||
get {
|
||||
return m_Order;
|
||||
}
|
||||
}
|
||||
public OrderType Order => m_Order;
|
||||
|
||||
public AIControlMobileTarget( BaseAI ai, OrderType order ) : base( -1, false, ( order == OrderType.Attack ? TargetFlags.Harmful : TargetFlags.None ) )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -71,10 +71,7 @@ namespace Server.Mobiles
|
|||
|
||||
public ActionType Action
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Action;
|
||||
}
|
||||
get => m_Action;
|
||||
set
|
||||
{
|
||||
m_Action = value;
|
||||
|
|
@ -1992,8 +1989,8 @@ namespace Server.Mobiles
|
|||
|
||||
public long NextMove
|
||||
{
|
||||
get { return m_NextMove; }
|
||||
set { m_NextMove = value; }
|
||||
get => m_NextMove;
|
||||
set => m_NextMove = value;
|
||||
}
|
||||
|
||||
public virtual bool CheckMove()
|
||||
|
|
@ -2697,7 +2694,7 @@ namespace Server.Mobiles
|
|||
|
||||
private long m_NextDetectHidden;
|
||||
|
||||
public virtual bool CanDetectHidden { get { return m_Mobile.Skills[SkillName.DetectHidden].Value > 0; } }
|
||||
public virtual bool CanDetectHidden => m_Mobile.Skills[SkillName.DetectHidden].Value > 0;
|
||||
|
||||
/*
|
||||
* The Timer object
|
||||
|
|
|
|||
|
|
@ -34,15 +34,9 @@ namespace Server.Mobiles
|
|||
return base.Think();
|
||||
}
|
||||
|
||||
public virtual bool SmartAI
|
||||
{
|
||||
get { return ( m_Mobile is BaseVendor || m_Mobile is BaseEscortable || m_Mobile is Changeling ); }
|
||||
}
|
||||
public virtual bool SmartAI => ( m_Mobile is BaseVendor || m_Mobile is BaseEscortable || m_Mobile is Changeling );
|
||||
|
||||
public virtual bool IsNecromancer
|
||||
{
|
||||
get { return ( Core.AOS && m_Mobile.Skills[ SkillName.Necromancy ].Value > 50 ); }
|
||||
}
|
||||
public virtual bool IsNecromancer => ( Core.AOS && m_Mobile.Skills[ SkillName.Necromancy ].Value > 50 );
|
||||
|
||||
private const double HealChance = 0.10; // 10% chance to heal at gm magery
|
||||
private const double TeleportChance = 0.05; // 5% chance to teleport at gm magery
|
||||
|
|
|
|||
|
|
@ -62,10 +62,7 @@ namespace Server
|
|||
}
|
||||
} );
|
||||
|
||||
public static OppositionGroup TerathansAndOphidians
|
||||
{
|
||||
get{ return m_TerathansAndOphidians; }
|
||||
}
|
||||
public static OppositionGroup TerathansAndOphidians => m_TerathansAndOphidians;
|
||||
|
||||
private static OppositionGroup m_SavagesAndOrcs = new OppositionGroup( new Type[][]
|
||||
{
|
||||
|
|
@ -88,11 +85,8 @@ namespace Server
|
|||
}
|
||||
} );
|
||||
|
||||
public static OppositionGroup SavagesAndOrcs
|
||||
{
|
||||
get{ return m_SavagesAndOrcs; }
|
||||
}
|
||||
|
||||
public static OppositionGroup SavagesAndOrcs => m_SavagesAndOrcs;
|
||||
|
||||
private static OppositionGroup m_FeyAndUndead = new OppositionGroup( new Type[][]
|
||||
{
|
||||
new Type[]
|
||||
|
|
@ -133,9 +127,6 @@ namespace Server
|
|||
}
|
||||
} );
|
||||
|
||||
public static OppositionGroup FeyAndUndead
|
||||
{
|
||||
get{ return m_FeyAndUndead; }
|
||||
}
|
||||
public static OppositionGroup FeyAndUndead => m_FeyAndUndead;
|
||||
}
|
||||
}
|
||||
|
|
@ -16,20 +16,20 @@ namespace Server
|
|||
|
||||
public double ActiveSpeed
|
||||
{
|
||||
get{ return m_ActiveSpeed; }
|
||||
set{ m_ActiveSpeed = value; }
|
||||
get => m_ActiveSpeed;
|
||||
set => m_ActiveSpeed = value;
|
||||
}
|
||||
|
||||
public double PassiveSpeed
|
||||
{
|
||||
get{ return m_PassiveSpeed; }
|
||||
set{ m_PassiveSpeed = value; }
|
||||
get => m_PassiveSpeed;
|
||||
set => m_PassiveSpeed = value;
|
||||
}
|
||||
|
||||
public Type[] Types
|
||||
{
|
||||
get{ return m_Types; }
|
||||
set{ m_Types = value; }
|
||||
get => m_Types;
|
||||
set => m_Types = value;
|
||||
}
|
||||
|
||||
public SpeedInfo( double activeSpeed, double passiveSpeed, Type[] types )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue