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

@ -10,10 +10,11 @@ public partial class Wool : Item, IDyable
public Wool(int amount = 1) : base(0xDF8)
{
Stackable = true;
Weight = 4.0;
Amount = amount;
}
public override double DefaultWeight => 4.0;
public bool Dye(Mobile from, DyeTub sender)
{
if (Deleted)
@ -99,10 +100,11 @@ public partial class TaintedWool : Wool
public TaintedWool(int amount = 1) : base(0x101F)
{
Stackable = true;
Weight = 4.0;
Amount = amount;
}
public override double DefaultWeight => 4.0;
public override void OnSpun(ISpinningWheel wheel, Mobile from, int hue)
{
from.AddToBackpack(new DarkYarn