Skip to content

Commit

Permalink
feat(bikeshedder): Add stair highlight in Sunrise Palace (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada authored Oct 2, 2024
1 parent 65dcf5c commit 1d56cf4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import net.runelite.api.ItemID;
import net.runelite.api.NpcID;
import net.runelite.api.NullObjectID;
import net.runelite.api.ObjectID;
import net.runelite.api.coords.WorldPoint;
import net.runelite.api.widgets.ComponentID;
import java.util.ArrayList;
Expand Down Expand Up @@ -74,6 +75,8 @@ public class BikeShedder extends BasicQuestHelper
private WidgetTextRequirement lookAtCooksAssistantRequirement;
private DetailedQuestStep lookAtCooksAssistant;
private WidgetTextRequirement lookAtCooksAssistantTextRequirement;
private ZoneRequirement byStaircaseInSunrisePalace;
private ObjectStep goDownstairsInSunrisePalace;

@Override
public Map<Integer, QuestStep> loadSteps()
Expand All @@ -82,6 +85,7 @@ public Map<Integer, QuestStep> loadSteps()
var outsideLumbridge = new ZoneRequirement(false, lumbridge);
moveToLumbridge.setHighlightZone(lumbridge);
var steps = new ConditionalStep(this, confuseHans);
steps.addStep(byStaircaseInSunrisePalace, goDownstairsInSunrisePalace);
steps.addStep(outsideLumbridge, moveToLumbridge);
steps.addStep(new ZoneRequirement(new WorldPoint(3222, 3218, 0)), equipLightbearer);
steps.addStep(new ZoneRequirement(new WorldPoint(3223, 3218, 0)), useLogOnBush);
Expand Down Expand Up @@ -143,6 +147,10 @@ protected void setupRequirements()
lookAtCooksAssistantTextRequirement = new WidgetTextRequirement(ComponentID.DIARY_TEXT, true, "he now lets me use his high quality range");
lookAtCooksAssistantTextRequirement.setDisplayText("Cook's Assistant quest journal open & received reward (checking text)");
lookAtCooksAssistant = new DetailedQuestStep(this, "Open the Cook's Assistant quest journal. You must have started the quest for this test to work.", lookAtCooksAssistantRequirement, lookAtCooksAssistantTextRequirement);

var upstairsInSunrisePalace = new Zone(new WorldPoint(1684, 3162, 1), new WorldPoint(1691, 3168, 1));
byStaircaseInSunrisePalace = new ZoneRequirement(upstairsInSunrisePalace);
goDownstairsInSunrisePalace = new ObjectStep(getQuest().getQuestHelper(), ObjectID.STAIRCASE_52627, new WorldPoint(1690, 3164, 1), "Climb downstairs, ensure stairs are well highlighted!");
}

@Override
Expand All @@ -157,6 +165,7 @@ public List<PanelDetails> getPanels()
panels.add(new PanelDetails("Use coins on mysterious bush", List.of(useCoinOnBush, useManyCoinsOnBush), List.of(oneCoin, manyCoins)));
panels.add(new PanelDetails("Conditional requirement", List.of(conditionalRequirementLookAtCoins), List.of(conditionalRequirementCoins, conditionalRequirementGoldBar)));
panels.add(new PanelDetails("Quest state", List.of(lookAtCooksAssistant), List.of(lookAtCooksAssistantRequirement, lookAtCooksAssistantTextRequirement)));
panels.add(new PanelDetails("Ensure staircase upstairs in Sunrise Palace is highlighted", List.of(goDownstairsInSunrisePalace), List.of()));

return panels;
}
Expand Down

0 comments on commit 1d56cf4

Please sign in to comment.