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

@ -30,7 +30,7 @@ namespace Server.Items
}
set
{
bool extended = this.Extended;
bool extended = Extended;
ItemID = ( extended ? GetExtendedID( value ) : GetBaseID( value ) );
}
@ -38,13 +38,13 @@ namespace Server.Items
public bool Extended
{
get => ( ItemID == GetExtendedID( this.Type ) );
get => ( ItemID == GetExtendedID( Type ) );
set
{
if ( value )
ItemID = GetExtendedID( this.Type );
ItemID = GetExtendedID( Type );
else
ItemID = GetBaseID( this.Type );
ItemID = GetBaseID( Type );
}
}
@ -100,7 +100,7 @@ namespace Server.Items
if ( !from.Alive || from.AccessLevel > AccessLevel.Player )
return;
Effects.SendLocationEffect( Location, Map, GetBaseID( this.Type ) + 1, 18, 3, GetEffectHue(), 0 );
Effects.SendLocationEffect( Location, Map, GetBaseID( Type ) + 1, 18, 3, GetEffectHue(), 0 );
Effects.PlaySound( Location, Map, 0x22C );
foreach ( Mobile mob in GetMobilesInRange( 0 ) )
@ -123,7 +123,7 @@ namespace Server.Items
public virtual void OnSpikeRetracted()
{
Extended = false;
Effects.SendLocationEffect( Location, Map, GetExtendedID( this.Type ) - 1, 6, 3, GetEffectHue(), 0 );
Effects.SendLocationEffect( Location, Map, GetExtendedID( Type ) - 1, 6, 3, GetEffectHue(), 0 );
}
public SpikeTrap( Serial serial ) : base( serial )