Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Sep 30, 2023
1 parent 62b11a4 commit 81e10c6
Show file tree
Hide file tree
Showing 3 changed files with 385 additions and 109 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
package com.questhelper.helpers.quests.thepathofglouphrie;

import com.questhelper.requirements.Requirement;
import com.questhelper.requirements.item.ItemRequirement;
import com.questhelper.requirements.item.ItemRequirements;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import lombok.NonNull;
import net.runelite.api.Client;
import net.runelite.api.Item;

public class Solution
{
@NonNull
public ArrayList<Requirement> puzzleNeeds = new ArrayList<>();
public ItemRequirement puzzle1Requirement;
public ItemRequirement puzzle2UpperRequirement;
public ItemRequirement puzzle2LowerRequirement;
Expand All @@ -27,6 +31,8 @@ public void load(Client client, List<Item> items, int puzzle1SolutionValue, int

if (!puzzle1Requirement.check(client, false, items))
{
puzzleNeeds.clear();
puzzleNeeds.add(puzzle1Requirement);
return;
}

Expand All @@ -51,6 +57,8 @@ public void load(Client client, List<Item> items, int puzzle1SolutionValue, int
}
}

puzzleNeeds.clear();

// solve puzzle 2
var possiblePuzzle2Solutions = valueToDoubleDiscRequirement.get(puzzle2SolutionValue);
for (var possiblePuzzle2Solution : possiblePuzzle2Solutions)
Expand All @@ -62,6 +70,7 @@ public void load(Client client, List<Item> items, int puzzle1SolutionValue, int
puzzle2LowerRequirement = possiblePuzzle2Solution.getItemRequirements().get(1);
return;
}
puzzleNeeds.add(possiblePuzzle2Solution);
}
}

Expand Down
Loading

0 comments on commit 81e10c6

Please sign in to comment.