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

@ -101,7 +101,7 @@ namespace Server.Engines.Quests.Haven
if ( ItemID == 0x2006 ) // Corpse form
{
list.Add( "a human corpse" );
list.Add( 1049144, this.Name ); // the remains of ~1_NAME~ the apprentice
list.Add( 1049144, Name ); // the remains of ~1_NAME~ the apprentice
}
else
{
@ -111,7 +111,7 @@ namespace Server.Engines.Quests.Haven
public override void OnSingleClick( Mobile from )
{
int hue = Notoriety.GetHue( Server.Misc.NotorietyHandlers.CorpseNotoriety( from, this ) );
int hue = Notoriety.GetHue( Misc.NotorietyHandlers.CorpseNotoriety( from, this ) );
if ( ItemID == 0x2006 ) // Corpse form
from.Send( new MessageLocalized( Serial, ItemID, MessageType.Label, hue, 3, 1049144, "", Name ) ); // the remains of ~1_NAME~ the apprentice
@ -121,7 +121,7 @@ namespace Server.Engines.Quests.Haven
public override void Open( Mobile from, bool checkSelfLoot )
{
if ( !from.InRange( this.GetWorldLocation(), 2 ) )
if ( !from.InRange( GetWorldLocation(), 2 ) )
return;
if ( from is PlayerMobile player )
@ -158,13 +158,13 @@ namespace Server.Engines.Quests.Haven
public override void OnLocationChange( Point3D oldLoc )
{
if ( m_Lantern != null && !m_Lantern.Deleted )
m_Lantern.Location = new Point3D( this.X, this.Y + 1, this.Z );
m_Lantern.Location = new Point3D( X, Y + 1, Z );
}
public override void OnMapChange()
{
if ( m_Lantern != null && !m_Lantern.Deleted )
m_Lantern.Map = this.Map;
m_Lantern.Map = Map;
}
public override void OnAfterDelete()

View file

@ -99,7 +99,7 @@ namespace Server.Engines.Quests.Haven
if ( ItemID == 0x2006 ) // Corpse form
{
list.Add( "a human corpse" );
list.Add( 1049318, this.Name ); // the remains of ~1_NAME~ the militia fighter
list.Add( 1049318, Name ); // the remains of ~1_NAME~ the militia fighter
}
else
{
@ -109,7 +109,7 @@ namespace Server.Engines.Quests.Haven
public override void OnSingleClick( Mobile from )
{
int hue = Notoriety.GetHue( Server.Misc.NotorietyHandlers.CorpseNotoriety( from, this ) );
int hue = Notoriety.GetHue( Misc.NotorietyHandlers.CorpseNotoriety( from, this ) );
if ( ItemID == 0x2006 ) // Corpse form
from.Send( new MessageLocalized( Serial, ItemID, MessageType.Label, hue, 3, 1049318, "", Name ) ); // the remains of ~1_NAME~ the militia fighter
@ -119,7 +119,7 @@ namespace Server.Engines.Quests.Haven
public override void Open( Mobile from, bool checkSelfLoot )
{
if ( from.InRange( this.GetWorldLocation(), 2 ) )
if ( from.InRange( GetWorldLocation(), 2 ) )
{
from.SendLocalizedMessage( 1049661, "", 0x22 ); // Thinking about his sacrifice, you can't bring yourself to loot the body of this militia fighter.
}

View file

@ -326,9 +326,9 @@ namespace Server.Engines.Quests.Haven
}
else
{
weapon.DamageLevel = (WeaponDamageLevel)BaseCreature.RandomMinMaxScaled( 2, 4 );
weapon.AccuracyLevel = (WeaponAccuracyLevel)BaseCreature.RandomMinMaxScaled( 2, 4 );
weapon.DurabilityLevel = (WeaponDurabilityLevel)BaseCreature.RandomMinMaxScaled( 2, 4 );
weapon.DamageLevel = (WeaponDamageLevel)RandomMinMaxScaled( 2, 4 );
weapon.AccuracyLevel = (WeaponAccuracyLevel)RandomMinMaxScaled( 2, 4 );
weapon.DurabilityLevel = (WeaponDurabilityLevel)RandomMinMaxScaled( 2, 4 );
}
weapon.Slayer = SlayerName.Silver;

View file

@ -7,39 +7,39 @@ namespace Server.Engines.Quests.Haven
{
private static Type[] m_TypeReferenceTable = new[]
{
typeof( Haven.AcceptConversation ),
typeof( Haven.UzeraanTitheConversation ),
typeof( Haven.UzeraanFirstTaskConversation ),
typeof( Haven.UzeraanReportConversation ),
typeof( Haven.SchmendrickConversation ),
typeof( Haven.UzeraanScrollOfPowerConversation ),
typeof( Haven.DryadConversation ),
typeof( Haven.UzeraanFertileDirtConversation ),
typeof( Haven.UzeraanDaemonBloodConversation ),
typeof( Haven.UzeraanDaemonBoneConversation ),
typeof( Haven.BankerConversation ),
typeof( Haven.RadarConversation ),
typeof( Haven.LostScrollOfPowerConversation ),
typeof( Haven.LostFertileDirtConversation ),
typeof( Haven.DryadAppleConversation ),
typeof( Haven.LostDaemonBloodConversation ),
typeof( Haven.LostDaemonBoneConversation ),
typeof( Haven.FindUzeraanBeginObjective ),
typeof( Haven.TitheGoldObjective ),
typeof( Haven.FindUzeraanFirstTaskObjective ),
typeof( Haven.KillHordeMinionsObjective ),
typeof( Haven.FindUzeraanAboutReportObjective ),
typeof( Haven.FindSchmendrickObjective ),
typeof( Haven.FindApprenticeObjective ),
typeof( Haven.ReturnScrollOfPowerObjective ),
typeof( Haven.FindDryadObjective ),
typeof( Haven.ReturnFertileDirtObjective ),
typeof( Haven.GetDaemonBloodObjective ),
typeof( Haven.ReturnDaemonBloodObjective ),
typeof( Haven.GetDaemonBoneObjective ),
typeof( Haven.ReturnDaemonBoneObjective ),
typeof( Haven.CashBankCheckObjective ),
typeof( Haven.FewReagentsConversation )
typeof( AcceptConversation ),
typeof( UzeraanTitheConversation ),
typeof( UzeraanFirstTaskConversation ),
typeof( UzeraanReportConversation ),
typeof( SchmendrickConversation ),
typeof( UzeraanScrollOfPowerConversation ),
typeof( DryadConversation ),
typeof( UzeraanFertileDirtConversation ),
typeof( UzeraanDaemonBloodConversation ),
typeof( UzeraanDaemonBoneConversation ),
typeof( BankerConversation ),
typeof( RadarConversation ),
typeof( LostScrollOfPowerConversation ),
typeof( LostFertileDirtConversation ),
typeof( DryadAppleConversation ),
typeof( LostDaemonBloodConversation ),
typeof( LostDaemonBoneConversation ),
typeof( FindUzeraanBeginObjective ),
typeof( TitheGoldObjective ),
typeof( FindUzeraanFirstTaskObjective ),
typeof( KillHordeMinionsObjective ),
typeof( FindUzeraanAboutReportObjective ),
typeof( FindSchmendrickObjective ),
typeof( FindApprenticeObjective ),
typeof( ReturnScrollOfPowerObjective ),
typeof( FindDryadObjective ),
typeof( ReturnFertileDirtObjective ),
typeof( GetDaemonBloodObjective ),
typeof( ReturnDaemonBloodObjective ),
typeof( GetDaemonBoneObjective ),
typeof( ReturnDaemonBoneObjective ),
typeof( CashBankCheckObjective ),
typeof( FewReagentsConversation )
};
public override Type[] TypeReferenceTable => m_TypeReferenceTable;