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

@ -7,39 +7,39 @@ namespace Server.Engines.Quests.Ninja
{
private static Type[] m_TypeReferenceTable = new[]
{
typeof( Ninja.AcceptConversation ),
typeof( Ninja.FindZoelConversation ),
typeof( Ninja.RadarConversation ),
typeof( Ninja.EnterCaveConversation ),
typeof( Ninja.SneakPastGuardiansConversation ),
typeof( Ninja.NeedToHideConversation ),
typeof( Ninja.UseTeleporterConversation ),
typeof( Ninja.GiveZoelNoteConversation ),
typeof( Ninja.LostNoteConversation ),
typeof( Ninja.GainInnInformationConversation ),
typeof( Ninja.ReturnFromInnConversation ),
typeof( Ninja.SearchForSwordConversation ),
typeof( Ninja.HallwayWalkConversation ),
typeof( Ninja.ReturnSwordConversation ),
typeof( Ninja.SlayHenchmenConversation ),
typeof( Ninja.ContinueSlayHenchmenConversation ),
typeof( Ninja.GiveEminoSwordConversation ),
typeof( Ninja.LostSwordConversation ),
typeof( Ninja.EarnGiftsConversation ),
typeof( Ninja.EarnLessGiftsConversation ),
typeof( Ninja.FindEminoBeginObjective ),
typeof( Ninja.FindZoelObjective ),
typeof( Ninja.EnterCaveObjective ),
typeof( Ninja.SneakPastGuardiansObjective ),
typeof( Ninja.UseTeleporterObjective ),
typeof( Ninja.GiveZoelNoteObjective ),
typeof( Ninja.GainInnInformationObjective ),
typeof( Ninja.ReturnFromInnObjective ),
typeof( Ninja.SearchForSwordObjective ),
typeof( Ninja.HallwayWalkObjective ),
typeof( Ninja.ReturnSwordObjective ),
typeof( Ninja.SlayHenchmenObjective ),
typeof( Ninja.GiveEminoSwordObjective )
typeof( AcceptConversation ),
typeof( FindZoelConversation ),
typeof( RadarConversation ),
typeof( EnterCaveConversation ),
typeof( SneakPastGuardiansConversation ),
typeof( NeedToHideConversation ),
typeof( UseTeleporterConversation ),
typeof( GiveZoelNoteConversation ),
typeof( LostNoteConversation ),
typeof( GainInnInformationConversation ),
typeof( ReturnFromInnConversation ),
typeof( SearchForSwordConversation ),
typeof( HallwayWalkConversation ),
typeof( ReturnSwordConversation ),
typeof( SlayHenchmenConversation ),
typeof( ContinueSlayHenchmenConversation ),
typeof( GiveEminoSwordConversation ),
typeof( LostSwordConversation ),
typeof( EarnGiftsConversation ),
typeof( EarnLessGiftsConversation ),
typeof( FindEminoBeginObjective ),
typeof( FindZoelObjective ),
typeof( EnterCaveObjective ),
typeof( SneakPastGuardiansObjective ),
typeof( UseTeleporterObjective ),
typeof( GiveZoelNoteObjective ),
typeof( GainInnInformationObjective ),
typeof( ReturnFromInnObjective ),
typeof( SearchForSwordObjective ),
typeof( HallwayWalkObjective ),
typeof( ReturnSwordObjective ),
typeof( SlayHenchmenObjective ),
typeof( GiveEminoSwordObjective )
};
public override Type[] TypeReferenceTable => m_TypeReferenceTable;

View file

@ -23,8 +23,8 @@ namespace Server.Engines.Quests.Ninja
private void GenerateTreasure()
{
for ( int i = this.Items.Count - 1; i >= 0; i-- )
this.Items[i].Delete();
for ( int i = Items.Count - 1; i >= 0; i-- )
Items[i].Delete();
for ( int i = 0; i < 75; i++ )
{

View file

@ -17,7 +17,7 @@ namespace Server.Engines.Quests.Ninja
return true;
// If the mobile is to the north of the barrier, allow him to pass
if ( this.Y >= m.Y )
if ( Y >= m.Y )
return true;
if ( m is BaseCreature creature )
@ -25,7 +25,7 @@ namespace Server.Engines.Quests.Ninja
Mobile master = creature.GetMaster();
// Allow creatures to cross from the south to the north only if their master is near to the north
return master != null && this.Y >= master.Y && master.InRange(this, 4);
return master != null && Y >= master.Y && master.InRange(this, 4);
}
if ( m is PlayerMobile pm )