fix: Optimizes items to use default weights. (Part 4) (#2243)

This commit is contained in:
Kamron Batman 2025-07-24 23:29:29 -07:00 • committed by GitHub
parent 40ba85d7b8
commit fa0b67ec29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
109 changed files with 250 additions and 391 deletions

View file

@ -11,9 +11,10 @@ public partial class EggBomb : Item
{
// Item ID should be 0x2809 - Temporary solution for clients 7.0.0.0 and up
Stackable = Core.ML;
Weight = 1.0;
}
public override double DefaultWeight => 1.0;
public override int LabelNumber => 1030249;
public override void OnDoubleClick(Mobile from)

View file

@ -26,11 +26,9 @@ public partial class Fukiya : Item, INinjaWeapon
private int _poisonCharges;
[Constructible]
public Fukiya() : base(0x27AA)
{
Weight = 4.0;
Layer = Layer.OneHanded;
}
public Fukiya() : base(0x27AA) => Layer = Layer.OneHanded;
public override double DefaultWeight => 1.0;
public virtual int WrongAmmoMessage => 1063329; // You can only load fukiya darts
public virtual int NoFreeHandMessage => 1063327; // You must have a free hand to use a fukiya.

View file

@ -23,15 +23,9 @@ public partial class FukiyaDarts : Item, ICraftable, INinjaAmmo
private int _poisonCharges;
[Constructible]
public FukiyaDarts(int amount = 1) : base(0x2806)
{
Weight = 1.0;
_usesRemaining = amount;
}
public FukiyaDarts(int amount = 1) : base(0x2806) => _usesRemaining = amount;
public FukiyaDarts(Serial serial) : base(serial)
{
}
public override double DefaultWeight => 1.0;
public int OnCraft(
int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool,

View file

@ -26,11 +26,9 @@ public partial class LeatherNinjaBelt : BaseWaist, INinjaWeapon
private int _poisonCharges;
[Constructible]
public LeatherNinjaBelt() : base(0x2790)
{
Weight = 1.0;
Layer = Layer.Waist;
}
public LeatherNinjaBelt() : base(0x2790) => Layer = Layer.Waist;
public override double DefaultWeight => 1.0;
public override CraftResource DefaultResource => CraftResource.RegularLeather;

View file

@ -24,11 +24,9 @@ public partial class Shuriken : Item, ICraftable, INinjaAmmo
private int _poisonCharges;
[Constructible]
public Shuriken(int amount = 1) : base(0x27AC)
{
Weight = 1.0;
_usesRemaining = amount;
}
public Shuriken(int amount = 1) : base(0x27AC) => _usesRemaining = amount;
public override double DefaultWeight => 1.0;
public int OnCraft(
int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool,

View file

@ -7,11 +7,9 @@ namespace Server.Items;
public partial class SmokeBomb : Item
{
[Constructible]
public SmokeBomb() : base(0x2808)
{
Stackable = Core.ML;
Weight = 1.0;
}
public SmokeBomb() : base(0x2808) => Stackable = Core.ML;
public override double DefaultWeight => 1.0;
public override void OnDoubleClick(Mobile from)
{