fix: Optimizes items to use default weights. (Part 1) (#2240)

This commit is contained in:
Kamron Batman 2025-07-24 14:44:39 -07:00 • committed by GitHub
parent c2e44a58f6
commit 2eba2868a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
126 changed files with 1184 additions and 380 deletions

View file

@ -73,7 +73,11 @@ public partial class EnchantedSextant : Item
};
[Constructible]
public EnchantedSextant() : base(0x1058) => Weight = 2.0;
public EnchantedSextant() : base(0x1058)
{
}
public override double DefaultWeight => 2.0;
public override int LabelNumber => 1046226; // an enchanted sextant

View file

@ -27,10 +27,11 @@ public partial class HornOfRetreat : Item
public HornOfRetreat() : base(0xFC4)
{
Hue = 0x482;
Weight = 1.0;
_charges = 10;
}
public override double DefaultWeight => 1.0;
public override int LabelNumber => 1049117; // Horn of Retreat
public virtual bool ValidateUse(Mobile from) => true;