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
|
|
@ -6,7 +6,11 @@ namespace Server.Items;
|
|||
public partial class BarrelLid : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BarrelLid() : base(0x1DB8) => Weight = 2;
|
||||
public BarrelLid() : base(0x1DB8)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 2;
|
||||
}
|
||||
|
||||
[Flippable(0x1EB1, 0x1EB2, 0x1EB3, 0x1EB4)]
|
||||
|
|
@ -14,14 +18,22 @@ public partial class BarrelLid : Item
|
|||
public partial class BarrelStaves : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BarrelStaves() : base(0x1EB1) => Weight = 1;
|
||||
public BarrelStaves() : base(0x1EB1)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BarrelHoops : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BarrelHoops() : base(0x1DB7) => Weight = 5;
|
||||
public BarrelHoops() : base(0x1DB7)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 5;
|
||||
|
||||
public override int LabelNumber => 1011228; // Barrel hoops
|
||||
}
|
||||
|
|
@ -30,5 +42,9 @@ public partial class BarrelHoops : Item
|
|||
public partial class BarrelTap : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BarrelTap() : base(0x1004) => Weight = 1;
|
||||
public BarrelTap() : base(0x1004)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,9 @@ namespace Server.Items;
|
|||
public partial class Easel : Item
|
||||
{
|
||||
[Constructible]
|
||||
public Easel() : base(0xF65) => Weight = 25.0;
|
||||
public Easel() : base(0xF65)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 25.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,11 @@ namespace Server.Items;
|
|||
public partial class TallMusicStand : Item
|
||||
{
|
||||
[Constructible]
|
||||
public TallMusicStand() : base(0xEBB) => Weight = 10.0;
|
||||
public TallMusicStand() : base(0xEBB)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10.0;
|
||||
}
|
||||
|
||||
[Furniture]
|
||||
|
|
@ -17,5 +21,9 @@ public partial class TallMusicStand : Item
|
|||
public partial class ShortMusicStand : Item
|
||||
{
|
||||
[Constructible]
|
||||
public ShortMusicStand() : base(0xEB6) => Weight = 10.0;
|
||||
public ShortMusicStand() : base(0xEB6)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,11 @@ namespace Server.Items;
|
|||
public partial class BambooScreen : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BambooScreen() : base(0x24D0) => Weight = 20.0;
|
||||
public BambooScreen() : base(0x24D0)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 20.0;
|
||||
}
|
||||
|
||||
[Furniture]
|
||||
|
|
@ -17,5 +21,9 @@ public partial class BambooScreen : Item
|
|||
public partial class ShojiScreen : Item
|
||||
{
|
||||
[Constructible]
|
||||
public ShojiScreen() : base(0x24CB) => Weight = 20.0;
|
||||
public ShojiScreen() : base(0x24CB)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 20.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,11 @@ namespace Server.Items;
|
|||
public partial class StatueSouth : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatueSouth() : base(0x139A) => Weight = 10;
|
||||
public StatueSouth() : base(0x139A)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -15,7 +19,11 @@ public partial class StatueSouth : Item
|
|||
public partial class StatueSouth2 : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatueSouth2() : base(0x1227) => Weight = 10;
|
||||
public StatueSouth2() : base(0x1227)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -24,7 +32,11 @@ public partial class StatueSouth2 : Item
|
|||
public partial class StatueNorth : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatueNorth() : base(0x139B) => Weight = 10;
|
||||
public StatueNorth() : base(0x139B)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -33,7 +45,11 @@ public partial class StatueNorth : Item
|
|||
public partial class StatueWest : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatueWest() : base(0x1226) => Weight = 10;
|
||||
public StatueWest() : base(0x1226)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -42,7 +58,11 @@ public partial class StatueWest : Item
|
|||
public partial class StatueEast : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatueEast() : base(0x139C) => Weight = 10;
|
||||
public StatueEast() : base(0x139C)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -51,7 +71,11 @@ public partial class StatueEast : Item
|
|||
public partial class StatueEast2 : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatueEast2() : base(0x1224) => Weight = 10;
|
||||
public StatueEast2() : base(0x1224)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -60,7 +84,11 @@ public partial class StatueEast2 : Item
|
|||
public partial class StatueSouthEast : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatueSouthEast() : base(0x1225) => Weight = 10;
|
||||
public StatueSouthEast() : base(0x1225)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -69,7 +97,11 @@ public partial class StatueSouthEast : Item
|
|||
public partial class BustSouth : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BustSouth() : base(0x12CB) => Weight = 10;
|
||||
public BustSouth() : base(0x12CB)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -78,7 +110,11 @@ public partial class BustSouth : Item
|
|||
public partial class BustEast : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BustEast() : base(0x12CA) => Weight = 10;
|
||||
public BustEast() : base(0x12CA)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -87,7 +123,11 @@ public partial class BustEast : Item
|
|||
public partial class StatuePegasus : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatuePegasus() : base(0x139D) => Weight = 10;
|
||||
public StatuePegasus() : base(0x139D)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -96,7 +136,11 @@ public partial class StatuePegasus : Item
|
|||
public partial class StatuePegasus2 : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StatuePegasus2() : base(0x1228) => Weight = 10;
|
||||
public StatuePegasus2() : base(0x1228)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
}
|
||||
|
|
@ -105,5 +149,9 @@ public partial class StatuePegasus2 : Item
|
|||
public partial class SmallTowerSculpture : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SmallTowerSculpture() : base(0x241A) => Weight = 20.0;
|
||||
public SmallTowerSculpture() : base(0x241A)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 20.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,19 +6,31 @@ namespace Server.Items;
|
|||
public partial class Vase : Item
|
||||
{
|
||||
[Constructible]
|
||||
public Vase() : base(0xB46) => Weight = 10;
|
||||
public Vase() : base(0xB46)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 10;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class LargeVase : Item
|
||||
{
|
||||
[Constructible]
|
||||
public LargeVase() : base(0xB45) => Weight = 15;
|
||||
public LargeVase() : base(0xB45)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 15;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SmallUrn : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SmallUrn() : base(0x241C) => Weight = 20.0;
|
||||
public SmallUrn() : base(0x241C)
|
||||
{
|
||||
}
|
||||
|
||||
public override double DefaultWeight => 20.0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue