fix: Optimizes items to use default weights. (Part 1) (#2240)
This commit is contained in:
parent
c2e44a58f6
commit
2eba2868a6
126 changed files with 1184 additions and 380 deletions
|
|
@ -6,11 +6,9 @@ namespace Server.Items;
|
|||
public partial class DecorativeTopiary : Item
|
||||
{
|
||||
[Constructible]
|
||||
public DecorativeTopiary() : base(0x2378)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
public DecorativeTopiary() : base(0x2378) => LootType = LootType.Blessed;
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,11 +6,9 @@ namespace Server.Items;
|
|||
public partial class FestiveCactus : Item
|
||||
{
|
||||
[Constructible]
|
||||
public FestiveCactus() : base(0x2376)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
public FestiveCactus() : base(0x2376) => LootType = LootType.Blessed;
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,12 +18,13 @@ public partial class LightOfTheWinterSolstice : Item
|
|||
{
|
||||
_dipper = dipper?.Intern() ?? StaffInfo.GetRandomStaff();
|
||||
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
Light = LightType.Circle300;
|
||||
Hue = Utility.RandomDyedHue();
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
{
|
||||
base.OnSingleClick(from);
|
||||
|
|
|
|||
|
|
@ -163,10 +163,11 @@ public partial class MistletoeDeed : Item
|
|||
public MistletoeDeed(int hue = 0) : base(0x14F0)
|
||||
{
|
||||
Hue = hue;
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1070882; // Mistletoe Deed
|
||||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -9,10 +9,11 @@ public partial class PileOfGlacialSnow : Item
|
|||
public PileOfGlacialSnow() : base(0x913)
|
||||
{
|
||||
Hue = 0x480;
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1070874; // a Pile of Glacial Snow
|
||||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -9,10 +9,11 @@ public partial class SnowPile : Item
|
|||
public SnowPile() : base(0x913)
|
||||
{
|
||||
Hue = 0x481;
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1005578; // a pile of snow
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -6,11 +6,9 @@ namespace Server.Items;
|
|||
public partial class SnowyTree : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SnowyTree() : base(0x2377)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
public SnowyTree() : base(0x2377) => LootType = LootType.Blessed;
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -61,11 +61,9 @@ public partial class Fireflies : Item, IAddon
|
|||
public partial class FirefliesDeed : Item
|
||||
{
|
||||
[Constructible]
|
||||
public FirefliesDeed() : base(0x14F0)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Weight = 1.0;
|
||||
}
|
||||
public FirefliesDeed() : base(0x14F0) => LootType = LootType.Blessed;
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1150061;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,16 +1,13 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
[SerializationGenerator(0, false)]
|
||||
[TypeAlias("Server.Items.AngelDecoration"), Flippable(0x46FA, 0x46FB)]
|
||||
public partial class AngelDecoration : Item
|
||||
{
|
||||
public AngelDecoration() : base(0x46FA)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
namespace Server.Items.Holiday;
|
||||
|
||||
Weight = 30;
|
||||
}
|
||||
}
|
||||
[Flippable(0x46FA, 0x46FB)]
|
||||
[TypeAlias("Server.Items.AngelDecoration")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AngelDecoration : Item
|
||||
{
|
||||
public AngelDecoration() : base(0x46FA) => LootType = LootType.Blessed;
|
||||
|
||||
public override double DefaultWeight => 30.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,13 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
[SerializationGenerator(0, false)]
|
||||
[TypeAlias("Server.Items.RockingHorse"), Flippable(0x4214, 0x4215)]
|
||||
public partial class RockingHorse : Item
|
||||
{
|
||||
public RockingHorse() : base(0x4214)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
namespace Server.Items.Holiday;
|
||||
|
||||
Weight = 30;
|
||||
}
|
||||
}
|
||||
[Flippable(0x4214, 0x4215)]
|
||||
[TypeAlias("Server.Items.RockingHorse")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class RockingHorse : Item
|
||||
{
|
||||
public RockingHorse() : base(0x4214) => LootType = LootType.Blessed;
|
||||
|
||||
public override double DefaultWeight => 30.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MrPlainsCookies : Food
|
||||
{
|
||||
[Constructible]
|
||||
public MrPlainsCookies() : base(0x160C)
|
||||
{
|
||||
Weight = 1.0;
|
||||
FillFactor = 4;
|
||||
Hue = 0xF4;
|
||||
}
|
||||
namespace Server.Items;
|
||||
|
||||
public override string DefaultName => "Mr Plain's Cookies";
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MrPlainsCookies : Food
|
||||
{
|
||||
[Constructible]
|
||||
public MrPlainsCookies() : base(0x160C)
|
||||
{
|
||||
FillFactor = 4;
|
||||
Hue = 0xF4;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override string DefaultName => "Mr Plain's Cookies";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue