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

@ -13,7 +13,6 @@ namespace Server.Items
[Constructible]
public HalloweenPumpkin()
: base()
{
Weight = Utility.RandomMinMax( 3, 20 );
ItemID = ( Utility.RandomDouble() <= .02 ) ? Utility.RandomList( 0x4694, 0x4698 ) : Utility.RandomList( 0xc6a, 0xc6b, 0xc6c );

View file

@ -6,7 +6,7 @@ namespace Server.Items
{
public class PumpkinScarecrow : Item
{
public override int LabelNumber { get { return 1096947; } }
public override int LabelNumber => 1096947;
[Constructible]
public PumpkinScarecrow()

View file

@ -6,7 +6,7 @@ namespace Server.Items
{
public class RuinedTapestry : Item
{
public override string DefaultName{ get { return "Ruined Tapestry "; } }
public override string DefaultName => "Ruined Tapestry ";
[Constructible]
public RuinedTapestry()

View file

@ -6,11 +6,10 @@ namespace Server.Items
public class TwilightLantern : Lantern
{
public override string DefaultName { get { return "Twilight Lantern"; } }
public override string DefaultName => "Twilight Lantern";
[Constructible]
public TwilightLantern()
: base()
{
Hue = Utility.RandomBool() ? 244 : 997;
}