Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -23,10 +23,10 @@ namespace Server.Items
|
|||
|
||||
private bool CheckUse( Mobile from )
|
||||
{
|
||||
if ( !this.IsAccessibleTo( from ) )
|
||||
if ( !IsAccessibleTo( from ) )
|
||||
return false;
|
||||
|
||||
if ( from.Map != this.Map || !from.InRange( GetWorldLocation(), 2 ) )
|
||||
if ( from.Map != Map || !from.InRange( GetWorldLocation(), 2 ) )
|
||||
{
|
||||
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1019045 ); // I can't reach that.
|
||||
return false;
|
||||
|
|
@ -171,7 +171,7 @@ namespace Server.Items
|
|||
if ( Utility.RandomDouble() < breakChance )
|
||||
{
|
||||
from.SendLocalizedMessage( 1049619 ); // The fire horn crumbles in your hands.
|
||||
this.Delete();
|
||||
Delete();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ namespace Server.Items
|
|||
{
|
||||
base.GetProperties( list );
|
||||
|
||||
Recipe r = this.Recipe;
|
||||
Recipe r = Recipe;
|
||||
|
||||
if ( r != null )
|
||||
list.Add( 1049644, r.TextDefinition.ToString() ); // [~1_stuff~]
|
||||
|
|
@ -57,13 +57,13 @@ namespace Server.Items
|
|||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !from.InRange( this.GetWorldLocation(), 2 ) )
|
||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
||||
{
|
||||
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1019045 ); // I can't reach that.
|
||||
return;
|
||||
}
|
||||
|
||||
Recipe r = this.Recipe;
|
||||
Recipe r = Recipe;
|
||||
|
||||
if ( r != null && from is PlayerMobile pm )
|
||||
{
|
||||
|
|
@ -76,7 +76,7 @@ namespace Server.Items
|
|||
{
|
||||
pm.SendLocalizedMessage( 1073451, r.TextDefinition.ToString() ); // You have learned a new recipe: ~1_RECIPE~
|
||||
pm.AcquireRecipe( r );
|
||||
this.Delete();
|
||||
Delete();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -110,10 +110,10 @@ namespace Server.Items
|
|||
if ( Deleted || !from.CanSee( this ) )
|
||||
return;
|
||||
|
||||
this.LabelTo( from, 1061133, String.Format( "{0}\t{1}", GetSkillTitle( m_SkillLevel ).ToString(), RepairSkillInfo.GetInfo( m_Skill ).Name ) ); // A repair service contract from ~1_SKILL_TITLE~ ~2_SKILL_NAME~.
|
||||
LabelTo( from, 1061133, String.Format( "{0}\t{1}", GetSkillTitle( m_SkillLevel ).ToString(), RepairSkillInfo.GetInfo( m_Skill ).Name ) ); // A repair service contract from ~1_SKILL_TITLE~ ~2_SKILL_NAME~.
|
||||
|
||||
if ( m_Crafter != null )
|
||||
this.LabelTo( from, 1050043, m_Crafter.Name ); // crafted by ~1_NAME~
|
||||
LabelTo( from, 1050043, m_Crafter.Name ); // crafted by ~1_NAME~
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
|
|
@ -208,7 +208,7 @@ namespace Server.Items
|
|||
if ( !m.Region.IsPartOf( typeof( TownRegion ) ) )
|
||||
return false;
|
||||
|
||||
return Server.Factions.Faction.IsNearType( m, RepairSkillInfo.GetInfo( m_Skill ).NearbyTypes, 6 );
|
||||
return Factions.Faction.IsNearType( m, RepairSkillInfo.GetInfo( m_Skill ).NearbyTypes, 6 );
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue