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

@ -10,11 +10,11 @@ namespace Server.Items
[Constructible]
public Bow() : base(0x13B2)
{
Weight = 6.0;
Layer = Layer.TwoHanded;
Resource = CraftResource.RegularWood;
}
public override double DefaultWeight => 6.0;
public override int EffectID => 0xF42;
public override Type AmmoType => typeof(Arrow);
public override Item Ammo => new Arrow();

View file

@ -8,12 +8,9 @@ namespace Server.Items
public partial class CompositeBow : BaseRanged
{
[Constructible]
public CompositeBow() : base(0x26C2)
{
Weight = 5.0;
Resource = CraftResource.RegularWood;
}
public CompositeBow() : base(0x26C2) => Resource = CraftResource.RegularWood;
public override double DefaultWeight => 5.0;
public override int EffectID => 0xF42;
public override Type AmmoType => typeof(Arrow);
public override Item Ammo => new Arrow();

View file

@ -10,11 +10,11 @@ namespace Server.Items
[Constructible]
public Crossbow() : base(0xF50)
{
Weight = 7.0;
Layer = Layer.TwoHanded;
Resource = CraftResource.RegularWood;
}
public override double DefaultWeight => 7.0;
public override int EffectID => 0x1BFE;
public override Type AmmoType => typeof(Bolt);
public override Item Ammo => new Bolt();

View file

@ -10,11 +10,11 @@ namespace Server.Items
[Constructible]
public HeavyCrossbow() : base(0x13FD)
{
Weight = 9.0;
Layer = Layer.TwoHanded;
Resource = CraftResource.RegularWood;
}
public override double DefaultWeight => 9.0;
public override int EffectID => 0x1BFE;
public override Type AmmoType => typeof(Bolt);
public override Item Ammo => new Bolt();

View file

@ -8,12 +8,9 @@ namespace Server.Items
public partial class RepeatingCrossbow : BaseRanged
{
[Constructible]
public RepeatingCrossbow() : base(0x26C3)
{
Weight = 6.0;
Resource = CraftResource.RegularWood;
}
public RepeatingCrossbow() : base(0x26C3) => Resource = CraftResource.RegularWood;
public override double DefaultWeight => 6.0;
public override int EffectID => 0x1BFE;
public override Type AmmoType => typeof(Bolt);
public override Item Ammo => new Bolt();