Commit Graph

178 Commits

Author SHA1 Message Date
JelleInfinity
6498f3c8eb
[SWSH] Remove dynamax crystals from legal random list (#280) 2022-10-12 08:39:31 +01:00
JelleInfinity
cbb75148a1
[SWSH] Remove items with ID 1279 from legal list (#279)
1279 seems to be an ID solely used for dummy items
2022-10-12 08:04:24 +01:00
Kurt
fa4de667b0 Update PersonalInfo8SWSH.cs 2022-10-07 10:08:31 -07:00
Kurt
8d7d698d1f Fix TypeTutor write
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.
2022-10-07 10:07:42 -07:00
JelleInfinity
4167762c44
Some bug fixes (#276)
* Replace all uses of ModelID

* Prep work to add PokeMisc data
2022-10-05 17:01:34 +01:00
Kurt
efb34f556b Minor tweaks
Reduce allocation of button string fetch (for fun!)
Type return covariance for Editors (no longer limited by netframework!)
2022-10-02 10:24:44 -07:00
Kurt
33a2ab24f1 Minor clean 2022-10-01 17:46:11 -07:00
Kurt
2578ba073c Refactoring
File scoped namespaces for all lib projects
netstandard2.0 => net6; now uniform. bye netframework!
2022-10-01 17:08:17 -07:00
Jelle
49e5feaf4d Research task edit buttons
* Add 'Add' 'Clone' and 'Remove' research task buttons
* Add Append/Remove array extensions
* Update to DexIndexNational instead of ModelID
* Make all functions private

Fix
2022-10-01 12:11:54 +02:00
JelleInfinity
97e5999372
Fix merge error (#263) 2022-09-30 13:46:17 -07:00
JelleInfinity
3c71e74b93
SWSH personal info refactor (#256)
* Add missing properties

* Refactor swsh personal info
2022-09-29 23:04:34 -07:00
JelleInfinity
8593fdc496
Fix arg type (#255)
I read that these can't have arguments
2022-09-29 16:18:19 -07:00
JelleInfinity
c3470997d2
Updated pokemon editor (#257)
* 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
2022-09-29 16:17:48 -07:00
JelleInfinity
9346f482da
Improved auto fill (#254)
* 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
2022-09-29 16:14:44 -07:00
JelleInfinity
7f051d06ed
Move IMovesInfo to own file (#252) 2022-09-27 11:17:20 -07:00
Lusamine
53d3e456d3 Fill in remaining NHO information 2022-09-27 03:35:42 -05:00
JelleInfinity
8ac8ae78ac
Refactor evolution code from PKHeX source (#251)
* Add evo table resources and re-arrange files

* Add array from byte span utility function

* Update evolution related code from pkHex
2022-09-24 17:39:41 -07:00
JelleInfinity
ea9ce5dec6
Add auto-fill from old databases (#246)
This adds the option to fill in the missing info using swsh and usum databases
2022-09-21 16:05:30 -07:00
JelleInfinity
e1d7cc790a
PersonalInfo interface fixes (#243)
Improved the inheritance graph and renamed some variables to merge some into an interface
2022-09-21 15:55:54 -07:00
JelleInfinity
dff97a4105
Feat/pokemon editor (#242)
* Make PersonalTable saveable

* Add poke editor
2022-09-20 16:46:04 -07:00
JelleInfinity
21a87b454d
Update legality from PKHeX (#237)
* Update legality from PKHeX

* Move to folder

* Remove namespace wrapping

Co-authored-by: Kurt <kwsch@users.noreply.github.com>
2022-09-18 12:48:03 -07:00
JelleInfinity
3a8328c0cd
Use interfaces for personal info to make updating the data easier (#234)
* 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
2022-09-18 12:44:51 -07:00
JelleInfinity
86cf8027ca
Add SWSH/PLA to GameUtil (#232)
* Add SWSH/PLA to GameUtil

* Set to PLA instead
2022-09-13 20:13:27 -07:00
JelleInfinity
0f40a36c3a
Use Types enum for UI values (#229) 2022-09-11 09:07:49 -07:00
sora10pls
432628590f Add Move Shop editor, Ha_Shop randomizer 2022-02-24 11:18:00 -05:00
sora10pls
26631353d0 Don't randomize static Legendary Pokémon 2022-02-23 13:00:26 -05:00
sora10pls
a2f0a58f7a Allow LA species for randomization, handle bad forms 2022-02-21 10:29:51 -05:00
Kurt
22ede7da03 Add landmark editor 2022-02-20 23:35:18 -08:00
Kurt
0a30e0ca3c Remove unsupported games, split GameData
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.
2022-02-15 01:58:27 -08:00
Kurt
e432370a40 Add Pokémon Legends: Arceus support
.NET5.0 -> .NET6.0

Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
2022-02-04 18:43:21 -08:00
sora10pls
857df4dcd3 Update Item8.cs
Battle Tower TMs cost 100,000 so prices must be u32.
2021-09-16 18:39:36 -04:00
sora10pls
5c4475a237 Re-order Evolution enums, adjust Shelmet/Karrablast method
Closes #168
2021-09-16 08:48:59 -04:00
sora10pls
de8bed982e Update Item8.cs 2021-09-11 11:24:32 -04:00
sora10pls
801a3cac8b Document more Item8 fields
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)
2021-09-06 12:50:35 -04:00
sora10pls
122590ca5a Remove Key Items from LGPE shop randomizer 2021-09-04 15:05:58 -04:00
sora10pls
a9e72c288f Skip TMs when randomizing Shops 2021-09-04 14:57:05 -04:00
Kurt
c7604f28fe Add more fields for placement, add dumper util for flatbuffer 2021-09-02 22:19:08 -07:00
Kurt
639f8156ab
Handle FlatBuffers in-process with FlatSharp, and add more flatbuffer editors. (#166)
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
2021-09-02 19:47:41 -07:00
Lusamine
9d37e36ec8
Clean up a little, remove unused HiddenMain3 enum (#165) 2021-09-02 14:53:18 -07:00
Lusamine
485bb775cd Claim reserved byte in SWSH pkl 2021-07-23 06:11:32 -05:00
Lusamine
537f3deed3 Only dump accessible encounter slots and include metadata for SWSH 2021-07-22 22:23:28 -05:00
Kurt
e772a99341 Add index to dumped bcat nests 2021-04-18 12:02:30 -07:00
sora10pls
12975fcd6d Denote if a Raid Boss can be captured
Comments out any such encounters in the PKHeX output. This is a pretty lazy solution for now, but it works.
2021-03-31 22:43:56 -04:00
sora10pls
b7191a6103 Revert implicit casting 2021-03-31 22:42:32 -04:00
Kurt
49efb96db9 Export bridge->stony crossover tree shake slots, don't export empty slots
See PKHeX prior to this commit for rationale

9864f23427

Reduces the amount of work PKHeX does when loading.
2021-03-17 18:10:26 -07:00
sora10pls
dfeaf76908 Add tutor move editing 2021-03-13 14:54:34 -05:00
sora10pls
64d04182ef Re-merge wild buttons
Related: d231a411a0
2021-03-11 11:32:17 -05:00
sora10pls
d231a411a0 Properly differentiate between SW/SH
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
2021-03-04 14:43:21 -05:00
Koopa
86c480527b
Upgrade .NET target to 4.6.1.
This will be required for System.Resources.Extensions.
2021-02-28 02:02:31 -05:00
Koopa
c28622f9b0
Remove 'é' from enum member name.
This causes a compile error on my machine with "dotnet build".
2021-02-28 01:33:27 -05:00