Was missing (i >> 3); error caused it to write last 8 bits at offset 0, overwriting any previous bit flags.
Extract out a method to do all the work for us.
* Add 'Add' 'Clone' and 'Remove' research task buttons
* Add Append/Remove array extensions
* Update to DexIndexNational instead of ModelID
* Make all functions private
Fix
* Add PokeMisc, items drops and research task files
* Update PokeMisc/DexResearch field names
Add type converters for known properties
No throw GetEntry
GetEntries for research tasks
* Update Poke editor
* Redesign UI
* Added PokeMisc to personal section (As property grid for now)
* Added Pokedex tab for research tasks (As property grid for now)
* Allow entries up to 9999
Still a WIP
* Rename fields
Rename to `HatchedSpecies`
`Species` here is actually `ModelID`. To get Species `DexIndexNational` should be used
* Update interfaces
Use DexIndexRegional
Replace `RegionalFormIndex` with `Form`
Add national dex index
* Add debug assert
* Add set functions for easy assignment of personal info
* Update auto-fill
* All missing SWSH data is now filled based on USUM data
* Accounts for form data
* Ignores all forms that are not carried over to next gen
* Adds form number and national dex number
* Update PLA filler to account for forms and other missing entries
* Use GameVersion instead
* Fix formatting
* Update Personal info code
* Use interface versions in code
* Remove unnecessary param
* Remove TableLength
* Fix integration
Rename Forme to Form
Typed numbers
lack of interfaces and default interface implementations is killing me :)
Split GameData so we can interact with changed data structures a little less weird; PLA Learnsets are too incompatible for direct edits with existing abstractions.
Each item has 3 separate prices the game can pull from, depending on where an item is purchased:
• Pokémon Dollars for Poké Marts
• Watts for Wild Area Watt Traders
• Alternate (BP/Dynite Ore) for specific NPCs, such as BP Shops and the Dynite Ore Trader in the Max Lair
Add an item "randomizer" that changes trade evolution items to be given a 'use' effect to work like evolution stones (e.g. use Electirizer on Electabuzz to evolve it into Electivire! https://i.imgur.com/qefHIFT.png)
Thanks @sora10pls for double checking some editors, and @Lusamine for some field identification.
Closes#115 -- tested the pokedex after randomization and it no longer crashes when randomizing+saving with the latest code in this pull request.
Adds:
* Shop editor (SWSH + LGPE)
* Move editor
* Item editor
* Symbol (Overworld Pokemon) Behavior editor
* Default Rental team editor
Previous implementation did not work correctly for LGPE. If someone wishes to merge the wild encounter buttons again, make sure it works for all games before submitting a pull request. Also fixes LGPE wild editor using small sprites.
Closes#110