fix: Optimizes items to use default weights. (Part 4) (#2243)
This commit is contained in:
parent
40ba85d7b8
commit
fa0b67ec29
109 changed files with 250 additions and 391 deletions
|
|
@ -13,11 +13,12 @@ public partial class AncientSmithyHammer : BaseTool
|
|||
public AncientSmithyHammer(int bonus, int uses = 600) : base(uses, 0x13E4)
|
||||
{
|
||||
_bonus = bonus;
|
||||
Weight = 8.0;
|
||||
Layer = Layer.OneHanded;
|
||||
Hue = 0x482;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 8.0;
|
||||
|
||||
[SerializableProperty(0)]
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int Bonus
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ public partial class ColoredAnvil : Item
|
|||
{
|
||||
// TODO: Color weighted by rarity?
|
||||
Hue = CraftResources.GetRandomResource(CraftResource.DullCopper, CraftResource.Valorite)?.Hue ?? 0;
|
||||
Weight = 20;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 20.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,11 +15,12 @@ public partial class PowderOfTemperament : Item, IUsesRemaining
|
|||
[Constructible]
|
||||
public PowderOfTemperament(int charges = 10) : base(4102)
|
||||
{
|
||||
Weight = 1.0;
|
||||
Hue = 2419;
|
||||
UsesRemaining = charges;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1049082; // powder of fortifying
|
||||
|
||||
bool IUsesRemaining.ShowUsesRemaining
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue