Commit Graph

85 Commits

Author SHA1 Message Date
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
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
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
Salier
af47a9305a
Fixed the randomisation inheriting process (#217)
* Fixed the randomisation inheriting process

* Corrected the ability inheritence 

Not anymore overwrite by the SameAbilityChance setting in the case of an inheritence

* Corrected Type inheritence

No longer overwrited by the SameTypeChance setting.

* Slight fix InheritTypeSetting.One and Type inheritence

Slight error causing too much random types use.
2022-09-10 11:38:51 -07: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
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
5c6c506a29 Sync missing changes 2021-09-16 08:54:38 -04:00
sora10pls
a9e72c288f Skip TMs when randomizing Shops 2021-09-04 14:57:05 -04: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
sora10pls
c194e035cc Exclude banned species from boosted Legendaries/Mythicals
https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/?do=findComment&comment=265072
2021-03-04 15:34:53 -05:00
Kurt
d34c4412be Keep stab moves in learnset
Closes #123
2021-02-15 18:31:53 -08:00
Egzon
d4238e3c71 Add option for Event Mythicals as well 2021-02-03 18:31:30 +01:00
Egzon
1ba8d477d1 Add LegendsChance setting
Added a setting to allow raise chances to encounter trainers with Legendary Pokémon.
2021-02-03 10:31:18 +01:00
Kurt
955ba9fed6 Enable nullable checks for all subprojects except structures/game 2020-12-27 16:35:08 -08:00
Kurt
22ef506b4e Update for c#9 syntax sugar 2020-12-27 12:47:46 -08:00
sora10pls
4a8427a6a3 Rework Darmanitan altform rand
Make it 50/50 between Unovan Standard and Galarian Standard (no Zen Mode)
2020-11-05 11:31:23 -05:00
sora10pls
8250f7c812 Update FormRandomizer.cs
Rayquaza's Forme Count was untouched with R2, so this can lead to an invalid spec-form when Randomizing. Disallow Rayquaza-1 (Mega).
2020-10-27 12:14:49 -04:00
sora10pls
295e14c433 Misc changes
Update personal length count for FormRandomizer, properly randomize Gift/Trade balls
Show Species enums in Dynamax Adventure editor
2020-10-25 18:41:01 -04:00
Kurt
d407506c30 Mior clean
reduce compiler messages
2020-10-25 13:17:04 -07:00
Kurt
8d7b5cea3c Crown Tundra Update
Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com>
Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
2020-10-23 18:02:01 -07:00
sora10pls
55916bc05e Force Slow EXP Group when evolving every level
Safeguarding purposes to make sure no levels get messed up throughout every evolution.
2020-09-23 15:03:58 -04:00
sora10pls
ed34f245db Add every level evolution randomizer
Every new level up grants an evolution to the Pokémon. Makes for an incredibly varied playthrough!
2020-09-23 12:26:35 -04:00
sora10pls
caf9e635b4 Add AllowRandomFusions to Trainer Randomizer Settings
Move BattleExclusiveForms outside of Tables7 since it'll be used for every Generation, and update it with Gen 8 species.
Also fix FormRandomizer allowing Zen/Galarian Zen Darmanitan.
2020-07-01 15:16:03 -04:00
sora10pls
2e600b9080 Standardize using FormRandomizer for all randomizers 2020-06-27 14:59:59 -04:00
sora10pls
7fd6fe849b Initial Isle of Armor support 2020-06-17 12:41:26 -04:00
sora10pls
cfb1593ca7 Add banlist and form randomization to evo randomizer
Previously, no forms would be adjusted, so something like Milcery could evolve into Charmander-8 (invalid)
2020-06-10 23:33:54 -04:00
sora10pls
ab047dda48 Fix ReplaceTradeMethod
6 uses Argument, 7/8 use Level
Closes #83
2020-06-09 18:31:30 -04:00
sora10pls
eb38d5cb83 Gigantamax Swap per SpeciesSettings
Accounts for when only specific Generations are allowed
If no criteria matches (e.g. only Gen 2 species allowed), make it any regular Dynamax
2020-06-08 16:14:06 -04:00
sora10pls
a105d88025 Expose and re-order SWSH AI bitflags
Three flags are related to the Motostoke Gym Challenge, not too interested in documenting them since they're only used for 3 Trainers in the entire game
Also fix Gigantamax Swap
Closes #21
2020-06-08 14:16:44 -04:00
Kurt
bc51de97ec Prevent max moves / behemoth 2020-06-03 21:24:10 -07:00
Kurt
f85130fd85 Skip dexit entries 2020-06-03 13:33:44 -07:00
sora10pls
3523ef97e0 Add Species enum 2020-05-30 23:09:43 -04:00
sora10pls
f415b81312 Fix LGPE MegaFormChoice randomization
0 for No Mega, 1 for Mega
If Charizard or Mewtwo, then 1 is Mega X and 2 is Mega Y
Also add more documentation for LGPE Trainer Classes
2020-05-28 19:23:30 -04:00
Kurt
ad058f42d0 Refactoring / clean
remove some compiler messages
2020-05-24 13:00:34 -07:00
Matt
7fc8f967dd
Add Big Shiny Sprites (#62)
* Add Big Shiny Sprites
Also addresses Trainer Meltan failing to evolve if requirements are met.
Fix Personal Held Item randomization.

* Fix silly typo
Copy/paste is a curse.

* Add Double Battle Classes to blacklist
Don't allow them to be set to any Trainers for crashes.
2020-04-24 07:52:01 -07:00
Matt
64909ee7ac
Document all SWSH Trainer Classes (#59)
* Document all SWSH Trainer Classes
Disallow Double Battle specific Trainer Classes when randomizing to avoid crashes.
Now there shouldn't be any crashes!

* Remove spaces
2020-04-01 13:37:46 -07:00
Matt
dc9563f000 Add Slowpoke-1 handling (#52) 2020-01-13 17:36:00 -08:00
Matt
5521b72431 Document and Expose CanDynamax Flag (#46) 2020-01-01 19:03:30 -08:00
Matt
7719701684 Add Gigantamax Swap feature (#44) 2019-12-23 09:07:26 -08:00
Matt
19ec807c95 Sword/Shield updates (#41) 2019-12-16 15:51:12 -08:00
Matt
91b5ae0616 Expose Dynamax Level/CanGigantamax (#32)
Also revise Important Trainers.
2019-11-19 16:54:03 -08:00
Matt
7549982192 Add Gen 8 Species to SpeciesSettings (#30)
Also allow Gen 2-7 Species when randomizing with SSWE.
2019-11-19 12:08:30 -08:00
Kurt
58b0597fea Sword/Shield Update
Many thanks to @SciresM and @sora10pls for assisting in this massive
update!
2019-11-15 17:00:41 -08:00
Kurt
537ce93efa Initial c#8 update
pkNX.Sprites to be replaced with a pkhex.drawing dll once that is
updated with swsh stuff (when the time comes)
2019-10-15 18:47:20 -07:00
Kurt
b611df6823 Misc clean
no functional change
2019-03-19 17:36:27 -07:00
Matt
da6ceb3bed Rename move rand type options (#11) 2019-03-15 14:35:19 -07:00
Kurt
35aef55110 Add boost/AI bulk mods, add teamcount mod toggle
https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/?do=findComment&comment=240379

turning off teamcount bool will prevent fixed teamcount changes from
happening
certain diffulty boost mods can be done separately from the general
randomization (new tab)
2019-02-18 11:55:57 -08:00