Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -15,7 +15,7 @@ namespace Server.Items
|
|||
{
|
||||
base.GetProperties( list );
|
||||
|
||||
list.Add( 1061078, this.ArtifactRarity.ToString() ); // artifact rarity ~1_val~
|
||||
list.Add( 1061078, ArtifactRarity.ToString() ); // artifact rarity ~1_val~
|
||||
}
|
||||
|
||||
public BaseDecorationArtifact( Serial serial ) : base( serial )
|
||||
|
|
@ -52,7 +52,7 @@ namespace Server.Items
|
|||
{
|
||||
base.AddNameProperties( list );
|
||||
|
||||
list.Add( 1061078, this.ArtifactRarity.ToString() ); // artifact rarity ~1_val~
|
||||
list.Add( 1061078, ArtifactRarity.ToString() ); // artifact rarity ~1_val~
|
||||
}
|
||||
|
||||
public BaseDecorationContainerArtifact( Serial serial ) : base( serial )
|
||||
|
|
|
|||
|
|
@ -1418,28 +1418,28 @@ namespace Server.Items
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool IsOn
|
||||
{
|
||||
get => this.ItemID == 0x24BF;
|
||||
set => this.ItemID = value ? 0x24BF : 0x24C0;
|
||||
get => ItemID == 0x24BF;
|
||||
set => ItemID = value ? 0x24BF : 0x24C0;
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public TowerLanternArtifact() : base( 0x24C0 )
|
||||
{
|
||||
this.Light = LightType.Circle225;
|
||||
Light = LightType.Circle225;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( from.InRange( this.GetWorldLocation(), 2 ) )
|
||||
if ( from.InRange( GetWorldLocation(), 2 ) )
|
||||
{
|
||||
if ( this.IsOn )
|
||||
if ( IsOn )
|
||||
{
|
||||
this.IsOn = false;
|
||||
IsOn = false;
|
||||
from.PlaySound( 0x3BE );
|
||||
}
|
||||
else
|
||||
{
|
||||
this.IsOn = true;
|
||||
IsOn = true;
|
||||
from.PlaySound( 0x47 );
|
||||
}
|
||||
}
|
||||
|
|
@ -1467,7 +1467,7 @@ namespace Server.Items
|
|||
int version = reader.ReadEncodedInt();
|
||||
|
||||
if ( version == 0 )
|
||||
this.Light = LightType.Circle225;
|
||||
Light = LightType.Circle225;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ namespace Server.Items
|
|||
item.Hue = m_Hue;
|
||||
|
||||
item.Movable = false;
|
||||
item.MoveToWorld( this.Location, this.Map );
|
||||
item.MoveToWorld( Location, Map );
|
||||
|
||||
return item;
|
||||
}
|
||||
|
|
@ -263,8 +263,8 @@ namespace Server.Items
|
|||
{
|
||||
if ( m_Item != null && value == null )
|
||||
{
|
||||
int delay = Utility.RandomMinMax( this.Entry.MinDelay, this.Entry.MaxDelay );
|
||||
this.NextRespawn = DateTime.UtcNow + TimeSpan.FromMinutes( delay );
|
||||
int delay = Utility.RandomMinMax( Entry.MinDelay, Entry.MaxDelay );
|
||||
NextRespawn = DateTime.UtcNow + TimeSpan.FromMinutes( delay );
|
||||
}
|
||||
|
||||
if ( Instance != null )
|
||||
|
|
@ -299,12 +299,12 @@ namespace Server.Items
|
|||
|
||||
public void CheckRespawn()
|
||||
{
|
||||
if ( this.Item != null && ( this.Item.Deleted || this.Item.Movable || this.Item.Parent != null ) )
|
||||
this.Item = null;
|
||||
if ( Item != null && ( Item.Deleted || Item.Movable || Item.Parent != null ) )
|
||||
Item = null;
|
||||
|
||||
if ( this.Item == null && DateTime.UtcNow >= this.NextRespawn )
|
||||
if ( Item == null && DateTime.UtcNow >= NextRespawn )
|
||||
{
|
||||
this.Item = this.Entry.CreateInstance();
|
||||
Item = Entry.CreateInstance();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue