#W# Change: Spinning wheels and looms process the entire stack.

This commit is contained in:
WarrentyExpired 2026-09-21 09:38:11 -04:00
parent 373369c28e
commit 128a40e2c0
5 changed files with 80 additions and 27 deletions

View file

@ -85,8 +85,17 @@ public partial class Cotton : Item, IDyable
}
else
{
m_Cotton.Consume();
wheel.BeginSpin(m_Cotton.OnSpun, from, m_Cotton.Hue);
int amountToProcess = m_Cotton.Amount;
int cottonHue = m_Cotton.Hue;
m_Cotton.Delete();
wheel.BeginSpin((w, mobile, h) =>
{
mobile.AddToBackpack(new SpoolOfThread(6 * amountToProcess)
{
Hue = h
});
mobile.SendLocalizedMessage(1010577); // You put the spools of thread in your backpack.
}, from, cottonHue);
}
}
}