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
|
|
@ -10,10 +10,11 @@ public partial class BarkeepContract : Item
|
|||
[Constructible]
|
||||
public BarkeepContract() : base(0x14F0)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override string DefaultName => "a barkeep contract";
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -58,10 +58,11 @@ public partial class ClothingBlessDeed : Item // Create the item class which is
|
|||
[Constructible]
|
||||
public ClothingBlessDeed() : base(0x14F0)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override string DefaultName => "a clothing bless deed";
|
||||
|
||||
public override bool DisplayLootType => false;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ public partial class CommodityDeed : Item
|
|||
[Constructible]
|
||||
public CommodityDeed(Item commodity = null) : base(0x14F0)
|
||||
{
|
||||
Weight = 1.0;
|
||||
Hue = 0x47;
|
||||
|
||||
Commodity = commodity;
|
||||
|
|
@ -27,6 +26,8 @@ public partial class CommodityDeed : Item
|
|||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => Commodity == null ? 1047016 : 1047017;
|
||||
|
||||
public bool SetCommodity(Item item)
|
||||
|
|
|
|||
|
|
@ -11,10 +11,11 @@ public partial class HairRestylingDeed : Item
|
|||
[Constructible]
|
||||
public HairRestylingDeed() : base(0x14F0)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1041061; // a coupon for a free hair restyling
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -13,10 +13,11 @@ public partial class HolidayTreeDeed : Item
|
|||
public HolidayTreeDeed() : base(0x14F0)
|
||||
{
|
||||
Hue = 0x488;
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1041116; // a deed for a holiday tree
|
||||
|
||||
public bool ValidatePlacement(Mobile from, Point3D loc)
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@ public partial class NewPlayerTicket : Item
|
|||
[Constructible]
|
||||
public NewPlayerTicket() : base(0x14EF)
|
||||
{
|
||||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1062094; // a young player ticket
|
||||
|
||||
public override bool DisplayLootType => false;
|
||||
|
|
|
|||
|
|
@ -31,13 +31,13 @@ public partial class VendorRentalContract : Item
|
|||
[Constructible]
|
||||
public VendorRentalContract() : base(0x14F0)
|
||||
{
|
||||
Weight = 1.0;
|
||||
Hue = 0x672;
|
||||
|
||||
_duration = VendorRentalDuration.Instances[0];
|
||||
Price = 1500;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1062332; // a vendor rental contract
|
||||
|
||||
public VendorRentalDuration Duration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue