Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -10,7 +10,7 @@ namespace Server.Items
|
|||
{
|
||||
public class Fireflies : Item, IAddon
|
||||
{
|
||||
public override int LabelNumber { get { return 1150061; }}
|
||||
public override int LabelNumber { get { return 1150061; }}
|
||||
|
||||
public Item Deed
|
||||
{
|
||||
|
|
@ -98,7 +98,7 @@ namespace Server.Items
|
|||
|
||||
public class FirefliesDeed : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1150061; } }
|
||||
public override int LabelNumber => 1150061;
|
||||
|
||||
[Constructible]
|
||||
public FirefliesDeed()
|
||||
|
|
@ -278,4 +278,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace Server.Items
|
|||
{
|
||||
public class DragonEasterEgg : Item, IDyable
|
||||
{
|
||||
public override int LabelNumber { get { return 1097278; } }
|
||||
public override int LabelNumber => 1097278;
|
||||
|
||||
[Constructible]
|
||||
public DragonEasterEgg()
|
||||
|
|
@ -41,4 +41,4 @@ namespace Server.Items
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ using Server;
|
|||
|
||||
namespace Server.Items
|
||||
{
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
2011 and 2012. GM Beggar-only Semi-Rare Treats
|
||||
*/
|
||||
|
||||
public class CreepyCake : Food
|
||||
{
|
||||
public override string DefaultName { get { return "Creepy Cake"; } }
|
||||
public override string DefaultName => "Creepy Cake";
|
||||
|
||||
[Constructible]
|
||||
public CreepyCake()
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@ using Server;
|
|||
|
||||
namespace Server.Items
|
||||
{
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
2011 and 2012. GM Beggar-only Semi-Rare Treats
|
||||
*/
|
||||
|
||||
public class HarvestWine : BeverageBottle
|
||||
{
|
||||
public override string DefaultName { get { return "Harvest Wine"; } }
|
||||
public override double DefaultWeight { get { return 1; } }
|
||||
public override string DefaultName => "Harvest Wine";
|
||||
public override double DefaultWeight => 1;
|
||||
|
||||
[Constructible]
|
||||
public HarvestWine()
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class MrPlainsCookies : Food
|
||||
{
|
||||
public override string DefaultName{ get { return "Mr Plain's Cookies"; } }
|
||||
public override string DefaultName => "Mr Plain's Cookies";
|
||||
|
||||
[Constructible]
|
||||
public MrPlainsCookies( )
|
||||
|
|
|
|||
|
|
@ -4,16 +4,16 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Items
|
||||
{
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
2011 and 2012. GM Beggar-only Semi-Rare Treats
|
||||
*/
|
||||
|
||||
public class MurkyMilk : Pitcher
|
||||
{
|
||||
public override string DefaultName { get { return "Murky Milk";; } }
|
||||
public override int MaxQuantity { get { return 5; } }
|
||||
public override double DefaultWeight { get { return 1; } }
|
||||
public override string DefaultName => "Murky Milk";
|
||||
public override int MaxQuantity => 5;
|
||||
public override double DefaultWeight => 1;
|
||||
|
||||
[Constructible]
|
||||
public MurkyMilk( )
|
||||
|
|
|
|||
|
|
@ -3,18 +3,17 @@ using Server;
|
|||
|
||||
namespace Server.Items
|
||||
{
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
2011 and 2012. GM Beggar-only Semi-Rare Treats
|
||||
*/
|
||||
|
||||
public class PumpkinPizza : CheesePizza
|
||||
{
|
||||
public override string DefaultName { get { return "Pumpkin Pizza"; } }
|
||||
public override string DefaultName => "Pumpkin Pizza";
|
||||
|
||||
[Constructible]
|
||||
public PumpkinPizza( )
|
||||
: base()
|
||||
{
|
||||
Hue = 0xF3;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ using Server;
|
|||
|
||||
namespace Server.Items
|
||||
{
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
2011 and 2012. GM Beggar-only Semi-Rare Treats
|
||||
*/
|
||||
|
||||
public class GrimWarning : Item
|
||||
{
|
||||
public override double DefaultWeight { get { return 1; } }
|
||||
public override double DefaultWeight => 1;
|
||||
|
||||
[Constructible]
|
||||
public GrimWarning ()
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ using Server;
|
|||
|
||||
namespace Server.Items
|
||||
{
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
/*
|
||||
first seen halloween 2009. subsequently in 2010,
|
||||
2011 and 2012. GM Beggar-only Semi-Rare Treats
|
||||
*/
|
||||
|
||||
public class SkullsOnPike : Item
|
||||
{
|
||||
public override double DefaultWeight { get { return 1; } }
|
||||
public override double DefaultWeight => 1;
|
||||
|
||||
[Constructible]
|
||||
public SkullsOnPike()
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class ChairInAGhostCostume : Item
|
||||
{
|
||||
public override double DefaultWeight { get { return 5; } }
|
||||
public override double DefaultWeight => 5;
|
||||
|
||||
[Constructible]
|
||||
public ChairInAGhostCostume()
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ namespace Server.Items
|
|||
{
|
||||
public class ColoredSmallWebs : Item
|
||||
{
|
||||
public override double DefaultWeight { get { return 5; } }
|
||||
public override double DefaultWeight => 5;
|
||||
|
||||
[Constructible]
|
||||
public ColoredSmallWebs()
|
||||
: base( Utility.RandomBool() ? 0x10d6 : 0x10d7 )
|
||||
{
|
||||
Hue = Utility.RandomBool() ? 0x455 : 0x4E9;
|
||||
Hue = Utility.RandomBool() ? 0x455 : 0x4E9;
|
||||
}
|
||||
|
||||
public ColoredSmallWebs( Serial serial )
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class ExcellentIronMaiden : Item
|
||||
{
|
||||
public override double DefaultWeight { get { return 5; } }
|
||||
public override double DefaultWeight => 5;
|
||||
|
||||
[Constructible]
|
||||
public ExcellentIronMaiden()
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class HalloweenGuillotine : Item
|
||||
{
|
||||
public override double DefaultWeight { get { return 5; } }
|
||||
public override double DefaultWeight => 5;
|
||||
|
||||
[Constructible]
|
||||
public HalloweenGuillotine() : base( 0x3F27 )
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items.Holiday
|
|||
{
|
||||
public class PaintedEvilClownMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Evil Clown Mask"; } }
|
||||
public override string MaskName => "Evil Clown Mask";
|
||||
|
||||
[Constructible]
|
||||
public PaintedEvilClownMask( )
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items.Holiday
|
|||
{
|
||||
public class PaintedDaemonMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Daemon Mask"; } }
|
||||
public override string MaskName => "Daemon Mask";
|
||||
|
||||
[Constructible]
|
||||
public PaintedDaemonMask()
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items.Holiday
|
|||
{
|
||||
public class PaintedPlagueMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Plague Mask"; } }
|
||||
public override string MaskName => "Plague Mask";
|
||||
|
||||
[Constructible]
|
||||
public PaintedPlagueMask()
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ namespace Server.Engines.Events
|
|||
|
||||
public override bool BleedImmune => true;
|
||||
|
||||
public override Poison PoisonImmune { get { return Poison.Regular; } }
|
||||
public override Poison PoisonImmune => Poison.Regular;
|
||||
|
||||
public ZombieSkeleton( Serial serial )
|
||||
: base( serial )
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items.Holiday
|
|||
{
|
||||
public class PaintedEvilJesterMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Evil Jester Mask"; } }
|
||||
public override string MaskName => "Evil Jester Mask";
|
||||
|
||||
[Constructible]
|
||||
public PaintedEvilJesterMask()
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items.Holiday
|
|||
{
|
||||
public class PaintedPorcelainMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Porcelain Mask"; } }
|
||||
public override string MaskName => "Porcelain Mask";
|
||||
|
||||
[Constructible]
|
||||
public PaintedPorcelainMask()
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ namespace Server.Items
|
|||
{
|
||||
public class JellyBeans : CandyCane
|
||||
{
|
||||
public override int LabelNumber { get { return 1096932; } } /* jellybeans */
|
||||
public override int LabelNumber => 1096932; /* jellybeans */
|
||||
|
||||
[Constructible]
|
||||
public JellyBeans()
|
||||
public JellyBeans()
|
||||
: this( 1 )
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class NougatSwirl : CandyCane
|
||||
{
|
||||
public override int LabelNumber { get { return 1096936; } } /* nougat swirl */
|
||||
public override int LabelNumber => 1096936; /* nougat swirl */
|
||||
|
||||
[Constructible]
|
||||
public NougatSwirl() : this(1)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class Taffy : CandyCane
|
||||
{
|
||||
public override int LabelNumber { get { return 1096949; } } /* taffy */
|
||||
public override int LabelNumber => 1096949; /* taffy */
|
||||
|
||||
[Constructible]
|
||||
public Taffy()
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class WrappedCandy : CandyCane
|
||||
{
|
||||
public override int LabelNumber { get { return 1096950; } } /* wrapped candy */
|
||||
public override int LabelNumber => 1096950; /* wrapped candy */
|
||||
|
||||
[Constructible]
|
||||
public WrappedCandy()
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace Server.Items
|
|||
[FlippableAttribute( 0x4F7C, 0x4F7D )]
|
||||
public class CupidStatue : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1099220; } } // cupid statue
|
||||
public override int LabelNumber => 1099220; // cupid statue
|
||||
|
||||
[Constructible]
|
||||
public CupidStatue()
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Server.Items
|
|||
{
|
||||
// TODO: Check messages
|
||||
|
||||
public override int LabelNumber { get { return 1152270; } } // Cupid's Arrow 2012
|
||||
public override int LabelNumber => 1152270; // Cupid's Arrow 2012
|
||||
|
||||
private string m_From;
|
||||
private string m_To;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace Server.Items
|
|||
[FlippableAttribute( 0x49CA, 0x49CB )]
|
||||
public class HeartShapedBox : BaseContainer
|
||||
{
|
||||
public override int DefaultDropSound { get { return m_DropSound; } }
|
||||
public override int DefaultDropSound => m_DropSound;
|
||||
|
||||
[Constructible]
|
||||
public HeartShapedBox()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue