diff --git a/Server/Item.cs b/Server/Item.cs index 8e93d4ce0..3880a8643 100644 --- a/Server/Item.cs +++ b/Server/Item.cs @@ -995,6 +995,25 @@ namespace Server list.Add( 1060446, v.ToString() ); // energy resist ~1_val~% } + /// + /// Overridable. Determines whether the item will show . + /// + public virtual bool DisplayWeight { get { return ( Core.Expansion >= Expansion.ML ); } } + + /// + /// Overridable. Displays cliloc 1072788-1072789. + /// + public virtual void AddWeightProperty( ObjectPropertyList list ) + { + int weight = this.PileWeight + this.TotalWeight; + + if ( weight == 1 ) { + list.Add( 1072788, weight.ToString() ); //Weight: ~1_WEIGHT~ stone + } else { + list.Add( 1072789, weight.ToString() ); //Weight: ~1_WEIGHT~ stones + } + } + /// /// Overridable. Adds header properties. By default, this invokes , (if applicable), and (if ). /// @@ -1015,6 +1034,10 @@ namespace Server if ( DisplayLootType ) AddLootTypeProperty( list ); + if ( DisplayWeight ) { + AddWeightProperty( list ); + } + AppendChildNameProperties( list ); }