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
|
|
@ -18,8 +18,6 @@ public abstract partial class BaseBoatDeed : Item
|
|||
|
||||
public BaseBoatDeed(int id, Point3D offset) : base(0x14F2)
|
||||
{
|
||||
Weight = 1.0;
|
||||
|
||||
if (!Core.AOS)
|
||||
{
|
||||
LootType = LootType.Newbied;
|
||||
|
|
@ -29,6 +27,8 @@ public abstract partial class BaseBoatDeed : Item
|
|||
Offset = offset;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public abstract BaseBoat Boat { get; }
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ public abstract partial class BaseDockedBoat : Item
|
|||
|
||||
public BaseDockedBoat(int id, Point3D offset, BaseBoat boat) : base(0x14F4)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
|
||||
_multiId = id;
|
||||
|
|
@ -32,6 +31,8 @@ public abstract partial class BaseDockedBoat : Item
|
|||
_shipName = boat.ShipName;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public abstract BaseBoat Boat { get; }
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ namespace Server.Multis.Deeds
|
|||
{
|
||||
public HouseDeed(int id, Point3D offset) : base(0x14F0)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Newbied;
|
||||
|
||||
MultiID = id;
|
||||
|
|
@ -75,6 +74,8 @@ namespace Server.Multis.Deeds
|
|||
|
||||
public abstract Rectangle2D[] Area { get; }
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
|
|
|||
|
|
@ -14,12 +14,9 @@ namespace Server.Items;
|
|||
public partial class HousePlacementTool : Item
|
||||
{
|
||||
[Constructible]
|
||||
public HousePlacementTool() : base(0x14F6)
|
||||
{
|
||||
Weight = 3.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
public HousePlacementTool() : base(0x14F6) => LootType = LootType.Blessed;
|
||||
|
||||
public override double DefaultWeight => 3.0;
|
||||
public override int LabelNumber => 1060651; // a house placement tool
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue