Skip to content

Commit

Permalink
this doesn't feel great
Browse files Browse the repository at this point in the history
  • Loading branch information
horrible-little-slime committed Dec 18, 2024
1 parent 8bcafe2 commit 333e5d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export const args = Args.create("crimbo23", "A script for farming elf stuff", {
export function getIsland(): HolidayIsland {
if (!args.island?.length) throw new Error("Listen, buddy, you've got to pick an Island. It's not clear how we got this far.");

const islands = args.island.map((island) => ISLANDS[island]);
const islands = args.island.map((island) => Object.entries(ISLANDS).find(([key, ]) => key.toLowerCase() === island.toLowerCase())?.[1]).filter((x): x is HolidayIsland => !!x);

if (islands.length === 1) return islands[0]

const ponderResult = OrbManager.ponder();
Expand Down

0 comments on commit 333e5d6

Please sign in to comment.