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

@ -20,7 +20,7 @@ namespace Server.Items
[Flippable( 0x2AF9, 0x2AFD )]
public class DawnsMusicBox : Item, ISecurable
{
public override int LabelNumber { get { return 1075198; } } // Dawn’s Music Box
public override int LabelNumber => 1075198; // Dawn<77>s Music Box
private List<MusicName> m_Tracks;

View file

@ -5,20 +5,20 @@ namespace Server.Items
{
public class DupresShield : BaseShield, ITokunoDyable
{
public override int LabelNumber { get { return 1075196; } } // Dupre’s Shield
public override int LabelNumber => 1075196; // Dupre<72>s Shield
public override int BasePhysicalResistance { get { return 1; } }
public override int BaseFireResistance { get { return 0; } }
public override int BaseColdResistance { get { return 0; } }
public override int BasePoisonResistance { get { return 0; } }
public override int BaseEnergyResistance { get { return 1; } }
public override int BasePhysicalResistance => 1;
public override int BaseFireResistance => 0;
public override int BaseColdResistance => 0;
public override int BasePoisonResistance => 0;
public override int BaseEnergyResistance => 1;
public override int InitMinHits { get { return 255; } }
public override int InitMaxHits { get { return 255; } }
public override int InitMinHits => 255;
public override int InitMaxHits => 255;
public override int AosStrReq { get { return 50; } }
public override int AosStrReq => 50;
public override int ArmorBase { get { return 15; } }
public override int ArmorBase => 15;
[Constructible]
public DupresShield() : base( 0x2B01 )

View file

@ -7,9 +7,9 @@ namespace Server.Items
{
public class EnhancedBandage : Bandage
{
public static int HealingBonus { get { return 10; } }
public static int HealingBonus => 10;
public override int LabelNumber { get { return 1152441; } } // enhanced bandage
public override int LabelNumber => 1152441; // enhanced bandage
[Constructible]
public EnhancedBandage()
@ -71,10 +71,10 @@ namespace Server.Items
public virtual TimeSpan RechargeTime { get { return TimeSpan.FromDays( 1 ); } }
public override int LabelNumber { get { return 1075197; } } // Fountain of Life
public override int DefaultGumpID { get { return 0x484; } }
public override int DefaultDropSound { get { return 66; } }
public override int DefaultMaxItems { get { return 125; } }
public override int LabelNumber => 1075197; // Fountain of Life
public override int DefaultGumpID => 0x484;
public override int DefaultDropSound => 66;
public override int DefaultMaxItems => 125;
private int m_Charges;
@ -228,8 +228,8 @@ namespace Server.Items
public class FountainOfLifeDeed : BaseAddonContainerDeed
{
public override int LabelNumber { get { return 1075197; } } // Fountain of Life
public override BaseAddonContainer Addon { get { return new FountainOfLife( m_Charges ); } }
public override int LabelNumber => 1075197; // Fountain of Life
public override BaseAddonContainer Addon => new FountainOfLife( m_Charges );
private int m_Charges;
@ -248,7 +248,6 @@ namespace Server.Items
[Constructible]
public FountainOfLifeDeed( int charges )
: base()
{
LootType = LootType.Blessed;
m_Charges = charges;
@ -277,4 +276,4 @@ namespace Server.Items
m_Charges = reader.ReadInt();
}
}
}
}

View file

@ -4,7 +4,7 @@ namespace Server.Items
{
public class OssianGrimoire : NecromancerSpellbook, ITokunoDyable
{
public override int LabelNumber { get { return 1078148; } } // Ossian Grimoire
public override int LabelNumber => 1078148; // Ossian Grimoire
[Constructible]
public OssianGrimoire()

View file

@ -4,7 +4,7 @@ namespace Server.Items
{
public class QuiverOfInfinity : BaseQuiver, ITokunoDyable
{
public override int LabelNumber { get { return 1075201; } } // Quiver of Infinity
public override int LabelNumber => 1075201; // Quiver of Infinity
[Constructible]
public QuiverOfInfinity() : base( 0x2B02 )

View file

@ -14,7 +14,7 @@ namespace Server.Items
public class BaseFormTalisman : Item, ITokunoDyable
{
public virtual TalismanForm Form { get { return TalismanForm.Squirrel; } }
public virtual TalismanForm Form => TalismanForm.Squirrel;
public BaseFormTalisman() : base( 0x2F59 )
{
@ -75,10 +75,10 @@ namespace Server.Items
public class FerretFormTalisman : BaseFormTalisman
{
public override TalismanForm Form { get { return TalismanForm.Ferret; } }
public override TalismanForm Form => TalismanForm.Ferret;
[Constructible]
public FerretFormTalisman() : base()
public FerretFormTalisman()
{
}
@ -103,10 +103,10 @@ namespace Server.Items
public class SquirrelFormTalisman : BaseFormTalisman
{
public override TalismanForm Form { get { return TalismanForm.Squirrel; } }
public override TalismanForm Form => TalismanForm.Squirrel;
[Constructible]
public SquirrelFormTalisman () : base()
public SquirrelFormTalisman ()
{
}
@ -131,10 +131,10 @@ namespace Server.Items
public class CuSidheFormTalisman : BaseFormTalisman
{
public override TalismanForm Form { get { return TalismanForm.CuSidhe; } }
public override TalismanForm Form => TalismanForm.CuSidhe;
[Constructible]
public CuSidheFormTalisman() : base()
public CuSidheFormTalisman()
{
}
@ -159,10 +159,10 @@ namespace Server.Items
public class ReptalonFormTalisman : BaseFormTalisman
{
public override TalismanForm Form { get { return TalismanForm.Reptalon; } }
public override TalismanForm Form => TalismanForm.Reptalon;
[Constructible]
public ReptalonFormTalisman() : base()
public ReptalonFormTalisman()
{
}