Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -73,11 +73,11 @@ namespace Server.Items
|
|||
get => base.ItemID;
|
||||
set
|
||||
{
|
||||
int oldID = this.ItemID;
|
||||
int oldID = ItemID;
|
||||
|
||||
base.ItemID = value;
|
||||
|
||||
if ( this.ItemID != oldID )
|
||||
if ( ItemID != oldID )
|
||||
UpdateContainerData();
|
||||
}
|
||||
}
|
||||
|
|
@ -126,7 +126,7 @@ namespace Server.Items
|
|||
|
||||
public virtual void UpdateContainerData()
|
||||
{
|
||||
this.ContainerData = ContainerData.GetData( this.ItemID );
|
||||
ContainerData = ContainerData.GetData( ItemID );
|
||||
}
|
||||
|
||||
public virtual Rectangle2D Bounds => ContainerData.Bounds;
|
||||
|
|
@ -199,9 +199,9 @@ namespace Server.Items
|
|||
return false;
|
||||
}
|
||||
|
||||
int maxItems = this.MaxItems;
|
||||
int maxItems = MaxItems;
|
||||
|
||||
if ( checkItems && maxItems != 0 && (this.TotalItems + plusItems + item.TotalItems + (item.IsVirtualItem ? 0 : 1)) > maxItems )
|
||||
if ( checkItems && maxItems != 0 && (TotalItems + plusItems + item.TotalItems + (item.IsVirtualItem ? 0 : 1)) > maxItems )
|
||||
{
|
||||
if ( message )
|
||||
SendFullItemsMessage( m, item );
|
||||
|
|
@ -209,7 +209,7 @@ namespace Server.Items
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( MaxWeight != 0 && (this.TotalWeight + plusWeight + item.TotalWeight + item.PileWeight) > MaxWeight )
|
||||
if ( MaxWeight != 0 && (TotalWeight + plusWeight + item.TotalWeight + item.PileWeight) > MaxWeight )
|
||||
{
|
||||
if ( message )
|
||||
SendFullWeightMessage( m, item );
|
||||
|
|
@ -218,7 +218,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
object parent = this.Parent;
|
||||
object parent = Parent;
|
||||
|
||||
while ( parent != null )
|
||||
{
|
||||
|
|
@ -1490,7 +1490,7 @@ namespace Server.Items
|
|||
|
||||
public virtual bool TryDropItem( Mobile from, Item dropped, bool sendFullMessage, bool playSound )
|
||||
{
|
||||
List<Item> list = this.Items;
|
||||
List<Item> list = Items;
|
||||
|
||||
for ( int i = 0; i < list.Count; ++i )
|
||||
{
|
||||
|
|
@ -1524,7 +1524,7 @@ namespace Server.Items
|
|||
{
|
||||
Item dropped = droppedItems[i];
|
||||
|
||||
List<Item> list = this.Items;
|
||||
List<Item> list = Items;
|
||||
|
||||
bool stacked = false;
|
||||
|
||||
|
|
@ -1600,7 +1600,7 @@ namespace Server.Items
|
|||
AddItem( dropped );
|
||||
|
||||
Rectangle2D bounds = dropped.GetGraphicBounds();
|
||||
Rectangle2D ourBounds = this.Bounds;
|
||||
Rectangle2D ourBounds = Bounds;
|
||||
|
||||
int x, y;
|
||||
|
||||
|
|
@ -1653,7 +1653,7 @@ namespace Server.Items
|
|||
{
|
||||
if ( DisplaysContent )
|
||||
{
|
||||
object root = this.RootParent;
|
||||
object root = RootParent;
|
||||
|
||||
if ( root == null || root is Item || root == from || from.AccessLevel > AccessLevel.Player )
|
||||
return true;
|
||||
|
|
@ -1705,7 +1705,7 @@ namespace Server.Items
|
|||
|
||||
if ( ObjectPropertyList.Enabled )
|
||||
{
|
||||
List<Item> items = this.Items;
|
||||
List<Item> items = Items;
|
||||
|
||||
for ( int i = 0; i < items.Count; ++i )
|
||||
to.Send( items[i].OPLPacket );
|
||||
|
|
@ -1722,7 +1722,7 @@ namespace Server.Items
|
|||
if ( m_Openers != null )
|
||||
{
|
||||
Point3D worldLoc = GetWorldLocation();
|
||||
Map map = this.Map;
|
||||
Map map = Map;
|
||||
|
||||
for ( int i = 0; i < m_Openers.Count; ++i )
|
||||
{
|
||||
|
|
@ -1782,7 +1782,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( from.AccessLevel > AccessLevel.Player || from.InRange( this.GetWorldLocation(), 2 ) )
|
||||
if ( from.AccessLevel > AccessLevel.Player || from.InRange( GetWorldLocation(), 2 ) )
|
||||
DisplayTo( from );
|
||||
else
|
||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue