fix: Optimizes items to use default weights. (Part 3) (#2242)

This commit is contained in:
Kamron Batman 2025-07-24 16:21:27 -07:00 • committed by GitHub
parent 2c5441731e
commit 40ba85d7b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
104 changed files with 497 additions and 425 deletions

View file

@ -19,10 +19,10 @@ public abstract partial class BaseBoard : Container, ISecurable
public BaseBoard(int itemID) : base(itemID)
{
CreatePieces();
Weight = 5.0;
}
public override double DefaultWeight => 5.0;
public override bool DisplaysContent => false; // Do not display (x items, y stones)
public override bool IsDecoContainer => false;

View file

@ -43,8 +43,6 @@ public partial class MahjongGame : Item, ISecurable
[Constructible]
public MahjongGame() : base(0xFAA)
{
Weight = 5.0;
BuildWalls();
_dealerIndicator =
new MahjongDealerIndicator(this, new Point2D(300, 300), MahjongPieceDirection.Up, MahjongWind.North);
@ -55,6 +53,8 @@ public partial class MahjongGame : Item, ISecurable
_level = SecureLevel.CoOwners;
}
public override double DefaultWeight => 5.0;
[CommandProperty(AccessLevel.GameMaster)]
[SerializableProperty(6)]
public bool ShowScores