Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -13,7 +13,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override double GetFightModeRanking( Mobile m, FightMode acqType, bool bPlayerOnly )
|
||||
{
|
||||
return m.Str / Math.Max( this.GetDistanceToSqrt( m ), 1.0 );
|
||||
return m.Str / Math.Max( GetDistanceToSqrt( m ), 1.0 );
|
||||
}
|
||||
|
||||
public override string DefaultName => "an animated weapon";
|
||||
|
|
|
|||
|
|
@ -155,10 +155,10 @@ namespace Server.Mobiles
|
|||
m_Stunning = true;
|
||||
|
||||
defender.Animate( 21, 6, 1, true, false, 0 );
|
||||
this.PlaySound( 0xEE );
|
||||
PlaySound( 0xEE );
|
||||
defender.LocalOverheadMessage( MessageType.Regular, 0x3B2, false, "You have been stunned by a colossal blow!" );
|
||||
|
||||
if ( this.Weapon is BaseWeapon weapon )
|
||||
if ( Weapon is BaseWeapon weapon )
|
||||
weapon.OnHit( this, defender );
|
||||
|
||||
if ( defender.Alive )
|
||||
|
|
@ -185,12 +185,12 @@ namespace Server.Mobiles
|
|||
{
|
||||
if ( Controlled || Summoned )
|
||||
{
|
||||
Mobile master = ( this.ControlMaster );
|
||||
Mobile master = ( ControlMaster );
|
||||
|
||||
if ( master == null )
|
||||
master = this.SummonMaster;
|
||||
master = SummonMaster;
|
||||
|
||||
if ( master != null && master.Player && master.Map == this.Map && master.InRange( Location, 20 ) )
|
||||
if ( master != null && master.Player && master.Map == Map && master.InRange( Location, 20 ) )
|
||||
{
|
||||
if ( master.Mana >= amount )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -89,12 +89,12 @@ namespace Server.Mobiles
|
|||
|
||||
public override void OnDamagedBySpell( Mobile caster )
|
||||
{
|
||||
if ( this.Map != null && caster != this && 0.25 > Utility.RandomDouble() )
|
||||
if ( Map != null && caster != this && 0.25 > Utility.RandomDouble() )
|
||||
{
|
||||
BaseCreature spawn = new PlagueSpawn( this );
|
||||
|
||||
spawn.Team = this.Team;
|
||||
spawn.MoveToWorld( this.Location, this.Map );
|
||||
spawn.Team = Team;
|
||||
spawn.MoveToWorld( Location, Map );
|
||||
spawn.Combatant = caster;
|
||||
|
||||
Say( 1053034 ); // * The plague beast creates another beast from its flesh! *
|
||||
|
|
@ -108,12 +108,12 @@ namespace Server.Mobiles
|
|||
|
||||
public override void OnGotMeleeAttack( Mobile attacker )
|
||||
{
|
||||
if ( this.Map != null && attacker != this && 0.25 > Utility.RandomDouble() )
|
||||
if ( Map != null && attacker != this && 0.25 > Utility.RandomDouble() )
|
||||
{
|
||||
BaseCreature spawn = new PlagueSpawn( this );
|
||||
|
||||
spawn.Team = this.Team;
|
||||
spawn.MoveToWorld( this.Location, this.Map );
|
||||
spawn.Team = Team;
|
||||
spawn.MoveToWorld( Location, Map );
|
||||
spawn.Combatant = attacker;
|
||||
|
||||
Say( 1053034 ); // * The plague beast creates another beast from its flesh! *
|
||||
|
|
@ -222,7 +222,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
int maxhits = 2000;
|
||||
|
||||
if ( this.IsParagon )
|
||||
if ( IsParagon )
|
||||
maxhits = (int)(maxhits * Paragon.HitsBuff);
|
||||
|
||||
if ( hp < 1000 && !Core.AOS )
|
||||
|
|
@ -232,9 +232,9 @@ namespace Server.Mobiles
|
|||
{
|
||||
HitsMaxSeed = maxhits;
|
||||
|
||||
int newHits = this.Hits + hp + Utility.RandomMinMax( 10, 20 ); // increase the hp until it hits if it goes over it'll max at 2000
|
||||
int newHits = Hits + hp + Utility.RandomMinMax( 10, 20 ); // increase the hp until it hits if it goes over it'll max at 2000
|
||||
|
||||
this.Hits = Math.Min( maxhits, newHits );
|
||||
Hits = Math.Min( maxhits, newHits );
|
||||
// Also provide heal for each devour on top of the hp increase
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace Server.Mobiles
|
|||
|
||||
for ( int i = 0; i < list.Count; ++i )
|
||||
{
|
||||
if ( list[i] is ContextMenus.PaperdollEntry )
|
||||
if ( list[i] is PaperdollEntry )
|
||||
list.RemoveAt( i-- );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue