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

@ -47,13 +47,13 @@ public partial class Key : Item
public Key(KeyType type, uint val = 0, Item link = null) : base((int)type)
{
Weight = 1.0;
_maxRange = 3;
_keyValue = val;
_link = link;
}
public override double DefaultWeight => 1.0;
public static uint RandomValue() => (uint)(0xFFFFFFFE * Utility.RandomDouble()) + 1;
public static void RemoveKeys(Mobile m, uint keyValue)