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

@ -97,7 +97,7 @@ namespace Server.Items
from.NonlocalOverheadMessage( MessageType.Emote, 0x961, 1061915, from.Name ); // * ~1_PLAYER_NAME~ pushes a strange green thorn into the ground. *
from.BeginAction( typeof( GreenThorns ) );
new GreenThorns.EndActionTimer( from ).Start();
new EndActionTimer( from ).Start();
effect.Start();
}

View file

@ -32,7 +32,7 @@ namespace Server.Items
if ( item != this )
return base.CheckItemUse( from, item );
if ( from != this.RootParent )
if ( from != RootParent )
{
from.SendLocalizedMessage( 1042038 ); // You must have the object in your backpack to use it.
return false;
@ -59,7 +59,7 @@ namespace Server.Items
AddContext( from, new OrangePetalsContext( timer ) );
this.Consume();
Consume();
}
private static Hashtable m_Table = new Hashtable();

View file

@ -81,7 +81,7 @@ namespace Server.Engines.Plants
}
}
}
else if ( PlantBowl.IsDirtPatch( targeted ) )
else if ( IsDirtPatch( targeted ) )
{
PlantItem fullBowl = new PlantItem( false );

View file

@ -168,10 +168,10 @@ namespace Server.Engines.Plants
public bool IsGrowable => m_PlantStatus >= PlantStatus.BowlOfDirt && m_PlantStatus <= PlantStatus.Stage9;
[CommandProperty( AccessLevel.GameMaster )]
public bool IsCrossable => PlantHueInfo.IsCrossable( this.PlantHue ) && PlantTypeInfo.IsCrossable( this.PlantType );
public bool IsCrossable => PlantHueInfo.IsCrossable( PlantHue ) && PlantTypeInfo.IsCrossable( PlantType );
[CommandProperty( AccessLevel.GameMaster )]
public bool Reproduces => PlantHueInfo.CanReproduce( this.PlantHue ) && PlantTypeInfo.CanReproduce( this.PlantType );
public bool Reproduces => PlantHueInfo.CanReproduce( PlantHue ) && PlantTypeInfo.CanReproduce( PlantType );
private static ArrayList m_Instances = new ArrayList();
@ -315,7 +315,7 @@ namespace Server.Engines.Plants
if ( m_PlantStatus >= PlantStatus.DecorativePlant )
return;
Point3D loc = this.GetWorldLocation();
Point3D loc = GetWorldLocation();
if ( !from.InLOS( loc ) || !from.InRange( loc, 2 ) )
{