From ef8f8b8af989b29026294b8bd35e5edfc5262d91 Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Sun, 23 Apr 2023 21:48:07 -0500 Subject: [PATCH] new info --- pokeParse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pokeParse b/pokeParse index f380420..8dabdc3 100755 --- a/pokeParse +++ b/pokeParse @@ -21,7 +21,8 @@ mapfile -t TYPE < <(jq -r '.types[].type["name"]' <<< "$endpoint_POKEMON") mapfile -t STAT < <(jq -r '.stats[].stat["name"]' <<< "$endpoint_POKEMON") mapfile -t VAL < <(jq -r '.stats[].base_stat' <<< "$endpoint_POKEMON") mapfile -t FLAVOR_ARRAY < <( jq '.flavor_text_entries[] | select(.language["name"] == "en") | .flavor_text' <<< "$endpoint_SPECIES") -FLAVOR="$(tr -d '\"' < <(sed -e 's/\\./ /g' <<< ${FLAVOR_ARRAY[0]} | sed 's/\./& /g' | sed 's/.\{36\}\s/&\n/g'))" +FLAVOR="$(tr -d '\"' < <(sed -e 's/\\./ /g' <<< ${FLAVOR_ARRAY[0]} | + sed 's/\./& /g' | sed 's/.\{36\}\s/&\n/g' | sed "s/this POKéMON/${NAME^}/g"))" CHAIN1=$(jq -r '.chain.species["name"]' <<< "$endpoint_CHAIN") CHAIN2=$(jq -r '.chain.evolves_to[].species["name"]' <<< "$endpoint_CHAIN") CHAIN3=$(jq -r '.chain.evolves_to[].evolves_to[].species["name"]' <<< "$endpoint_CHAIN")