protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { var recipeDroneControlStandard = Api.GetProtoEntity <RecipeDroneControlStandard>(); var recipeDroneControlAdvanced = Api.GetProtoEntity <RecipeDroneControlAdvanced>(); var recipeDroneIndustrialStandard = Api.GetProtoEntity <RecipeDroneIndustrialStandard>(); var recipeDroneIndustrialAdvanced = Api.GetProtoEntity <RecipeDroneIndustrialAdvanced>(); var protoItemRemoteControlStandard = Api.GetProtoEntity <ItemDroneControlStandard>(); // require crafting any drone control tasks.Add( TaskCraftRecipe.RequireStationRecipe( new List <Recipe.RecipeForStationCrafting>() { recipeDroneControlStandard, recipeDroneControlAdvanced }, count: 1, description: TaskCraftRecipe.AppendRecipeLocationIfNecessary( TaskCraftRecipe.DescriptionTitlePrefix + " " + recipeDroneControlStandard.Name, recipeDroneControlStandard)) .WithIcon(recipeDroneControlStandard.Icon)); // require crafting any drone (an item) tasks.Add( TaskCraftRecipe.RequireStationRecipe( new List <Recipe.RecipeForStationCrafting>() { recipeDroneIndustrialStandard, recipeDroneIndustrialAdvanced }, count: 1, description: TaskCraftRecipe.AppendRecipeLocationIfNecessary( TaskCraftRecipe.DescriptionTitlePrefix + " " + recipeDroneIndustrialStandard.Name, recipeDroneIndustrialStandard)) .WithIcon(recipeDroneIndustrialStandard.Icon)); // require using any drone item tasks.Add( TaskUseItem.Require( Api.FindProtoEntities <IProtoItemDroneControl>(), count: 1, description: string.Format(TaskUseItem.DescriptionFormat, protoItemRemoteControlStandard.Name)) .WithIcon(Api.GetProtoEntity <ItemDroneControlStandard>().Icon)); prerequisites .Add <QuestAdvancedResourcesAcquisition>(); hints .Add(HintDroneTasks) .Add(HintDroneControl) .Add(HintDroneUsage); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks.Add(TaskDestroy.Require <ObjectMineralGiantPragmiumSource>(count: 1));; prerequisites .Add <QuestMinePragmiumSource>(); }
protected override void PrepareAchievement(TasksList tasks) { foreach (var protoSkill in Api.FindProtoEntities <IProtoSkill>()) { tasks.Add(TaskHaveSkill.Require(protoSkill, minLevel: 1)); } }
protected override void PrepareAchievement(TasksList tasks) { foreach (var protoQuest in QuestsSystem.AllQuests) { tasks.Add(TaskCompleteQuest.Require(protoQuest)); } }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { var recipeMusket = Api.GetProtoEntity <RecipeMusket>(); var recipeFlintlockPistol = Api.GetProtoEntity <RecipeFlintlockPistol>(); tasks .Add(TaskBuildStructure.Require <ObjectWeaponWorkbench>()) .Add(TaskCraftRecipe.RequireStationRecipe <RecipeAmmoPaperCartridge>( description: CraftPaperCartridge)) .Add(TaskCraftRecipe.RequireStationRecipe( new List <Recipe.RecipeForStationCrafting>() { recipeMusket, recipeFlintlockPistol }, description: CraftMusketOrFlintlockPistol) .WithIcon(ClientItemIconHelper.CreateComposedIcon(this.ShortId, recipeFlintlockPistol.Icon, recipeMusket.Icon))) .Add(TaskUseItem.Require <IProtoItemWeaponRanged>( description: FireTheWeapon)); prerequisites .Add <QuestUseCrowbarAndDeconstructBuilding>(); }
protected override void PrepareAchievement(TasksList tasks) { tasks .Add(TaskCraftRecipe.RequireStationRecipe <RecipeAxeSteel>()) .Add(TaskCraftRecipe.RequireStationRecipe <RecipePickaxeSteel>()) .Add(TaskCraftRecipe.RequireStationRecipe <RecipeToolboxT3>()); }
protected override void PrepareAchievement(TasksList tasks) { tasks .Add(TaskKill.Require <MobMutantBoar>()) .Add(TaskKill.Require <MobMutantWolf>()) .Add(TaskKill.Require <MobMutantHyena>()); }
internal async System.Threading.Tasks.Task CreateTaskAsync() { if (NewTaskName == "") { ErrorMessage = "Please enter the new task's name"; } else if (TaskNameIsInUse()) { ErrorMessage = "That task name is already in use"; } else { var values = new Dictionary <string, string> { { "description", NewTaskName } }; var content = new FormUrlEncodedContent(values); var result = await Client.HttpClient.PostAsync("http://localhost:65177/api/Task/", content); if (result.StatusCode == HttpStatusCode.OK) { TasksList.Add(new Model.Task() { Description = NewTaskName }); } } }
protected override void PrepareAchievement(TasksList tasks) { foreach (var protoPlant in Api.FindProtoEntities <IProtoObjectPlant>()) { tasks.Add(TaskGather.Require(protoPlant)); } }
public void LoadTasks() { TasksList.Clear(); using (SqlCommand cmd = new SqlCommand("get_tasks_by_date", Conn)) { cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@dt", ChosenDate); Conn.Open(); SqlDataReader reader = cmd.ExecuteReader(); if (reader.HasRows) { while (reader.Read()) { var task = new TaskModel(); task.Id = Convert.ToInt32(reader["id"]); task.Content = reader["content"].ToString(); task.IsDone = Convert.ToBoolean(reader["is_done"]); task.Date = Convert.ToDateTime(reader["dt"]).Date; TasksList.Add(task); } } reader.Close(); Conn.Close(); } Change_TasksState(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskDestroy.Require <IProtoObjectTree>(count: 3, description: this.Name)); prerequisites .Add <QuestCraftAnAxe>(); }
protected override void PrepareAchievement(TasksList tasks) { tasks .Add(TaskGather.Require <ObjectSmallHerbGreen>()) .Add(TaskGather.Require <ObjectSmallHerbRed>()) .Add(TaskGather.Require <ObjectSmallHerbPurple>()) .Add(TaskGather.Require <ObjectSmallHerbBlue>()); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskCraftRecipe.RequireHandRecipe <RecipePickaxeStone>()); prerequisites .Add <QuestChopDownATree>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskKill.Require <MobAngryPangolin>(count: 10)); prerequisites .Add <QuestMasterHunter6>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks.Add(TaskDestroy.Require <ObjectMineralPragmiumSource>(count: 5));; prerequisites .Add <QuestMineMoreMineralsStage3>() .Add <QuestAcquirePragmium>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskKill.Require <MobColdBear>(count: 1)); prerequisites .Add <QuestKillAngryPangolins>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskBuildStructure.Require <ObjectCampfire>()); prerequisites .Add <QuestCraftAToolbox>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskCraftRecipe.RequireHandRecipe <RecipeTorch>()) .Add(TaskUseItem.Require <ItemTorch>()); prerequisites .Add <QuestMineAnyMineral>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskKill.Require <MobPragmiumBear>(count: 5)) .Add(TaskKill.Require <MobLargePragmiumBear>(count: 1)); prerequisites .Add <QuestMasterHunter6>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskHaveTechNode.Require <TechNodeWorkbench>()) .Add(TaskBuildStructure.Require <ObjectWorkbench>()); prerequisites .Add <QuestBuildABedroll>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskBuildStructure.Require <ObjectBedroll>(isSharedWithPartyAndFactionMembers: false)); prerequisites .Add <QuestCraftATorch>() .Add <QuestSecureBasicWaterSource>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskGather.Require <ObjectBushWaterbulb>(count: 3, TaskGatherWaterbulbFruit)) .Add(TaskUseItem.Require <ItemWaterbulb>()); prerequisites .Add <QuestCookAnyFood>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskSortItemsContainer.Require) .Add(TaskRun.Require); prerequisites .Add <QuestUnlockAndBuildWorkbench>(); }
private void ReloadTasks(List <Models.Task> tasks) { tasks = tasks.Where(t => t.StateId != Constant.Finalizar).ToList(); TasksList.Clear(); foreach (var task in tasks) { TasksList.Add(task.Cast <TaskItemViewModel>()); } }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskCraftRecipe.RequireHandRecipe <RecipeRope>()) .Add(TaskCraftRecipe.RequireHandRecipe <RecipeAxeStone>()); prerequisites .Add <QuestGatherResources>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskHaveTechNode.Require <TechNodeFridgeEvaporator>()) .Add(TaskBuildStructure.Require <ObjectFridgeEvaporator>()); prerequisites .Add <QuestBuildMulchboxAndCraftWateringCan>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { var listMinerals = Api.FindProtoEntities <IProtoObjectMineral>(); tasks.Add(TaskDestroy.Require(list: listMinerals, count: 2000, description: this.Name)); prerequisites .Add <QuestMineMoreMineralsStage3>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskHaveSkills.RequireAny(count: 4, minLevel: 1, description: TaskUnlockAnyCharacterSkills)); prerequisites .Add <QuestCollectHerbsAndCraftMedicine>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskCraftRecipe.RequireStationRecipe <RecipeCrowbar>()) .Add(TaskDeconstructStructure.Require <IProtoObjectStructure>( description: this.Name)); prerequisites .Add <QuestCraftIronTools>(); }
protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints) { tasks .Add(TaskVisitTile.Require <TileSwamp>()) .Add(TaskVisitTile.Require <TileVolcanic>()); prerequisites .Add <QuestFastTravel>() .Add <QuestFishing>(); }