Skip to content

Commit

Permalink
worldhopper: add Bounty Hunter option to world type filter (runelite#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cdfisher authored Nov 3, 2024
1 parent b497242 commit d8a5449
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ enum WorldTypeFilter
@Override
boolean matches(Set<WorldType> types)
{
EnumSet<WorldType> normal = EnumSet.of(WorldType.MEMBERS, WorldType.BOUNTY, WorldType.SKILL_TOTAL, WorldType.LAST_MAN_STANDING);
EnumSet<WorldType> normal = EnumSet.of(WorldType.MEMBERS, WorldType.SKILL_TOTAL, WorldType.LAST_MAN_STANDING);
EnumSet<WorldType> inverse = EnumSet.complementOf(normal);
return Sets.intersection(types, inverse).isEmpty();
}
Expand Down Expand Up @@ -96,6 +96,14 @@ boolean matches(Set<WorldType> types)
{
return types.contains(WorldType.HIGH_RISK);
}
},
BOUNTY_HUNTER
{
@Override
boolean matches(Set<WorldType> types)
{
return types.contains(WorldType.BOUNTY);
}
};

abstract boolean matches(Set<WorldType> types);
Expand Down

0 comments on commit d8a5449

Please sign in to comment.