public Test_QuestTwo() { QuestID = "QST_test02"; Title = "Second Test Quest"; Description = "This is the second test quest. Use the test elevator!"; Repeatable = false; RequiredLevel = 1; RequiredQuests.Add("QST_test01"); EndNPCID = "npc_type_questnpc"; QuestStage firstStage = new QuestStage(); firstStage.Objectives.Add(new QuestObjective() { Type = QST_OBJ_TYPE.OBJECT_INTERACT, RequiredProgress = 1, TargetList = new List <string>() { "321" } }); Stages.Add(firstStage); }
/// <summary> /// Checks if the <paramref name="character"/> meets this test requirement. /// </summary> /// <param name="character">The character to check if they meet the requirements.</param> /// <returns>True if the <paramref name="character"/> meets the requirements defined by this /// <see cref="IQuestRequirement{TCharacter}"/>; otherwise false.</returns> public bool HasRequirements(User character) { return(RequiredQuests.All(character.HasCompletedQuest)); }