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

@ -122,8 +122,8 @@ namespace Server.Mobiles
public virtual void DropPackContents()
{
Map map = this.Map;
Container pack = this.Backpack;
Map map = Map;
Container pack = Backpack;
if ( map != null && map != Map.Internal && pack != null )
{

View file

@ -65,14 +65,14 @@ namespace Server.Mobiles
m_NextPickup = DateTime.UtcNow + TimeSpan.FromSeconds( Utility.RandomMinMax( 5, 10 ) );
Container pack = this.Backpack;
Container pack = Backpack;
if ( pack == null )
return;
ArrayList list = new ArrayList();
foreach ( Item item in this.GetItemsInRange( 2 ) )
foreach ( Item item in GetItemsInRange( 2 ) )
{
if ( item.Movable && item.Stackable )
list.Add( item );
@ -112,7 +112,7 @@ namespace Server.Mobiles
public override void BeginRelease( Mobile from )
{
Container pack = this.Backpack;
Container pack = Backpack;
if ( pack != null && pack.Items.Count > 0 )
from.SendGump( new WarningGump( 1060635, 30720, 1061672, 32512, 420, 280, new WarningGumpCallback( ConfirmRelease_Callback ), null ) );

View file

@ -49,25 +49,25 @@ namespace Server.Mobiles
m_NextFlare = DateTime.UtcNow + TimeSpan.FromSeconds( 5.0 + (25.0 * Utility.RandomDouble()) );
this.FixedEffect( 0x37C4, 1, 12, 1109, 6 );
this.PlaySound( 0x1D3 );
FixedEffect( 0x37C4, 1, 12, 1109, 6 );
PlaySound( 0x1D3 );
Timer.DelayCall( TimeSpan.FromSeconds( 0.5 ), new TimerCallback( Flare ) );
}
private void Flare()
{
Mobile caster = this.ControlMaster;
Mobile caster = ControlMaster;
if ( caster == null )
caster = this.SummonMaster;
caster = SummonMaster;
if ( caster == null )
return;
ArrayList list = new ArrayList();
foreach ( Mobile m in this.GetMobilesInRange( 5 ) )
foreach ( Mobile m in GetMobilesInRange( 5 ) )
{
if ( m.Player && m.Alive && !m.IsDeadBondedPet && m.Karma <= 0 && m.AccessLevel < AccessLevel.Counselor )
list.Add( m );