From f87c3023c316cb7a6f461169b8972facb3d292dd Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Tue, 26 Sep 2023 01:10:24 +0200 Subject: [PATCH] Add recommended items --- .../ThePathOfGlouphrie.java | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/questhelper/helpers/quests/thepathofglouphrie/ThePathOfGlouphrie.java b/src/main/java/com/questhelper/helpers/quests/thepathofglouphrie/ThePathOfGlouphrie.java index 6838f86ad7..6b666e8bf7 100644 --- a/src/main/java/com/questhelper/helpers/quests/thepathofglouphrie/ThePathOfGlouphrie.java +++ b/src/main/java/com/questhelper/helpers/quests/thepathofglouphrie/ThePathOfGlouphrie.java @@ -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; @@ -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 loadSteps() { @@ -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() @@ -134,9 +154,15 @@ public List getItemRequirements() } @Override - public ArrayList getItemRecommended() + public List getItemRecommended() { - return new ArrayList<>(Arrays.asList()); + return Arrays.asList( + earmuffsOrSlayerHelmet, + royalSeedPod, + tpToSpiritTree, + fairyRing, + runRestoreItems + ); } @Override