fix: Optimizes items to use default weights. (Part 2) (#2241)
This commit is contained in:
parent
2eba2868a6
commit
2c5441731e
256 changed files with 1801 additions and 488 deletions
|
|
@ -18,11 +18,9 @@ public partial class Firebomb : Item
|
|||
private HashSet<Mobile> _users;
|
||||
|
||||
[Constructible]
|
||||
public Firebomb(int itemID = 0x99B) : base(itemID)
|
||||
{
|
||||
Weight = 2.0;
|
||||
Hue = 1260;
|
||||
}
|
||||
public Firebomb(int itemID = 0x99B) : base(itemID) => Hue = 1260;
|
||||
|
||||
public override double DefaultWeight => 2.0;
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@ namespace Server.Items;
|
|||
public partial class PlayerBBSouth : BasePlayerBB
|
||||
{
|
||||
[Constructible]
|
||||
public PlayerBBSouth() : base(0x2311) => Weight = 15.0;
|
||||
public PlayerBBSouth() : base(0x2311)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 15.0;
|
||||
|
||||
public override int LabelNumber => 1062421; // bulletin board (south)
|
||||
}
|
||||
|
|
@ -24,7 +28,11 @@ public partial class PlayerBBSouth : BasePlayerBB
|
|||
public partial class PlayerBBEast : BasePlayerBB
|
||||
{
|
||||
[Constructible]
|
||||
public PlayerBBEast() : base(0x2312) => Weight = 15.0;
|
||||
public PlayerBBEast() : base(0x2312)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 15.0;
|
||||
|
||||
public override int LabelNumber => 1062420; // bulletin board (east)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,14 +114,22 @@ public partial class DriedHerbs : Item
|
|||
public partial class HorseShoes : Item
|
||||
{
|
||||
[Constructible]
|
||||
public HorseShoes() : base(0xFB6) => Weight = 3.0;
|
||||
public HorseShoes() : base(0xFB6)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 3.0;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ForgedMetal : Item
|
||||
{
|
||||
[Constructible]
|
||||
public ForgedMetal() : base(0xFB8) => Weight = 5.0;
|
||||
public ForgedMetal() : base(0xFB8)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 5.0;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
|
|
|
|||
|
|
@ -7,7 +7,11 @@ namespace Server.Items;
|
|||
public partial class Scales : Item
|
||||
{
|
||||
[Constructible]
|
||||
public Scales() : base(0x1852) => Weight = 4.0;
|
||||
public Scales() : base(0x1852)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 4.0;
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue