From 13bcf898e483e93ec55151eb7d6b379e1b831a81 Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Wed, 11 Sep 2024 09:47:38 -0400 Subject: [PATCH] fix: align github pages with the new method signatures --- example/utils.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/example/utils.ts b/example/utils.ts index b941f97..50195fe 100644 --- a/example/utils.ts +++ b/example/utils.ts @@ -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), } }) } @@ -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 + ), } }) || [] )