Kurt
03182ebd3d
Update 22.11.24
...
Adds support for Scarlet & Violet.
Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com>
Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
2022-11-24 17:42:17 -08:00
sora10pls
313f32a0d0
Add last-ever SWSH distribution raid data
...
rip 2019-2022
2022-10-31 20:07:05 -04:00
Kurt
49d40d2e26
Enhance traded eggs version sharing check
...
No longer indicate traded eggs from gen3 as sharing OT details.
2022-10-28 16:18:06 -07:00
Kurt
a88da9ee8d
Update RibbonVerifierUnique4.cs
...
Closes #3618
2022-10-26 09:44:45 -07:00
sora10pls
56d3daa189
Add latest distribution raid data 🐴
...
good job shiny locking them this time
2022-10-20 20:05:57 -04:00
Kurt
3ab3f6ad53
Sanity check requested gender
...
Shedinja template in gen3 is gender:2, while the template needs to be gender:0/1
Closes #3612 ty @Kermalis !
2022-10-20 00:14:03 -07:00
Kurt
25b217c53d
Skip first iteration check of stop condition
...
Can unroll the loop, but would look more ugly :)
JIT will probably do it for us.
Fix <= to < for IVs
Inline temp var (start is unused after assigning to low)
2022-10-16 20:10:32 -07:00
Kurt
2a190dd6b3
Improve LCRNG seed reversal speed ~50x
...
Big thanks to Parzival from the RNG discord community for chiseling the LCRNG search space down to the best performing implementation possible.
50x? Down from O(2^8) -> O(2^3) is 32x, but we no longer need to access two heap arrays (262KB no longer needed!). Everything can be calculated tightly with the stack.
f641f3eab2/RNG/LCG_Reversal.py (L31)
Rainbow tables is the only faster implementation. However, nobody is gonna hog many GB of RAM for O(1) reversals. This is ~O(2^3), down from O(2^8). Much better than the days of O(2^16)!
2022-10-16 18:52:43 -07:00
Kurt
ae6d53af7e
Minor tweaks
...
Reduce allocation in gen8 static encounter init, single class
2022-10-15 01:14:50 -07:00
Kurt
8b0e93b42f
Fix GetLowestLevel underflow condition
...
Check end before decrement
Closes #3605 thanks @InfoManiac742 !
2022-10-14 17:05:19 -07:00
Kurt
0bc7eeb5f5
Improve RNG frame detection for gen4
...
stupid bruteforce for slot4->pk4
2022-09-30 19:26:59 -07:00
Kurt
65baf92608
Only add encounter moves if context matches
...
Viewing a PLA thundurus template into SWSH, then clicking current moves would green-tag
2022-09-28 21:51:22 -07:00
Kurt
baf2ac22d7
Update EncounterStatic4Pokewalker.cs
2022-09-28 00:09:10 -07:00
Kurt
583f96a598
Specify full movesets & course for Pokewalker encs
...
Didn't trust the existing manual transcribing, and both Bulbapedia and Serebii contain errors that don't match the original raw data. So, let's rip the raw data ourselves and use our own parse pickle (just raw bytes) instead of 162 manual entries.
For ripping logic, see: 203874da12
Partial match if language cannot access walker course
Re-do language override for EncounterStatic->pkm:
- Override gen1/2 event OT/language only if requested language is not possible
- Override walker OT/language if requested language is not possible (->japanese)
Closes #3594
2022-09-27 23:14:42 -07:00
Kurt
b6f5723d40
Make const location IDs ushort
2022-09-27 09:57:42 -07:00
Kurt
eabd8fad02
Reformat met location tables
...
More coherent alignment
Fix LGPE duplicate Met0 locations
Remove sublocations from XY hatch locations
2022-09-27 09:57:28 -07:00
sora10pls
4fd73d201f
Remove unused GBLZero PogoType
...
This was implemented because Niantic messed up some GBL encounters in the past, but it was fixed quick enough for it to not matter for legality, so no encounters actually use this PogoType.
Also rename GBLDay => GBLD to match other PogoTypes for consistency across enum names.
2022-09-26 20:37:55 -04:00
Kurt
83d6402fd4
Add gen3 unown form-pid check
2022-09-26 07:27:51 -07:00
Kurt
05d43cef7c
Set pk2 time of day for EncounterEgg ctor
2022-09-24 19:23:52 -07:00
Kurt
7cbde296f8
Make GameVersion a byte enum
2022-09-24 19:23:23 -07:00
Kurt
19d062480a
Verify time of day for gen2 encounters
2022-09-24 18:07:58 -07:00
Kurt
9c133d4e39
Allow emitting Crystal eggs for location-less pk2's
...
Closes #3591
ty @randomdice101 !
2022-09-24 18:07:41 -07:00
Kurt
8c93fd1cbd
Fix honeytree RNG frame matching
...
See EncounterSlotDumper for associated change (forgot to retain SlotType)
2022-09-23 13:36:44 -07:00
Kurt
3a5aa22c6f
Force alpha move state for below learn level
2022-09-18 22:00:46 -07:00
Kurt
84be9da49d
Revise rotom form check
2022-09-18 17:07:43 -07:00
Kurt
98707b466c
Bounds check move & species
...
searching for florges with dazzling gleam as a PK5 -> reject
2022-09-18 00:44:31 -07:00
Kurt
fddddcba28
Ban evos byref all the way down
...
https://github.com/kwsch/PKHeX/issues/2973#issuecomment-1247776541
2022-09-15 17:43:52 -07:00
Lusamine
eb51826243
Add date legality for Otsukimi Festival 2022 Clefairy
2022-09-13 18:51:20 -05:00
Kurt
61aa10a564
Require AtAnyTime for flagging original egg moves
...
https://projectpokemon.org/home/forums/topic/62305-egg-moves-are-deemed-legal-even-if-they-are-not-in-relearn-moves-list-before-gen-8/?do=findComment&comment=279269
ty liopds !
for gen8, require "Encounter" flag to match gen6/7
gen6/7 don't need to check IsMovesetDeleted as 8->7 will not traverse to 7-- if it was deleted.
2022-09-13 15:22:19 -07:00
Kurt
7d2808ea33
Requisite ribbon syndicate ribbons
2022-09-10 19:44:58 -07:00
Kurt
27eb68335b
Update learn handling for side-game wiped movesets
2022-09-10 12:02:15 -07:00
Kurt
0a88cdc32e
Update Encounters8.cs
2022-09-10 01:13:34 -07:00
sora10pls
39ccb50580
Add latest distribution raid data
2022-09-08 20:04:39 -04:00
Lusamine
f79560b8a2
Add Continental Vivillon pattern to Nagasaki, Japan for 3DS
...
Updated earlier this year:
https://docs.google.com/spreadsheets/d/e/2PACX-1vTVVOEZbXLVQvjIdzGACpZ_IrOWgVDBr_Wa-xULK3191BP9lf1tep-z-PsmcAfaH_aE56j3GHDX_9UO/pubhtml
2022-09-07 23:58:04 -05:00
Kurt
17b42219af
Improve xd umbreon detection
...
Make PIDIV for xd starter indicate the TID/SID origin seed too.
2022-09-07 15:49:53 -07:00
Kurt
d6e83362b3
Fix binarysearch result compare
...
Method returns a negative number if not found; not always -1
https://projectpokemon.org/home/forums/topic/62246-g3-xd-move-tutor-legality/
2022-09-05 08:50:27 -07:00
Kurt
06196e0440
Minor tweaks
...
Less alloc
2022-09-04 22:23:35 -07:00
Kurt
6a61b0e449
Update EvolutionTree.cs
2022-09-04 22:20:35 -07:00
Kurt
92a50264cc
Refactor RNG advance/reverse methods ( #3579 )
...
The new LCRNG/GCRNG/ARNG classes are static, rather than singletons. Allows them to be inlined much better.
2022-09-04 12:03:37 -07:00
Kurt
d9ad0052a1
Completely remove chatelaine memory check
...
Gen6 can get the memory on those who did not participate by being in the party with other participants.
This includes those who cannot enter into the Maison; having memory and no ribbon is entirely legal.
2022-09-03 10:12:42 -07:00
Kurt
fd27bde673
Update RibbonVerifierCommon6.cs
2022-09-03 08:25:12 -07:00
Kurt
da642ee16e
Remap context for sidegame HT memory checks
...
gastrodon with recover as HT memory needs to verify within the context of SW/SH and prior learn environments.
2022-09-02 15:41:22 -07:00
Kurt
1960b335fd
Remove PersonalInfo.Abilities, use interfaces
...
If you must get a list of abilities, then use the span extension methods.
Also reworks some initial moveset fetching to allocate less
2022-09-02 10:20:19 -07:00
Lusamine
a97e74e628
Correct Arceus Chronicles Growlithe dates
2022-09-02 02:40:40 -05:00
Lusamine
7bab0270bb
Fix Wish Ralts moveset
...
Thanks @Kermalis !
2022-09-01 23:27:58 -05:00
Kurt
59c518f268
Condense moveset deletion check
2022-09-01 20:57:39 -07:00
Lusamine
8ecbd08efd
Add start date for Arceus Chronicles Growlithe event
2022-09-01 21:04:56 -05:00
Kurt
e8aa2c8ed1
Correctly check xy/sm if not ao/usum levelup
2022-09-01 09:34:40 -07:00
Kurt
f4f9df3a81
Don't add new gs moves to pk1 permit array
...
Out of range
https://projectpokemon.org/home/forums/topic/62190-user-message-an-unhandled-exception-has-occurred-you-can-continue-running-pkhex-but-please-report-this-error
2022-08-31 21:03:26 -07:00
Kurt
88ac14946d
Don't be as strict with shedinja evo moves
...
EncounterMovesetGenerator doesn't specify a clean encounter, don't check it as thoroughly.
2022-08-31 19:09:06 -07:00