Skip to content

Commit b697a2e

Browse files
authored
Merge pull request #2180 from 2dos/union-fix
Update PlandoUtils.js
2 parents 24ac051 + 57e3618 commit b697a2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

static/js/PlandoUtils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,10 @@ function PlandoCustomLocationFilter(locationList, locationId) {
276276
// A map of custom location types, mapped to a set of which items may not
277277
// appear in that location type. This will be used to filter the dropdowns used
278278
// in the plandomizer.
279+
var CrownItemSet = new Set(BlueprintItemSet);
280+
CrownItemSet.add("junk_item");
279281
var ItemRestrictionsPerLocationType = new Map([
280-
["crownpad", BlueprintItemSet.union(new Set(["junk_item"]))],
282+
["crownpad", CrownItemSet],
281283
["dirtpatch", BlueprintItemSet],
282284
["fairy", BananaFairyRestrictedItems],
283285
["kasplat", new Set()],
@@ -372,4 +374,4 @@ window.PlandoCustomLocationItemFilter = PlandoCustomLocationItemFilter;
372374
window.PlandoMinigameFilter = PlandoMinigameFilter;
373375
window.PlandoShopSortFilter = PlandoShopSortFilter;
374376
window.PlandoOptionClassAnnotation = PlandoOptionClassAnnotation;
375-
window.MoveSet = MoveSet;
377+
window.MoveSet = MoveSet;

0 commit comments

Comments
 (0)