fix: Optimizes items to use default weights. (Part 1) (#2240)
This commit is contained in:
parent
c2e44a58f6
commit
2eba2868a6
126 changed files with 1184 additions and 380 deletions
|
|
@ -9,7 +9,8 @@ public partial class FertileDirt : Item
|
|||
public FertileDirt(int amount = 1) : base(0xF81)
|
||||
{
|
||||
Stackable = true;
|
||||
Weight = 1.0;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,11 +12,12 @@ public partial class GreenThorns : Item
|
|||
public GreenThorns(int amount = 1) : base(0xF42)
|
||||
{
|
||||
Stackable = true;
|
||||
Weight = 1.0;
|
||||
Hue = 0x42;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1060837; // green thorns
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,11 @@ public partial class PlantBowl : Item
|
|||
};
|
||||
|
||||
[Constructible]
|
||||
public PlantBowl() : base(0x15FD) => Weight = 1.0;
|
||||
public PlantBowl() : base(0x15FD)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override int LabelNumber => 1060834; // a plant bowl
|
||||
|
||||
|
|
|
|||
|
|
@ -56,8 +56,6 @@ public partial class PlantItem : Item, ISecurable
|
|||
[Constructible]
|
||||
public PlantItem(bool fertileDirt = false) : base(0x1602)
|
||||
{
|
||||
Weight = 1.0;
|
||||
|
||||
_plantStatus = PlantStatus.BowlOfDirt;
|
||||
_plantSystem = new PlantSystem(this)
|
||||
{
|
||||
|
|
@ -69,6 +67,8 @@ public partial class PlantItem : Item, ISecurable
|
|||
Plants.Add(this);
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public ObjectPropertyList OldClientPropertyList
|
||||
{
|
||||
get
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ public partial class Seed : Item
|
|||
[Constructible]
|
||||
public Seed(PlantType plantType, PlantHue plantHue, bool showType = false) : base(0xDCF)
|
||||
{
|
||||
Weight = 1.0;
|
||||
Stackable = Core.SA;
|
||||
|
||||
_plantType = plantType;
|
||||
|
|
@ -34,6 +33,8 @@ public partial class Seed : Item
|
|||
Hue = PlantHueInfo.GetInfo(plantHue).Hue;
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
[SerializableProperty(1)]
|
||||
public PlantHue PlantHue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue