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

@ -184,7 +184,7 @@ namespace Server.Engines.Doom
if ( m_Region != null )
return;
Map map = this.Map;
Map map = Map;
if ( map == null || map == Map.Internal )
return;
@ -217,7 +217,7 @@ namespace Server.Engines.Doom
public virtual void SpawnTrap()
{
Map map = this.Map;
Map map = Map;
if ( map == null )
return;
@ -248,7 +248,7 @@ namespace Server.Engines.Doom
{
int x = Utility.Random( m_RegionBounds.X, m_RegionBounds.Width );
int y = Utility.Random( m_RegionBounds.Y, m_RegionBounds.Height );
int z = this.Z;
int z = Z;
if ( !map.CanFit( x, y, z, 16, false, false ) )
z = map.GetAverageZ( x, y );
@ -269,7 +269,7 @@ namespace Server.Engines.Doom
{
int playerCount = 0;
Map map = this.Map;
Map map = Map;
if ( map != null )
{
@ -335,7 +335,7 @@ namespace Server.Engines.Doom
item.Delete();
else if ( obj is Mobile mob )
{
mob.MoveToWorld( GetWorldLocation(), this.Map );
mob.MoveToWorld( GetWorldLocation(), Map );
m_Creatures.Add( mob );
}
@ -669,7 +669,7 @@ namespace Server.Engines.Doom
private GauntletSpawner m_Spawner;
public GauntletRegion( GauntletSpawner spawner, Map map )
: base( null, map, Region.Find( spawner.Location, spawner.Map ), spawner.RegionBounds )
: base( null, map, Find( spawner.Location, spawner.Map ), spawner.RegionBounds )
{
m_Spawner = spawner;

View file

@ -19,7 +19,7 @@ namespace Server.Engines.Doom
public override void OnDoubleClick( Mobile m )
{
if ( !m.InRange( this.GetWorldLocation(), 3 ) )
if ( !m.InRange( GetWorldLocation(), 3 ) )
return;
if ( m_Controller.Enabled )
return;
@ -169,7 +169,7 @@ namespace Server.Engines.Doom
}
else
{
Server.Mobiles.BaseCreature.TeleportPets( m, LeverPuzzleController.lr_Exit, Map.Malas );
BaseCreature.TeleportPets( m, LeverPuzzleController.lr_Exit, Map.Malas );
m.MoveToWorld( LeverPuzzleController.lr_Exit, Map.Malas );
return false;
}

View file

@ -8,7 +8,7 @@ namespace Server.Engines.Doom
private LeverPuzzleController Controller;
public LampRoomRegion ( LeverPuzzleController controller )
: base( null, Map.Malas, Region.Find( LeverPuzzleController.lr_Enter, Map.Malas ), LeverPuzzleController.lr_Rect )
: base( null, Map.Malas, Find( LeverPuzzleController.lr_Enter, Map.Malas ), LeverPuzzleController.lr_Rect )
{
Controller = controller;
Register();
@ -97,7 +97,7 @@ namespace Server.Engines.Doom
}
public LeverPuzzleRegion ( LeverPuzzleController controller, int[] loc )
: base( null, Map.Malas, Region.Find( LeverPuzzleController.lr_Enter, Map.Malas ), new Rectangle2D(loc[0],loc[1],1,1) )
: base( null, Map.Malas, Find( LeverPuzzleController.lr_Enter, Map.Malas ), new Rectangle2D(loc[0],loc[1],1,1) )
{
Controller = controller;
Register();