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

@ -162,7 +162,7 @@ namespace Server.Mobiles
if ( canAccess )
{
if ( this.Poisoned )
if ( Poisoned )
PrivateOverheadMessage( Network.MessageType.Regular, 0x3B2, 1049692, from.NetState ); // This mount is too ill to ride.
else
Rider = from;
@ -240,7 +240,7 @@ namespace Server.Mobiles
if ( m_InternalItem != null )
value.AddItem( m_InternalItem );
value.Direction = this.Direction;
value.Direction = Direction;
Internalize();

View file

@ -5,7 +5,7 @@ using Server.Engines.VeteranRewards;
namespace Server.Mobiles
{
public class EtherealMount : Item, IMount, IMountItem, Engines.VeteranRewards.IRewardItem
public class EtherealMount : Item, IMount, IMountItem, IRewardItem
{
private int m_MountedID;
private int m_RegularID;

View file

@ -236,7 +236,7 @@ namespace Server.Mobiles
Timer.DelayCall( TimeSpan.Zero, delegate { Hue = GetHue(); } );
if ( version <= 1 )
Timer.DelayCall( TimeSpan.Zero, delegate { if ( InternalItem != null ) { InternalItem.Hue = this.Hue; } } );
Timer.DelayCall( TimeSpan.Zero, delegate { if ( InternalItem != null ) { InternalItem.Hue = Hue; } } );
if ( version < 2 )
{

View file

@ -236,7 +236,7 @@ namespace Server.Mobiles
Timer.DelayCall( TimeSpan.Zero, delegate { Hue = GetHue(); } );
if ( version <= 1 )
Timer.DelayCall( TimeSpan.Zero, delegate { if ( InternalItem != null ) { InternalItem.Hue = this.Hue; } } );
Timer.DelayCall( TimeSpan.Zero, delegate { if ( InternalItem != null ) { InternalItem.Hue = Hue; } } );
if ( version < 2 )
{

View file

@ -29,14 +29,14 @@ namespace Server.Mobiles
if ( p != null )
{
int chanceToCure = 10000 + (int)(this.Skills[SkillName.Magery].Value * 75) - ((p.Level + 1) * (Core.AOS ? (p.Level < 4 ? 3300 : 3100) : 1750));
int chanceToCure = 10000 + (int)(Skills[SkillName.Magery].Value * 75) - ((p.Level + 1) * (Core.AOS ? (p.Level < 4 ? 3300 : 3100) : 1750));
chanceToCure /= 100;
if ( chanceToCure > Utility.Random( 100 ) )
{
if ( Rider.CurePoison( this ) ) //TODO: Confirm if mount is the one flagged for curing it or the rider is
{
Rider.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, true, "Your mount senses you are in danger and aids you with magic." );
Rider.LocalOverheadMessage( Network.MessageType.Regular, 0x3B2, true, "Your mount senses you are in danger and aids you with magic." );
Rider.FixedParticles( 0x373A, 10, 15, 5012, EffectLayer.Waist );
Rider.PlaySound( 0x1E0 ); // Cure spell effect.
Rider.PlaySound( 0xA9 ); // Unicorn's whinny.

View file

@ -9,18 +9,18 @@ namespace Server.Mobiles
public Jwilson() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Hue = Utility.RandomList(0x89C,0x8A2,0x8A8,0x8AE);
this.Body = 0x33;
this.VirtualArmor = 8;
Body = 0x33;
VirtualArmor = 8;
this.InitStats(Utility.Random(22,13),Utility.Random(16,6),Utility.Random(16,5));
InitStats(Utility.Random(22,13),Utility.Random(16,6),Utility.Random(16,5));
this.Skills[SkillName.Wrestling].Base = Utility.Random(24,17);
this.Skills[SkillName.Tactics].Base = Utility.Random(18,14);
this.Skills[SkillName.MagicResist].Base = Utility.Random(15,6);
this.Skills[SkillName.Poisoning].Base = Utility.Random(31,20);
Skills[SkillName.Wrestling].Base = Utility.Random(24,17);
Skills[SkillName.Tactics].Base = Utility.Random(18,14);
Skills[SkillName.MagicResist].Base = Utility.Random(15,6);
Skills[SkillName.Poisoning].Base = Utility.Random(31,20);
this.Fame = Utility.Random(0,1249);
this.Karma = Utility.Random(0,-624);
Fame = Utility.Random(0,1249);
Karma = Utility.Random(0,-624);
}
public Jwilson(Serial serial) : base(serial)

View file

@ -8,17 +8,17 @@ namespace Server.Mobiles
[Constructible]
public Parrot() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
this.Body = 831;
this.VirtualArmor = Utility.Random(0,6);
Body = 831;
VirtualArmor = Utility.Random(0,6);
this.InitStats((10),Utility.Random(25,16),(10));
InitStats((10),Utility.Random(25,16),(10));
this.Skills[SkillName.Wrestling].Base = (6);
this.Skills[SkillName.Tactics].Base = (6);
this.Skills[SkillName.MagicResist].Base = (5);
Skills[SkillName.Wrestling].Base = (6);
Skills[SkillName.Tactics].Base = (6);
Skills[SkillName.MagicResist].Base = (5);
this.Fame = Utility.Random(0,1249);
this.Karma = Utility.Random(0,-624);
Fame = Utility.Random(0,1249);
Karma = Utility.Random(0,-624);
Tamable = true;
ControlSlots = 1;