Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -23,7 +23,7 @@ namespace Server.Engines.MLQuests
public static readonly List<MLQuest> EmptyList = new List<MLQuest>();
private static List<MLQuest> m_EligiblePool = new List<MLQuest>();
private static readonly List<MLQuest> m_EligiblePool = new List<MLQuest>();
static MLQuestSystem()
{
@ -96,11 +96,11 @@ namespace Server.Engines.MLQuests
public static bool Enabled => Core.ML;
public static Dictionary<Type, MLQuest> Quests{ get; }
public static Dictionary<Type, MLQuest> Quests { get; }
public static Dictionary<Type, List<MLQuest>> QuestGivers{ get; }
public static Dictionary<Type, List<MLQuest>> QuestGivers { get; }
public static Dictionary<PlayerMobile, MLQuestContext> Contexts{ get; }
public static Dictionary<PlayerMobile, MLQuestContext> Contexts { get; }
private static void Register(Type type, MLQuest quest)
{
@ -266,7 +266,7 @@ namespace Server.Engines.MLQuests
MLQuestInstance instance = context.FindInstance(questEntry);
if (instance != null && (instance.Quester == quester ||
!questEntry.IsEscort && instance.QuesterType == questerType))
(!questEntry.IsEscort && instance.QuesterType == questerType)))
{
entry = instance;
quest = questEntry;
@ -460,8 +460,8 @@ namespace Server.Engines.MLQuests
MLQuestInstance instance = instances[i];
// Do NOT skip quests on ClaimReward, because the quester still needs the quest ref!
//if ( instance.ClaimReward )
// continue;
// if (instance.ClaimReward)
// continue;
foreach (BaseObjectiveInstance objective in instance.Objectives)
// Note: On OSI, expired deliveries can still be completed. Bug?