Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -10,7 +10,7 @@ namespace Server.Factions
|
|||
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
|
||||
public Faction Faction
|
||||
{
|
||||
get{ return m_Faction; }
|
||||
get => m_Faction;
|
||||
set
|
||||
{
|
||||
m_Faction = value;
|
||||
|
|
|
|||
|
|
@ -18,19 +18,16 @@ namespace Server.Factions
|
|||
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
|
||||
public Faction Faction
|
||||
{
|
||||
get{ return m_Faction; }
|
||||
get => m_Faction;
|
||||
set{ Unregister(); m_Faction = value; Register(); }
|
||||
}
|
||||
|
||||
public Orders Orders
|
||||
{
|
||||
get{ return m_Orders; }
|
||||
}
|
||||
public Orders Orders => m_Orders;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
|
||||
public Town Town
|
||||
{
|
||||
get{ return m_Town; }
|
||||
get => m_Town;
|
||||
set{ Unregister(); m_Town = value; Register(); }
|
||||
}
|
||||
|
||||
|
|
@ -48,10 +45,7 @@ namespace Server.Factions
|
|||
|
||||
public abstract GuardAI GuardAI{ get; }
|
||||
|
||||
protected override BaseAI ForcedAI
|
||||
{
|
||||
get { return new FactionGuardAI( this ); }
|
||||
}
|
||||
protected override BaseAI ForcedAI => new FactionGuardAI( this );
|
||||
|
||||
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds( 2.0 );
|
||||
|
||||
|
|
@ -442,7 +436,7 @@ namespace Server.Factions
|
|||
|
||||
public Mobile Rider
|
||||
{
|
||||
get{ return m_Item.Rider; }
|
||||
get => m_Item.Rider;
|
||||
set{}
|
||||
}
|
||||
|
||||
|
|
@ -461,7 +455,7 @@ namespace Server.Factions
|
|||
private Mobile m_Rider;
|
||||
private VirtualMount m_Mount;
|
||||
|
||||
public Mobile Rider{ get{ return m_Rider; } }
|
||||
public Mobile Rider => m_Rider;
|
||||
|
||||
public VirtualMountItem( Mobile mob ) : base( 0x3EA0 )
|
||||
{
|
||||
|
|
@ -471,10 +465,7 @@ namespace Server.Factions
|
|||
m_Mount = new VirtualMount( this );
|
||||
}
|
||||
|
||||
public IMount Mount
|
||||
{
|
||||
get{ return m_Mount; }
|
||||
}
|
||||
public IMount Mount => m_Mount;
|
||||
|
||||
public VirtualMountItem( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ namespace Server.Factions
|
|||
private TimeSpan m_Hold;
|
||||
private int m_Chance;
|
||||
|
||||
public Type Spell{ get{ return m_Spell; } }
|
||||
public TimeSpan Hold{ get{ return m_Hold; } }
|
||||
public int Chance{ get{ return m_Chance; } }
|
||||
public Type Spell => m_Spell;
|
||||
public TimeSpan Hold => m_Hold;
|
||||
public int Chance => m_Chance;
|
||||
|
||||
public ComboEntry( Type spell ) : this( spell, 100, TimeSpan.Zero )
|
||||
{
|
||||
|
|
@ -55,8 +55,8 @@ namespace Server.Factions
|
|||
private int m_Mana;
|
||||
private ComboEntry[] m_Entries;
|
||||
|
||||
public int Mana{ get{ return m_Mana; } }
|
||||
public ComboEntry[] Entries{ get{ return m_Entries; } }
|
||||
public int Mana => m_Mana;
|
||||
public ComboEntry[] Entries => m_Entries;
|
||||
|
||||
public SpellCombo( int mana, params ComboEntry[] entries )
|
||||
{
|
||||
|
|
@ -121,15 +121,9 @@ namespace Server.Factions
|
|||
return ( ( m_Guard.GuardAI & flag ) == flag );
|
||||
}
|
||||
|
||||
public bool IsDamaged
|
||||
{
|
||||
get{ return ( m_Guard.Hits < m_Guard.HitsMax ); }
|
||||
}
|
||||
public bool IsDamaged => ( m_Guard.Hits < m_Guard.HitsMax );
|
||||
|
||||
public bool IsPoisoned
|
||||
{
|
||||
get{ return m_Guard.Poisoned; }
|
||||
}
|
||||
public bool IsPoisoned => m_Guard.Poisoned;
|
||||
|
||||
public TimeSpan TimeUntilBandage
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,8 +21,10 @@ namespace Server.Factions.AI
|
|||
private Faction m_Faction;
|
||||
private ReactionType m_Type;
|
||||
|
||||
public Faction Faction{ get{ return m_Faction; } }
|
||||
public ReactionType Type{ get{ return m_Type; } set{ m_Type = value; } }
|
||||
public Faction Faction => m_Faction;
|
||||
public ReactionType Type{ get => m_Type;
|
||||
set => m_Type = value;
|
||||
}
|
||||
|
||||
public Reaction( Faction faction, ReactionType type )
|
||||
{
|
||||
|
|
@ -63,10 +65,14 @@ namespace Server.Factions.AI
|
|||
private MovementType m_Movement;
|
||||
private Mobile m_Follow;
|
||||
|
||||
public BaseFactionGuard Guard{ get{ return m_Guard; } }
|
||||
public BaseFactionGuard Guard => m_Guard;
|
||||
|
||||
public MovementType Movement{ get{ return m_Movement; } set{ m_Movement = value; } }
|
||||
public Mobile Follow{ get{ return m_Follow; } set{ m_Follow = value; } }
|
||||
public MovementType Movement{ get => m_Movement;
|
||||
set => m_Movement = value;
|
||||
}
|
||||
public Mobile Follow{ get => m_Follow;
|
||||
set => m_Follow = value;
|
||||
}
|
||||
|
||||
public Reaction GetReaction( Faction faction )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@ namespace Server.Factions
|
|||
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
|
||||
public Town Town
|
||||
{
|
||||
get{ return m_Town; }
|
||||
get => m_Town;
|
||||
set{ Unregister(); m_Town = value; Register(); }
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
|
||||
public Faction Faction
|
||||
{
|
||||
get{ return m_Faction; }
|
||||
get => m_Faction;
|
||||
set{ Unregister(); m_Faction = value; Register(); }
|
||||
}
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ namespace Server.Factions
|
|||
}
|
||||
|
||||
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } }
|
||||
protected override List<SBInfo> SBInfos => m_SBInfos;
|
||||
|
||||
public override void InitSBInfo()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,10 +17,7 @@ namespace Server.Factions
|
|||
SBInfos.Add( new SBFactionBottle() );
|
||||
}
|
||||
|
||||
public override VendorShoeType ShoeType
|
||||
{
|
||||
get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
|
||||
}
|
||||
public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals;
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,10 +18,7 @@ namespace Server.Factions
|
|||
{
|
||||
}
|
||||
|
||||
public override VendorShoeType ShoeType
|
||||
{
|
||||
get{ return Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots; }
|
||||
}
|
||||
public override VendorShoeType ShoeType => Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots;
|
||||
|
||||
public override int GetShoeHue()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ namespace Server.Factions
|
|||
SBInfos.Add( new SBFactionReagent() );
|
||||
}
|
||||
|
||||
public override VendorShoeType ShoeType
|
||||
{
|
||||
get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
|
||||
}
|
||||
public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals;
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue