This commit is contained in:
parent
7ad00dceac
commit
0b4c3b15d9
41 changed files with 976 additions and 144 deletions
|
|
@ -999,7 +999,19 @@ namespace Server
|
|||
/// <summary>
|
||||
/// Overridable. Determines whether the item will show <see cref="AddWeightProperty" />.
|
||||
/// </summary>
|
||||
public virtual bool DisplayWeight { get { return ( Core.Expansion >= Expansion.ML ); } }
|
||||
public virtual bool DisplayWeight
|
||||
{
|
||||
get
|
||||
{
|
||||
if ( !Core.ML )
|
||||
return false;
|
||||
|
||||
if ( !Movable && !( IsLockedDown || IsSecure ) && ItemData.Weight == 255 )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overridable. Displays cliloc 1072788-1072789.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue