Skip to content

Commit

Permalink
fix: align github pages with the new method signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Sep 11, 2024
1 parent f85ffcd commit 13bcf89
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions example/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export async function getMonsFromMf(
if (evo) title += `_${evo}`
return {
title,
src: newUicons.pokemon(id, form, evo),
cry: newUaudio.pokemon(id, form, evo),
src: newUicons.pokemon(id, evo, form),
cry: newUaudio.pokemon(id, evo, form),
}
})
}
Expand Down Expand Up @@ -79,11 +79,21 @@ export async function getMonsFromIndex(
const evo = parseArgs(rest, '_e') ?? 0
const gender = parseArgs(rest, '_g') ?? 0
const alignment = parseArgs(rest, '_a') ?? 0
const shiny = !!parseArgs(rest, '_s')
const bread = parseArgs(rest, '_b') ?? 0
const shiny = !!parseArgs(rest, '_s') ?? false
return {
title,
src: `${icon.path}/pokemon/${file}`,
cry: newUaudio.pokemon(id, form, evo, gender, 0, alignment, shiny),
cry: newUaudio.pokemon(
id,
evo,
form,
0,
gender,
alignment,
bread,
shiny
),
}
}) || []
)
Expand Down

0 comments on commit 13bcf89

Please sign in to comment.