Skip to content

Commit

Permalink
Add recommended items
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Sep 25, 2023
1 parent cdfa48f commit f87c302
Showing 1 changed file with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import com.questhelper.requirements.Requirement;
import com.questhelper.requirements.ZoneRequirement;
import com.questhelper.requirements.item.ItemRequirement;
import com.questhelper.requirements.item.TeleportItemRequirement;
import com.questhelper.requirements.player.SkillRequirement;
import com.questhelper.requirements.quest.QuestRequirement;
import com.questhelper.steps.ConditionalStep;
Expand Down Expand Up @@ -66,6 +67,13 @@ public class ThePathOfGlouphrie extends BasicQuestHelper
private ItemRequirement combatGear;
private ItemRequirement food;

/// Recommended items
private ItemRequirement earmuffsOrSlayerHelmet;
private TeleportItemRequirement royalSeedPod;
private TeleportItemRequirement tpToSpiritTree;
private TeleportItemRequirement fairyRing;
private ItemRequirement runRestoreItems;

@Override
public Map<Integer, QuestStep> loadSteps()
{
Expand Down Expand Up @@ -98,6 +106,18 @@ public void setupItemRequirements()
combatGear = new ItemRequirement("Combat equipment", -1, -1).isNotConsumed();
combatGear.setDisplayItemId(BankSlotIcons.getCombatGear());
food = new ItemRequirement("Food", ItemCollections.GOOD_EATING_FOOD, -1);

// Recommended items
var lumbridgeEliteComplete = new QuestRequirement(QuestHelperQuest.LUMBRIDGE_ELITE, QuestState.FINISHED);
earmuffsOrSlayerHelmet = new ItemRequirement("Earmuffs or a Slayer helmet", ItemCollections.EAR_PROTECTION, 1, true).highlighted();
// TODO: Change this to a "TP to the grand tree"
royalSeedPod = new TeleportItemRequirement("Royal seed pod", ItemID.ROYAL_SEED_POD, 1);
// TODO: Fix quantity
tpToSpiritTree = new TeleportItemRequirement("Teleport to nearby Spirit Tree", ItemID.VARROCK_TELEPORT, -1);
fairyRing = new TeleportItemRequirement("Dramen staff", ItemCollections.FAIRY_STAFF, 1);
fairyRing.setConditionToHide(lumbridgeEliteComplete);
runRestoreItems = new ItemRequirement("Several run restore items", ItemCollections.RUN_RESTORE_ITEMS, -1);
// TODO: recommend the toad legs to get a mint cake?
}

public void setupZones()
Expand Down Expand Up @@ -134,9 +154,15 @@ public List<ItemRequirement> getItemRequirements()
}

@Override
public ArrayList<ItemRequirement> getItemRecommended()
public List<ItemRequirement> getItemRecommended()
{
return new ArrayList<>(Arrays.asList());
return Arrays.asList(
earmuffsOrSlayerHelmet,
royalSeedPod,
tpToSpiritTree,
fairyRing,
runRestoreItems
);
}

@Override
Expand Down

0 comments on commit f87c302

Please sign in to comment.