fix: Optimizes items to use default weights. (Part 3) (#2242)

This commit is contained in:
Kamron Batman 2025-07-24 16:21:27 -07:00 • committed by GitHub
parent 2c5441731e
commit 40ba85d7b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
104 changed files with 497 additions and 425 deletions

View file

@ -11,8 +11,9 @@ public partial class Dough : Item
public Dough() : base(0x103d)
{
Stackable = Core.ML;
Weight = 1.0;
}
public override double DefaultWeight => 1.0;
}
[SerializationGenerator(0, false)]
@ -22,10 +23,10 @@ public partial class SweetDough : Item
public SweetDough() : base(0x103d)
{
Stackable = Core.ML;
Weight = 1.0;
Hue = 150;
}
public override double DefaultWeight => 1.0;
public override int LabelNumber => 1041340; // sweet dough
}
@ -35,9 +36,10 @@ public partial class JarHoney : Item
[Constructible]
public JarHoney() : base(0x9ec)
{
Weight = 1.0;
Stackable = true;
}
public override double DefaultWeight => 1.0;
}
[SerializationGenerator(0, false)]
@ -69,10 +71,11 @@ public partial class SackFlour : Item, IHasQuantity
[Constructible]
public SackFlour() : base(0x1039)
{
Weight = 5.0;
_quantity = 20;
}
public override double DefaultWeight => 5.0;
[SerializableProperty(0)]
[CommandProperty(AccessLevel.GameMaster)]
public int Quantity
@ -121,11 +124,12 @@ public partial class WheatSheaf : Item
[Constructible]
public WheatSheaf(int amount = 1) : base(7869)
{
Weight = 1.0;
Stackable = true;
Amount = amount;
}
public override double DefaultWeight => 1.0;
public override void OnDoubleClick(Mobile from)
{
if (Movable)