Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -91,7 +91,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override void AlterMeleeDamageTo( Mobile to, ref int damage )
|
||||
{
|
||||
if ( Utility.RandomBool() && (this.Mana > 14) && to != null )
|
||||
if ( Utility.RandomBool() && (Mana > 14) && to != null )
|
||||
{
|
||||
damage = (damage + (damage / 2));
|
||||
to.SendLocalizedMessage( 1060091 ); // You take extra damage from the crushing attack!
|
||||
|
|
@ -117,9 +117,9 @@ namespace Server.Mobiles
|
|||
public void PoisonAttack( Mobile m )
|
||||
{
|
||||
DoHarmful( m );
|
||||
this.MovingParticles( m, 0x36D4, 1, 0, false, false, 0x3F, 0, 0x1F73, 1, 0, (EffectLayer)255, 0x100 );
|
||||
MovingParticles( m, 0x36D4, 1, 0, false, false, 0x3F, 0, 0x1F73, 1, 0, (EffectLayer)255, 0x100 );
|
||||
m.ApplyPoison( this, Poison.Regular );
|
||||
m.SendLocalizedMessage( 1070821, this.Name ); // %s spits a poisonous substance at you!
|
||||
m.SendLocalizedMessage( 1070821, Name ); // %s spits a poisonous substance at you!
|
||||
}
|
||||
|
||||
public override int Hides => 8;
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ namespace Server.Mobiles
|
|||
* Effect: - To: "0x57D4F5B" - ItemId: "0x27A3" - ItemIdName: "Tessen" - FromLocation: "(992 299, 24)" - ToLocation: "(992 308, 22)" - Speed: "10" - Duration: "0" - FixedDirection: "False" - Explode: "False" - Hue: "0x0" - Render: "0x0"
|
||||
* Damage: 50-65
|
||||
*/
|
||||
Effects.SendPacket( attacker, attacker.Map, new HuedEffect( EffectType.Moving, Serial.Zero, Serial.Zero, 0x27A3, this.Location, attacker.Location, 10, 0, false, false, 0, 0 ) );
|
||||
Effects.SendPacket( attacker, attacker.Map, new HuedEffect( EffectType.Moving, Serial.Zero, Serial.Zero, 0x27A3, Location, attacker.Location, 10, 0, false, false, 0, 0 ) );
|
||||
AOS.Damage( attacker, this, Utility.RandomMinMax( 50, 65 ), 100, 0, 0, 0, 0 );
|
||||
}
|
||||
}
|
||||
|
|
@ -92,7 +92,7 @@ namespace Server.Mobiles
|
|||
* Effect: - To: "0x57D4F5B" - ItemId: "0x27A3" - ItemIdName: "Tessen" - FromLocation: "(992 299, 24)" - ToLocation: "(992 308, 22)" - Speed: "10" - Duration: "0" - FixedDirection: "False" - Explode: "False" - Hue: "0x0" - Render: "0x0"
|
||||
* Damage: 50-65
|
||||
*/
|
||||
Effects.SendPacket( attacker, attacker.Map, new HuedEffect( EffectType.Moving, Serial.Zero, Serial.Zero, 0x27A3, this.Location, attacker.Location, 10, 0, false, false, 0, 0 ) );
|
||||
Effects.SendPacket( attacker, attacker.Map, new HuedEffect( EffectType.Moving, Serial.Zero, Serial.Zero, 0x27A3, Location, attacker.Location, 10, 0, false, false, 0, 0 ) );
|
||||
AOS.Damage( attacker, this, Utility.RandomMinMax( 50, 65 ), 100, 0, 0, 0, 0 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[Server.Engines.Craft.Forge]
|
||||
[Engines.Craft.Forge]
|
||||
public class FireBeetle : BaseMount
|
||||
{
|
||||
public override string CorpseName => "a fire beetle corpse";
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ namespace Server.Mobiles
|
|||
|
||||
private void DoCounter( Mobile attacker )
|
||||
{
|
||||
if ( this.Map == null )
|
||||
if ( Map == null )
|
||||
return;
|
||||
|
||||
if ( attacker is BaseCreature creature && creature.BardProvoked )
|
||||
|
|
@ -105,7 +105,7 @@ namespace Server.Mobiles
|
|||
if ( target == null || !target.InRange( this, 18 ) )
|
||||
target = attacker;
|
||||
|
||||
this.Animate( 10, 4, 1, true, false, 0 );
|
||||
Animate( 10, 4, 1, true, false, 0 );
|
||||
|
||||
ArrayList targets = new ArrayList();
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ namespace Server.Mobiles
|
|||
if ( m == this || !CanBeHarmful( m ) )
|
||||
continue;
|
||||
|
||||
if ( m is BaseCreature bc && (bc.Controlled || bc.Summoned || bc.Team != this.Team))
|
||||
if ( m is BaseCreature bc && (bc.Controlled || bc.Summoned || bc.Team != Team))
|
||||
targets.Add( m );
|
||||
else if ( m.Player && m.Alive )
|
||||
targets.Add( m );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue