Exemple #1
0
        protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints)
        {
            tasks
            .Add(TaskDestroy.Require <ObjectMineralPragmiumSource>(count: 1))
            .Add(TaskDestroy.Require <ObjectMineralPragmiumNode>(count: 5))
            .Add(TaskHaveItem.Require <ItemOrePragmium>(count: 10, isReversible: false));

            prerequisites
            .Add <QuestCompleteTier2Technologies>();
        }
Exemple #2
0
        protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints)
        {
            tasks
            .Add(TaskHaveTechNode.Require <TechNodeFloorLampOil>())
            .Add(TaskHaveTechNode.Require <TechNodeOilLamp>())
            .Add(TaskBuildStructure.Require <ObjectLightFloorLampOil>())
            .Add(TaskUseItem.Require <ItemOilLamp>(count: 1))
            .Add(TaskHaveItem.Require <ItemCampFuel>(count: 1, isReversible: false));

            prerequisites
            .Add <QuestBuildEvaporativeFridge>();
        }
        protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints)
        {
            tasks
            .Add(TaskHaveTechNode.Require <TechNodeHerbalRemedy>())
            .Add(TaskHaveItem.Require <ItemHerbGreen>(count: 2, isReversible: false))
            .Add(TaskHaveItem.Require <ItemMushroomRust>(count: 1, isReversible: false))
            .Add(TaskHaveItem.Require <ItemWaterbulb>(count: 1, isReversible: false))
            .Add(TaskCraftRecipe.RequireStationRecipe <RecipeHerbalRemedy>());

            prerequisites
            .Add <QuestLearnBasicBuilding>()
            .Add <QuestFindAndUseGreenHerb>();
        }
Exemple #4
0
        protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints)
        {
            var iconHerbGreen = Api.IsClient
                                    ? Api.GetProtoEntity <ObjectSmallHerbGreen>().Icon
                                    : null;

            tasks
            .Add(TaskHaveItem.Require <ItemHerbGreen>(count: 1, isReversible: false)
                 .WithIcon(iconHerbGreen))
            .Add(TaskUseItem.Require <ItemHerbGreen>(count: 1));

            prerequisites
            .Add <QuestCraftAKnifeAndKillAnyCreature>();
        }
        protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints)
        {
            ITextureResource iconGrass = null,
                             iconTwigs = null,
                             iconStone = null;

            if (IsClient)
            {
                iconGrass = Api.GetProtoEntity <ObjectLootGrass>().Icon;
                iconTwigs = Api.GetProtoEntity <ObjectLootTwigs>().Icon;
                iconStone = Api.GetProtoEntity <ObjectLootStone>().Icon;
            }

            tasks
            .Add(TaskHaveItem.Require <ItemFibers>(count: 10).WithIcon(iconGrass))
            .Add(TaskHaveItem.Require <ItemTwigs>(count: 10).WithIcon(iconTwigs))
            .Add(TaskHaveItem.Require <ItemStone>(count: 10).WithIcon(iconStone));
        }
        protected override void PrepareQuest(QuestsList prerequisites, TasksList tasks, HintsList hints)
        {
            var protoItemOilLamp           = GetProtoEntity <ItemOilLamp>();
            var protoItemBraidedHelmetLamp = GetProtoEntity <ItemBraidedHelmetLamp>();

            tasks
            .Add(TaskHaveTechNode.Require <TechNodeFloorLampOil>())
            .Add(TaskHaveTechNode.Require <TechNodeOilLamp>())
            .Add(TaskBuildStructure.Require <ObjectLightFloorLampOil>())
            .Add(TaskUseItem.Require(new IProtoItem[]
            {
                protoItemOilLamp,
                protoItemBraidedHelmetLamp
            },
                                     count: 1,
                                     description: string.Format(TaskUseItem.DescriptionFormat,
                                                                protoItemOilLamp.Name)))
            .Add(TaskHaveItem.Require <ItemCampFuel>(count: 1, isReversible: false));

            prerequisites
            .Add <QuestBuildEvaporativeFridge>();
        }