Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support printing IDs and selecting by ID #62

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

tmck-code
Copy link
Owner

@tmck-code tmck-code commented Apr 4, 2024

Context

When using pokesay, it's possible to select a Pokemon's name and category, and then the final choice is made by randomly selecting between those.

This change gives each pokemon avatar a distinct ID so that an exact pokemon avatar can be selected

Command Line args

  • print JSON of id -> name
  • allow selection via id with -i
operation screenshot
list IDs for a Pokémon (or all Pokémon with just -l Screenshot_20240405-095516
Get specific Pokémon via ID Screenshot_20240405-095711
display the ID in the info bar with -I Screenshot_20240405-095741

- print JSON of id -> name
- allow selection via id with -i
this saves complexity when reading/selecting
- sort the metadata entries by the name tokens before writing
- add an Idx field to the metadata struct
there are additional categories for each pokemon that I haven't dealt
with until now.

each cowfile has a path like
- gen7x/regular/charizard.cow
- gen7x/regular/charizard-mega-y.cow
- gen7x/regular/charizard-mega-y.cow

Everything after the first - in the basename is now parsed out into an
extra category

This makes the -l mode more transparent, and allows selection of cool
stuff like shiny/mega etc.
TODO: clean and implement properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant