fix: Optimizes items to use default weights. (Part 3) (#2242)
This commit is contained in:
parent
2c5441731e
commit
40ba85d7b8
104 changed files with 497 additions and 425 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
|
@ -11,16 +12,11 @@ public partial class Vines : Item
|
|||
}
|
||||
|
||||
[Constructible]
|
||||
public Vines(int v) : base(0xCEB)
|
||||
public Vines(int v) : base(0xCEB + Math.Clamp(v, 0, 7))
|
||||
{
|
||||
if (v is < 0 or > 7)
|
||||
{
|
||||
v = 0;
|
||||
}
|
||||
|
||||
ItemID += v;
|
||||
Weight = 1.0;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue