chore: Fixes variable types for possible performance issues (#2172)

This commit is contained in:
Kamron Batman 2025-05-01 21:54:41 -07:00 • committed by GitHub
parent 6d43f2549c
commit da517f56c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
82 changed files with 332 additions and 343 deletions

View file

@ -41,10 +41,10 @@ public partial class Wool : Item, IDyable
public virtual void OnSpun(ISpinningWheel wheel, Mobile from, int hue)
{
Item item = new DarkYarn(3);
item.Hue = hue;
from.AddToBackpack(item);
from.AddToBackpack(new DarkYarn(3)
{
Hue = hue
});
from.SendLocalizedMessage(1010576); // You put the balls of yarn in your backpack.
}
@ -105,10 +105,10 @@ public partial class TaintedWool : Wool
public override void OnSpun(ISpinningWheel wheel, Mobile from, int hue)
{
Item item = new DarkYarn();
item.Hue = hue;
from.AddToBackpack(item);
from.AddToBackpack(new DarkYarn
{
Hue = hue
});
from.SendLocalizedMessage(1010574); // You put a ball of yarn in your backpack.
}
}
}