Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 • committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -44,7 +44,7 @@ namespace Server.Engines.Quests.Ninja
typeof( Ninja.GiveEminoSwordObjective )
};
public override Type[] TypeReferenceTable{ get{ return m_TypeReferenceTable; } }
public override Type[] TypeReferenceTable => m_TypeReferenceTable;
public override object Name
{
@ -64,10 +64,10 @@ namespace Server.Engines.Quests.Ninja
}
}
public override TimeSpan RestartDelay{ get{ return TimeSpan.MaxValue; } }
public override TimeSpan RestartDelay => TimeSpan.MaxValue;
public override bool IsTutorial => true;
public override int Picture{ get{ return 0x15D5; } }
public override int Picture => 0x15D5;
public EminosUndertakingQuest( PlayerMobile from ) : base( from )
{

View file

@ -6,14 +6,14 @@ namespace Server.Engines.Quests.Ninja
{
public class BlueNinjaQuestTeleporter : DynamicTeleporter
{
public override int LabelNumber{ get{ return 1026157; } } // teleporter
public override int LabelNumber => 1026157; // teleporter
[Constructible]
public BlueNinjaQuestTeleporter() : base( 0x51C, 0x2 )
{
}
public override int NotWorkingMessage{ get{ return 1063198; } } // You stand on the strange floor tile but nothing happens.
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
public override bool GetDestination( PlayerMobile player, ref Point3D loc, ref Map map )
{
@ -48,4 +48,4 @@ namespace Server.Engines.Quests.Ninja
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,7 +6,7 @@ namespace Server.Engines.Quests.Ninja
{
public class EminosKatana : QuestItem
{
public override int LabelNumber{ get{ return 1063214; } } // Daimyo Emino's Katana
public override int LabelNumber => 1063214; // Daimyo Emino's Katana
[Constructible]
public EminosKatana() : base( 0x13FF )
@ -45,4 +45,4 @@ namespace Server.Engines.Quests.Ninja
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -6,14 +6,14 @@ namespace Server.Engines.Quests.Ninja
{
public class GreenNinjaQuestTeleporter : DynamicTeleporter
{
public override int LabelNumber{ get{ return 1026157; } } // teleporter
public override int LabelNumber => 1026157; // teleporter
[Constructible]
public GreenNinjaQuestTeleporter() : base( 0x51C, 0x17E )
{
}
public override int NotWorkingMessage{ get{ return 1063198; } } // You stand on the strange floor tile but nothing happens.
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
public override bool GetDestination( PlayerMobile player, ref Point3D loc, ref Map map )
{
@ -48,4 +48,4 @@ namespace Server.Engines.Quests.Ninja
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,7 +7,7 @@ namespace Server.Engines.Quests.Ninja
{
public class NoteForZoel : QuestItem
{
public override int LabelNumber{ get{ return 1063186; } } // A Note for Zoel
public override int LabelNumber => 1063186; // A Note for Zoel
[Constructible]
public NoteForZoel() : base( 0x14EF )
@ -45,4 +45,4 @@ namespace Server.Engines.Quests.Ninja
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,14 +6,14 @@ namespace Server.Engines.Quests.Ninja
{
public class WhiteNinjaQuestTeleporter : DynamicTeleporter
{
public override int LabelNumber{ get{ return 1026157; } } // teleporter
public override int LabelNumber => 1026157; // teleporter
[Constructible]
public WhiteNinjaQuestTeleporter() : base( 0x51C, 0x47E )
{
}
public override int NotWorkingMessage{ get{ return 1063198; } } // You stand on the strange floor tile but nothing happens.
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
public override bool GetDestination( PlayerMobile player, ref Point3D loc, ref Map map )
{
@ -56,4 +56,4 @@ namespace Server.Engines.Quests.Ninja
int version = reader.ReadInt();
}
}
}
}

View file

@ -30,7 +30,7 @@ namespace Server.Engines.Quests.Ninja
AddItem( new ThighBoots() );
}
public override int TalkNumber{ get{ return -1; } }
public override int TalkNumber => -1;
public override void OnTalk( PlayerMobile player, bool contextMenu )
{

View file

@ -10,7 +10,7 @@ namespace Server.Engines.Quests.Ninja
{
public static int[] Messages = new int[]
{
1063191, // They won’t find me here.
1063191, // They won<EFBFBD>t find me here.
1063192 // Ah, a quiet hideout.
};
@ -64,7 +64,7 @@ namespace Server.Engines.Quests.Ninja
return 3;
}
public override int TalkNumber{ get{ return -1; } }
public override int TalkNumber => -1;
public override void OnTalk( PlayerMobile player, bool contextMenu )
{
@ -93,4 +93,4 @@ namespace Server.Engines.Quests.Ninja
m_Message = reader.ReadInt();
}
}
}
}

View file

@ -34,7 +34,7 @@ namespace Server.Engines.Quests.Ninja
AddItem( new FloppyHat() );
}
public override int TalkNumber{ get{ return -1; } }
public override int TalkNumber => -1;
public override void OnTalk( PlayerMobile player, bool contextMenu )
{

View file

@ -80,7 +80,7 @@ namespace Server.Engines.Quests.Ninja
public bool TaughtHowToUseSkills
{
get{ return m_TaughtHowToUseSkills; }
get{ return m_TaughtHowToUseSkills; }
set{ m_TaughtHowToUseSkills = value; }
}
@ -152,8 +152,8 @@ namespace Server.Engines.Quests.Ninja
{
get
{
/* Bring the note to Elite Ninja Zoel and speak with him again.
* He is near the cave entrance. You can hand the note to Zoel
/* Bring the note to Elite Ninja Zoel and speak with him again.
* He is near the cave entrance. You can hand the note to Zoel
* by dragging it and dropping it on his body.
*/
return 1063185;
@ -208,7 +208,7 @@ namespace Server.Engines.Quests.Ninja
{
get
{
// Go back through the blue teleporter and tell Daimyo Emino what you’ve overheard.
// Go back through the blue teleporter and tell Daimyo Emino what you<EFBFBD>ve overheard.
return 1063197;
}
}
@ -229,9 +229,9 @@ namespace Server.Engines.Quests.Ninja
{
get
{
/* Take the white teleporter and check the chests for the sword.
* Leave everything else behind. Avoid damage from traps you may
* encounter. To use a potion, make sure at least one hand is
/* Take the white teleporter and check the chests for the sword.
* Leave everything else behind. Avoid damage from traps you may
* encounter. To use a potion, make sure at least one hand is
* free and double click on the bottle.
*/
return 1063200;
@ -262,8 +262,8 @@ namespace Server.Engines.Quests.Ninja
{
get
{
/* Walk through the hallway being careful
* to avoid the traps. You may be able to
/* Walk through the hallway being careful
* to avoid the traps. You may be able to
* time the traps to avoid injury.
*/
return 1063202;
@ -338,7 +338,7 @@ namespace Server.Engines.Quests.Ninja
{
}
public override int MaxProgress{ get{ return 3; } }
public override int MaxProgress => 3;
public override void RenderProgress( BaseQuestGump gump )
{
@ -390,4 +390,4 @@ namespace Server.Engines.Quests.Ninja
{
}
}
}
}