Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 • committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -64,7 +64,7 @@ namespace Server.Factions
Faction = faction;
}
public override FoodType FavoriteFood{ get{ return FoodType.FruitsAndVegies | FoodType.GrainsAndHay; } }
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
public FactionWarHorse( Serial serial ) : base( serial )
{
@ -109,4 +109,4 @@ namespace Server.Factions
}
}
}
}
}

View file

@ -55,7 +55,7 @@ namespace Server.Factions
get { return new FactionGuardAI( this ); }
}
public override TimeSpan ReacquireDelay{ get{ return TimeSpan.FromSeconds( 2.0 ); } }
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds( 2.0 );
public override bool IsEnemy( Mobile m )
{

View file

@ -6,7 +6,7 @@ namespace Server.Factions
{
public class FactionBerserker : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Melee | GuardAI.Curse | GuardAI.Bless; } }
public override GuardAI GuardAI => GuardAI.Melee | GuardAI.Curse | GuardAI.Bless;
[Constructible]
public FactionBerserker() : base( "the berserker" )
@ -71,4 +71,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Factions
{
public class FactionDeathKnight : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Melee | GuardAI.Curse | GuardAI.Bless; } }
public override GuardAI GuardAI => GuardAI.Melee | GuardAI.Curse | GuardAI.Bless;
[Constructible]
public FactionDeathKnight() : base( "the death knight" )
@ -67,4 +67,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,7 +7,7 @@ namespace Server.Factions
{
public class FactionDragoon : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse; } }
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse;
[Constructible]
public FactionDragoon() : base( "the dragoon" )
@ -72,4 +72,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Factions
{
public class FactionHenchman : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Melee; } }
public override GuardAI GuardAI => GuardAI.Melee;
[Constructible]
public FactionHenchman() : base( "the henchman" )
@ -64,4 +64,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Factions
{
public class FactionKnight : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Curse | GuardAI.Bless; } }
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Curse | GuardAI.Bless;
[Constructible]
public FactionKnight() : base( "the knight" )
@ -72,4 +72,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Factions
{
public class FactionMercenary : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Melee | GuardAI.Smart; } }
public override GuardAI GuardAI => GuardAI.Melee | GuardAI.Smart;
[Constructible]
public FactionMercenary() : base( "the mercenary" )
@ -62,4 +62,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Factions
{
public class FactionNecromancer : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse; } }
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse;
[Constructible]
public FactionNecromancer() : base( "the necromancer" )
@ -65,4 +65,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,7 +7,7 @@ namespace Server.Factions
{
public class FactionPaladin : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Curse | GuardAI.Bless; } }
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Melee | GuardAI.Smart | GuardAI.Curse | GuardAI.Bless;
[Constructible]
public FactionPaladin() : base( "the paladin" )
@ -73,4 +73,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Factions
{
public class FactionSorceress : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Bless | GuardAI.Curse; } }
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Bless | GuardAI.Curse;
[Constructible]
public FactionSorceress() : base( "the sorceress" )
@ -69,4 +69,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Factions
{
public class FactionWizard : BaseFactionGuard
{
public override GuardAI GuardAI{ get{ return GuardAI.Magic | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse; } }
public override GuardAI GuardAI => GuardAI.Magic | GuardAI.Smart | GuardAI.Bless | GuardAI.Curse;
[Constructible]
public FactionWizard() : base( "the wizard" )
@ -66,4 +66,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -54,8 +54,8 @@ namespace Server.Factions
{
}
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
public override IShopSellInfo SellInfo => m_SellInfo;
public override List<GenericBuyInfo> BuyInfo => m_BuyInfo;
public class InternalBuyInfo : List<GenericBuyInfo>
{
@ -73,4 +73,4 @@ namespace Server.Factions
}
}
}
}
}

View file

@ -59,8 +59,8 @@ namespace Server.Factions
{
}
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
public override IShopSellInfo SellInfo => m_SellInfo;
public override List<GenericBuyInfo> BuyInfo => m_BuyInfo;
public class InternalBuyInfo : List<GenericBuyInfo>
{
@ -78,4 +78,4 @@ namespace Server.Factions
}
}
}
}
}

View file

@ -57,8 +57,8 @@ namespace Server.Factions
{
}
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
public override IShopSellInfo SellInfo => m_SellInfo;
public override List<GenericBuyInfo> BuyInfo => m_BuyInfo;
public class InternalBuyInfo : List<GenericBuyInfo>
{
@ -76,4 +76,4 @@ namespace Server.Factions
}
}
}
}
}

View file

@ -64,8 +64,8 @@ namespace Server.Factions
{
}
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
public override IShopSellInfo SellInfo => m_SellInfo;
public override List<GenericBuyInfo> BuyInfo => m_BuyInfo;
public class InternalBuyInfo : List<GenericBuyInfo>
{
@ -92,4 +92,4 @@ namespace Server.Factions
}
}
}
}
}