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

@ -52,7 +52,7 @@ namespace Server.Engines.CannedEvil
if ( m_Skull != null && m_Skull.Deleted )
Skull = null;
if ( from.Map != this.Map || !from.InRange( GetWorldLocation(), 3 ) )
if ( from.Map != Map || !from.InRange( GetWorldLocation(), 3 ) )
{
from.SendLocalizedMessage( 500446 ); // That is too far away.
}
@ -79,7 +79,7 @@ namespace Server.Engines.CannedEvil
if ( m_Skull != null && m_Skull.Deleted )
Skull = null;
if ( from.Map != this.Map || !from.InRange( GetWorldLocation(), 3 ) )
if ( from.Map != Map || !from.InRange( GetWorldLocation(), 3 ) )
{
from.SendLocalizedMessage( 500446 ); // That is too far away.
}
@ -101,12 +101,12 @@ namespace Server.Engines.CannedEvil
}
else
{
if ( skull.Type == this.Type )
if ( skull.Type == Type )
{
skull.Movable = false;
skull.MoveToWorld( GetWorldTop(), this.Map );
skull.MoveToWorld( GetWorldTop(), Map );
this.Skull = skull;
Skull = skull;
}
else
{

View file

@ -55,7 +55,7 @@ namespace Server.Engines.CannedEvil
{
if ( Validate( m_Power ) && Validate( m_Enlightenment ) && Validate( m_Venom ) && Validate( m_Pain ) && Validate( m_Greed ) && Validate( m_Death ) )
{
Mobile harrower = Harrower.Spawn( new Point3D( X, Y, Z + 6 ), this.Map );
Mobile harrower = Harrower.Spawn( new Point3D( X, Y, Z + 6 ), Map );
if ( harrower == null )
return;

View file

@ -94,7 +94,7 @@ namespace Server.Engines.CannedEvil
if ( m_Region != null )
m_Region.Unregister();
if ( !Deleted && this.Map != Map.Internal )
if ( !Deleted && Map != Map.Internal )
{
m_Region = new ChampionSpawnRegion( this );
m_Region.Register();
@ -626,7 +626,7 @@ namespace Server.Engines.CannedEvil
if ( !m_ConfinedRoaming )
{
bc.Home = this.Location;
bc.Home = Location;
bc.RangeHome = (int)(Math.Sqrt( m_SpawnArea.Width * m_SpawnArea.Width + m_SpawnArea.Height * m_SpawnArea.Height )/2);
}
else
@ -684,7 +684,7 @@ namespace Server.Engines.CannedEvil
public int GetSubLevel()
{
int level = this.Level;
int level = Level;
if ( level <= Level1 )
return 0;
@ -1199,7 +1199,7 @@ namespace Server.Engines.CannedEvil
public ChampionSpawn ChampionSpawn => m_Spawn;
public ChampionSpawnRegion( ChampionSpawn spawn ) : base( null, spawn.Map, Region.Find( spawn.Location, spawn.Map ), spawn.SpawnArea )
public ChampionSpawnRegion( ChampionSpawn spawn ) : base( null, spawn.Map, Find( spawn.Location, spawn.Map ), spawn.SpawnArea )
{
m_Spawn = spawn;
}