Removes implicit this.

This commit is contained in:
Kamron Batman 2018-09-14 12:56:58 -07:00
parent 04b4cfe75b
commit 83dcf536d8
533 changed files with 2804 additions and 2806 deletions

View file

@ -39,7 +39,7 @@ namespace Server.Items
get => base.ItemID;
set {
if ( base.ItemID != value ) {
Map facet = ( this.Parent == null ? this.Map : null );
Map facet = ( Parent == null ? Map : null );
if ( facet != null ) {
facet.OnLeave( this );
@ -57,8 +57,8 @@ namespace Server.Items
[Obsolete( "Replace with calls to OnLeave and OnEnter surrounding component invalidation.", true )]
public virtual void RefreshComponents()
{
if ( this.Parent == null ) {
Map facet = this.Map;
if ( Parent == null ) {
Map facet = Map;
if ( facet != null ) {
facet.OnLeave( this );
@ -71,7 +71,7 @@ namespace Server.Items
{
get
{
MultiComponentList mcl = this.Components;
MultiComponentList mcl = Components;
if ( mcl.List.Length > 0 ) {
int id = mcl.List[0].m_ItemID;
@ -117,10 +117,10 @@ namespace Server.Items
public virtual bool Contains( int x, int y )
{
MultiComponentList mcl = this.Components;
MultiComponentList mcl = Components;
x -= this.X + mcl.Min.m_X;
y -= this.Y + mcl.Min.m_Y;
x -= X + mcl.Min.m_X;
y -= Y + mcl.Min.m_Y;
return x >= 0
&& x < mcl.Width
@ -131,7 +131,7 @@ namespace Server.Items
public bool Contains( Mobile m )
{
if ( m.Map == this.Map )
if ( m.Map == Map )
return Contains( m.X, m.Y );
else
return false;
@ -139,7 +139,7 @@ namespace Server.Items
public bool Contains( Item item )
{
if ( item.Map == this.Map )
if ( item.Map == Map )
return Contains( item.X, item.Y );
else
return false;