Formatting FIxes (#58)

This commit is contained in:
Kamron Batman 2019-10-04 23:08:13 -07:00 • committed by GitHub
parent 57fb9fb525
commit 096d39609e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1318 changed files with 11633 additions and 22129 deletions

View file

@ -102,10 +102,7 @@ namespace Server.Items
public override int LabelNumber => 1041117; // a tree for the holidays
public bool CouldFit(IPoint3D p, Map map)
{
return map.CanFit((Point3D)p, 20);
}
public bool CouldFit(IPoint3D p, Map map) => map.CanFit((Point3D)p, 20);
Item IAddon.Deed => new HolidayTreeDeed();
@ -217,10 +214,7 @@ namespace Server.Items
private class Ornament : Item
{
public Ornament(int itemID) : base(itemID)
{
Movable = false;
}
public Ornament(int itemID) : base(itemID) => Movable = false;
public Ornament(Serial serial) : base(serial)
{

View file

@ -32,10 +32,7 @@ namespace Server.Items
return timer;
}
public static int GetToothAche(Mobile from)
{
return m_ToothAches.TryGetValue(from, out CandyCaneTimer timer) ? timer.Eaten : 0;
}
public static int GetToothAche(Mobile from) => m_ToothAches.TryGetValue(from, out CandyCaneTimer timer) ? timer.Eaten : 0;
public static void SetToothAche(Mobile from, int value)
{

View file

@ -47,10 +47,8 @@
{
[Constructible]
public GiftBoxRectangle()
: base(Utility.RandomBool() ? 0x46A5 : 0x46A6)
{
: base(Utility.RandomBool() ? 0x46A5 : 0x46A6) =>
Hue = GiftBoxHues.RandomGiftBoxHue;
}
public GiftBoxRectangle(Serial serial)
: base(serial)
@ -76,10 +74,8 @@
{
[Constructible]
public GiftBoxCube()
: base(0x46A2)
{
: base(0x46A2) =>
Hue = GiftBoxHues.RandomGiftBoxHue;
}
public GiftBoxCube(Serial serial)
: base(serial)
@ -105,10 +101,8 @@
{
[Constructible]
public GiftBoxCylinder()
: base(0x46A3)
{
: base(0x46A3) =>
Hue = GiftBoxHues.RandomGiftBoxHue;
}
public GiftBoxCylinder(Serial serial)
: base(serial)
@ -134,10 +128,8 @@
{
[Constructible]
public GiftBoxOctogon()
: base(0x46A4)
{
: base(0x46A4) =>
Hue = GiftBoxHues.RandomGiftBoxHue;
}
public GiftBoxOctogon(Serial serial)
: base(serial)
@ -163,10 +155,8 @@
{
[Constructible]
public GiftBoxAngel()
: base(0x46A7)
{
: base(0x46A7) =>
Hue = GiftBoxHues.RandomGiftBoxHue;
}
public GiftBoxAngel(Serial serial)
: base(serial)
@ -193,10 +183,8 @@
{
[Constructible]
public GiftBoxNeon()
: base(Utility.RandomBool() ? 0x232A : 0x232B)
{
: base(Utility.RandomBool() ? 0x232A : 0x232B) =>
Hue = GiftBoxHues.RandomNeonBoxHue;
}
public GiftBoxNeon(Serial serial)
: base(serial)

View file

@ -43,10 +43,8 @@ namespace Server.Items
{
[Constructible]
public PottedPlantDeed()
: base(0x14F0)
{
: base(0x14F0) =>
LootType = LootType.Blessed;
}
public PottedPlantDeed(Serial serial)
: base(serial)

View file

@ -15,10 +15,8 @@ namespace Server.Items
}
public IcyPatch(int itemid)
: base(itemid)
{
: base(itemid) =>
Hue = 0x481;
}
public IcyPatch(Serial serial)
: base(serial)

View file

@ -65,10 +65,7 @@ namespace Server.Items
}
[Constructible]
public SnowGlobeOne(SnowGlobeTypeOne type)
{
m_Type = type;
}
public SnowGlobeOne(SnowGlobeTypeOne type) => m_Type = type;
public SnowGlobeOne(Serial serial)
: base(serial)
@ -171,10 +168,7 @@ namespace Server.Items
}
[Constructible]
public SnowGlobeTwo(SnowGlobeTypeTwo type)
{
m_Type = type;
}
public SnowGlobeTwo(SnowGlobeTypeTwo type) => m_Type = type;
public SnowGlobeTwo(Serial serial)
: base(serial)
@ -261,10 +255,7 @@ namespace Server.Items
}
[Constructible]
public SnowGlobeThree(SnowGlobeTypeThree type)
{
m_Type = type;
}
public SnowGlobeThree(SnowGlobeTypeThree type) => m_Type = type;
public SnowGlobeThree(Serial serial)
: base(serial)

View file

@ -12,10 +12,8 @@
[Constructible]
public SnowPileDeco(int itemid)
: base(itemid)
{
: base(itemid) =>
Hue = 0x481;
}
public SnowPileDeco(Serial serial)
: base(serial)

View file

@ -131,10 +131,8 @@ namespace Server.Items
{
[Constructible]
public SnowStatueDeed()
: base(0x14F0)
{
: base(0x14F0) =>
LootType = LootType.Blessed;
}
public SnowStatueDeed(Serial serial)
: base(serial)