Skip to content

Commit

Permalink
Add BlightHarvest method and integrate into RobinasHarvestMerge
Browse files Browse the repository at this point in the history
  • Loading branch information
PUNK3DAF committed Nov 8, 2024
1 parent e69585e commit 254261c
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 4 deletions.
26 changes: 26 additions & 0 deletions Seasonal/HarvestDay/18BlightHarvest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
name: Blight Harvest Story
description: This will finish the Blight Harvest storyline.
tags: blightharvest,blight harvest, seasonal, harvest-day,blight,harvest
*/
//cs_include Scripts/CoreBots.cs
//cs_include Scripts/CoreStory.cs
//cs_include Scripts/Seasonal/HarvestDay/CoreHarvestDay.cs
using Skua.Core.Interfaces;

public class BlightHarvest
{
public IScriptInterface Bot => IScriptInterface.Instance;
private CoreBots Core => CoreBots.Instance;
public CoreStory Story = new();
public CoreHarvestDay HarvestDay = new();

public void ScriptMain(IScriptInterface bot)
{
Core.SetOptions();

HarvestDay.BlightHarvest();

Core.SetOptions(false);
}
}
94 changes: 93 additions & 1 deletion Seasonal/HarvestDay/CoreHarvestDay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public void DoAll()
EpilTakeOver();
BirdsWithHarms();
EbilCorpHQ();
BlightHarvest();
}
else
{
Expand Down Expand Up @@ -90,7 +91,7 @@ public void Harvest()
//Whine n' Cheese (134)
if (!Story.QuestProgression(134))
{
Core.EnsureAcceptmultiple(false, new[ ]{134, 423});
Core.EnsureAcceptmultiple(false, new[] { 134, 423 });
Core.HuntMonster("harvest", "Grapes of Wrath", "Whine", 8, log: false);
Core.EnsureComplete(423);
Core.EnsureComplete(134);
Expand Down Expand Up @@ -778,4 +779,95 @@ public void EbilCorpHQ()
Story.KillQuest(8407, "ebilcorphq", "Master Chairman");
}

public void BlightHarvest()
{
if (Core.isCompletedBefore(9481) || !Core.isSeasonalMapActive("blightharvest"))
return;

Story.PreLoad(this);

#region Useable Monsters
string[] UseableMonsters = new[]
{
"Cursed Corn", // UseableMonsters[0],
"Tantalocust", // UseableMonsters[1],
"Scales of Greed", // UseableMonsters[2],
"Fear Gorta", // UseableMonsters[3],
"Famine", // UseableMonsters[4]
};
#endregion Useable Monsters

// 9472 | Bug Blight
if (!Story.QuestProgression(9472))
{
Story.KillQuest(9472, "blightharvest", UseableMonsters[0]);
Story.MapItemQuest(9472, "blightharvest", 12334);
}


// 9473 | Struggle Soup
if (!Story.QuestProgression(9473))
{
Story.KillQuest(9473, "blightharvest", UseableMonsters[1]);
Story.MapItemQuest(9473, "blightharvest", 12335);
}


// 9474 | Fetid Feast
if (!Story.QuestProgression(9474))
{
Story.KillQuest(9474, "blightharvest", new[] { UseableMonsters[0], UseableMonsters[1] });
Story.MapItemQuest(9474, "blightharvest", 12336, 3);
}


// 9475 | Dire Disparity
Story.MapItemQuest(9475, "blightharvest", new[] { 12337, 12338 });


// 9476 | Balancing Crumbs
if (!Story.QuestProgression(9476))
{
Core.HuntMonsterQuest(9476,
("blightharvest", UseableMonsters[2], ClassType.Solo));
}


// 9477 | Harrowing Hike
if (!Story.QuestProgression(9477))
{
Story.KillQuest(9477, "blightharvest", UseableMonsters[3]);
Story.MapItemQuest(9477, "blightharvest", 12339);
}


// 9478 | Down the Grapevine
Story.MapItemQuest(9478, "blightharvest", new[] { 12340, 12341 });


// 9479 | Hungry Hive
if (!Story.QuestProgression(9479))
{
Core.HuntMonsterQuest(9479, "blightharvest", UseableMonsters[1]);
}


// 9480 | Acrid Abundance
if (!Story.QuestProgression(9480))
{

Story.KillQuest(9480, "blightharvest", new[] { UseableMonsters[1], UseableMonsters[3] });
Story.MapItemQuest(9480, "blightharvest", 12342);
}


// 9481 | Keeper of the Scales
if (!Story.QuestProgression(9481))
{
Core.HuntMonsterQuest(9481,
("blightharvest", UseableMonsters[4], ClassType.Solo));
}
}


}
7 changes: 4 additions & 3 deletions Seasonal/HarvestDay/MergeShops/RobinasHarvestMerge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//cs_include Scripts/CoreBots.cs
//cs_include Scripts/CoreFarms.cs
//cs_include Scripts/CoreAdvanced.cs
//cs_include Scripts/CoreStory.cs
//cs_include Scripts/Seasonal\HarvestDay\CoreHarvestDay.cs
using Skua.Core.Interfaces;
using Skua.Core.Models.Items;
using Skua.Core.Options;
Expand All @@ -17,6 +19,7 @@ public class RobinasHarvestMerge
private CoreFarms Farm = new();
private CoreAdvanced Adv = new();
private static CoreAdvanced sAdv = new();
private CoreHarvestDay CHD = new();

public List<IOption> Generic = sAdv.MergeOptions;
public string[] MultiOptions = { "Generic", "Select" };
Expand All @@ -36,9 +39,7 @@ public void ScriptMain(IScriptInterface Bot)

public void BuyAllMerge(string? buyOnlyThis = null, mergeOptionsEnum? buyMode = null)
{
/* @bogi insert story here
>>>>> ---- <<<<<<<<
*/
CHD.BlightHarvest();

//Only edit the map and shopID here
Adv.StartBuyAllMerge("blightharvest", 2366, findIngredients, buyOnlyThis, buyMode: buyMode);
Expand Down

0 comments on commit 254261c

Please sign in to comment.