Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for Pokémon Radical Red (#59)
* Added a basic RadicalRed typescript sav reader (#43) * Radical Red Save Compatibility (#46) * Added a RadicalRed save file reader * Changed how data from PC is saved to the boxes * Tweaked OHPKM so it doesn't look for ribbons in PK3RR files * Bug fixes * Merged with main branch --------- Co-authored-by: Andrew Benington <[email protected]> * Integrated Moves.json into Movies since the compiler couldn't find Moves.json for whatever reason * Added RR to README * The PP stuff are having issues. * Fixed import in util * `run dev` for windows * Works well enough * Made general * Modified Aestherics of Save Tile Menu * Change icon to be consistent with `Open` icon on Left Hand Side * Move Remove button to right hand side, this makes more sense to me * Fixed pokemon sprite * start centralizing collection of supported save types * Added Radical Red sprites, and adjusted the OH to use said files. * quick fix for transfer restrictions bug i introduced * get game name from save type * settings toggle functionality * Tweaked it so that RadicalRed saves matching the save OTID set pokemon GoO to RadicalRed * Changed PKMFile to PKMInterface * Replaced Sprites * Fixed RadRed Sprites * moving radical red code from pokemon-files to OpenHome * fix typing * fix mistakes * determine save logo from save type, fix radical red logo * improve plugin detection + use moves from library * update readme * Prevent fakemon/fakeformes from being dragged/selected. Also grays them out. * Fixed bug in `BoxCell` * Replaced all sprites * Added `isLocked` attr to `PKMInterface` since this attribute is OH specific rather than something useful to `pokemon-files` * There may be some issues with PK3RR not being included in PKM * fix 'K3RR' and rename confusing type * more type fixes * Fixed warning where SaveCard key was not being set. * Fixed warning where key was not being set. * Removed places where console information was being printed * Replaced Move finder functions with Move map for quicker results * Fixed move card to display unknown moves as well when mon has <4 moves * Expanded number boxes read to 18. * Added credits for the RR image--*some* people place a high importance getting recognition * memoize move card * hide saves when plugin not enabled * move radical red code to folder + standardize formatting * add hotfix for missing bloodmoon ursaluna rr sprite * fix useCallback dependency * move sprite script + remove rr sprites w/ backgrounds * remove unused package * hotfix: changed RR save to read first 18 boxes instead of 19 * hotfix: Radical Red GameOfOrigin * Added (unimplemented) method of checking if save is a RR save or if its a regular G3 SAV * add plugin name to PK3RR * fix pluginOrigin field * remove unnecessary types * Implemented additional RR check * PK3RR sets plugin origin when reading from bytes * reflect radical red's support for regional formes * better save detection * fix game code * hotfix: fixed moves in file select menu * radical red ball fix * Actual move hotfix * Added Magearna will need to redo species mapping and maybe sprites. * add support for magearna-original * add support for ursaluna blood moon * fix met location for radical red * fix more PK3RR fields and add canGigantamax * hidden ability support * allow for the retention of OHPKM data * Fixed Charizard Megastones * Undid unnecessary logging * improve plugin origin + rr ball logic * radical red colors * Fixed bug where OHPKM => PK3RR would translate null moves as unknown. * Fixed RR Origin Display Since the `pluginOrigin` was only in the OHPKM file it was incorrectly identifying the `getPublicImageUrl`. In fact I'm not entirely sure what the difference is between this `pluginOrigin` field and the `pluginIdentifier` and why its used here. But it works now so that's good 🤷. * Fixed PK3RR MetInfo display **PK3RR** Divided the `gameOfOrigin` & `metLocation` into a private and public. The private is what's written into the byte array. The public is what's exposed to OpenHome. Thus showing mons from future generations ingame as a Trade, while mons diplayed in OH show their actual met info. **GetMonSaveLogo** Fixed bug where `getPublicImageURL` was called twice * fix save logo logic * clarify comment * npm audit fix * OHPKM schema moved from pokemon-files --------- Co-authored-by: Evan <[email protected]> Co-authored-by: evanwporter <[email protected]>
- Loading branch information