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

@ -47,10 +47,10 @@ namespace Server.Items
{
if ( DoAgility( from ) )
{
BasePotion.PlayDrinkEffect( from );
PlayDrinkEffect( from );
if ( !Engines.ConPVP.DuelContext.IsFreeConsume( from ) )
this.Consume();
Consume();
}
}
}

View file

@ -89,13 +89,13 @@ namespace Server.Items
if ( !Movable )
return;
if ( from.InRange( this.GetWorldLocation(), 1 ) )
if ( from.InRange( GetWorldLocation(), 1 ) )
{
if (!RequireFreeHand || HasFreeHand(from))
{
if (this is BaseExplosionPotion && Amount > 1)
{
BasePotion pot = (BasePotion)Activator.CreateInstance(this.GetType());
BasePotion pot = (BasePotion)Activator.CreateInstance(GetType());
if (pot != null)
{
@ -114,7 +114,7 @@ namespace Server.Items
}
else
{
this.Drink( from );
Drink( from );
}
}
else

View file

@ -84,13 +84,13 @@ namespace Server.Items
{
DoCure( from );
BasePotion.PlayDrinkEffect( from );
PlayDrinkEffect( from );
from.FixedParticles( 0x373A, 10, 15, 5012, EffectLayer.Waist );
from.PlaySound( 0x1E0 );
if ( !Engines.ConPVP.DuelContext.IsFreeConsume( from ) )
this.Consume();
Consume();
}
else
{

View file

@ -42,12 +42,12 @@ namespace Server.Items
public virtual object FindParent( Mobile from )
{
Mobile m = this.HeldBy;
Mobile m = HeldBy;
if ( m != null && m.Holding == this )
return m;
object obj = this.RootParent;
object obj = RootParent;
if ( obj != null )
return obj;
@ -73,7 +73,7 @@ namespace Server.Items
}
ThrowTarget targ = from.Target as ThrowTarget;
this.Stackable = false; // Scavenged explosion potions won't stack with those ones in backpack, and still will explode.
Stackable = false; // Scavenged explosion potions won't stack with those ones in backpack, and still will explode.
if ( targ != null && targ.Potion == this )
return;

View file

@ -53,10 +53,10 @@ namespace Server.Items
{
DoHeal( from );
BasePotion.PlayDrinkEffect( from );
PlayDrinkEffect( from );
if ( !Engines.ConPVP.DuelContext.IsFreeConsume( from ) )
this.Consume();
Consume();
Timer.DelayCall( TimeSpan.FromSeconds( Delay ), new TimerStateCallback( ReleaseHealLock ), from );
}

View file

@ -35,10 +35,10 @@ namespace Server.Items
from.FixedParticles( 0x376A, 9, 32, 5007, EffectLayer.Waist );
from.PlaySound( 0x1E3 );
BasePotion.PlayDrinkEffect( from );
PlayDrinkEffect( from );
if ( !Engines.ConPVP.DuelContext.IsFreeConsume( from ) )
this.Consume();
Consume();
}
else
{

View file

@ -38,10 +38,10 @@ namespace Server.Items
{
DoPoison( from );
BasePotion.PlayDrinkEffect( from );
PlayDrinkEffect( from );
if ( !Engines.ConPVP.DuelContext.IsFreeConsume( from ) )
this.Consume();
Consume();
}
}
}

View file

@ -32,10 +32,10 @@ namespace Server.Items
{
from.Stam += Scale( from, (int)(Refresh * from.StamMax) );
BasePotion.PlayDrinkEffect( from );
PlayDrinkEffect( from );
if ( !Engines.ConPVP.DuelContext.IsFreeConsume( from ) )
this.Consume();
Consume();
}
else
{

View file

@ -47,10 +47,10 @@ namespace Server.Items
{
if ( DoStrength( from ) )
{
BasePotion.PlayDrinkEffect( from );
PlayDrinkEffect( from );
if ( !Engines.ConPVP.DuelContext.IsFreeConsume( from ) )
this.Consume();
Consume();
}
}
}