Commit Graph

10596 Commits

Author SHA1 Message Date
Ka-n00b
56e2ec427e Update Gen IV Event Constants (#4471) 2025-04-16 17:06:44 -05:00
Kurt
3a4cd9a0cd Update EncounterSlot3XD.cs
Closes #4468

Co-Authored-By: santacrab2 <79347566+santacrab2@users.noreply.github.com>
2025-04-15 23:10:15 -05:00
Kurt
ef2152cf3b Misc tweaks for cxd encounters/viewing
convert, adapt to save file on view (fixes viewing gen3 ot/nick'd encounters in cxd)
display original string in cxd format (useful for jpn->eng->ENG colo, for string matching? might need to revert)
hard-match version for colo gift (MATTLE) to not confuse 10ANIV
2025-04-15 02:50:25 -05:00
Kurt
ba4d054089 Allow Heal box on all formats
pp, hp, whatever
revise sorting behavior for custom descending sorts; have Favorite mark sort as marked first.
Add time of day sort for Gen2
2025-04-13 16:56:18 -05:00
Kurt
207135948a Remove some PP set fluff methods
just a wrapper to do the same thing... nah
2025-04-13 16:54:20 -05:00
Kurt
4da88ac063 Minor clean 2025-04-13 12:02:33 -05:00
Kurt
76f2705c9c Misc tweaks for enc->pk ctor language/version
lang->language
only pass version if relevant
2025-04-13 11:58:33 -05:00
Kurt
efa627f703 Make SimpleTrainerInfo immutable after init 2025-04-13 11:55:42 -05:00
Kurt
8a19968321 Minor clean 2025-04-13 11:55:20 -05:00
Kurt
1914c482c6 Add readonly interface for 3DS georegion 2025-04-13 11:52:51 -05:00
Kurt
be874dcc50 Extract TM lists to PersonalInfo
Fix gen3 allocating eggmoves 3x (instance) instead of just once (static)
2025-04-13 11:49:45 -05:00
Kurt
fbfa28a0cf Sunset PKX -> Latest
Relocate gender ratio info to EntityGender
farewell PKX; once a behemoth catch-all of >4000 lines, now no more. 😢
2025-04-13 11:44:28 -05:00
Kurt
57060cbea5 Rename PP arrays for consistency 2025-04-13 11:43:00 -05:00
Kurt
9218f97971 Rename item pouch legal lists, make public
No longer need to protect for immutability since they're now ReadOnlySpan.
2025-04-13 11:42:59 -05:00
Kurt
92cd8feaf1 Use entitycontext for xmldoc instead of lump 2025-04-13 11:34:17 -05:00
Mow
2f1a11faa7 Implement Gen 4 groups and group-derived values (#4467)
* Fix swarm and safari seed locations

* Implement Gen 4 group system

* Implement Gen 4 BattleTowerSeed

* Gen 4 Lotto number

* Creator -> Leader in line with in-game terminology

* Update Group4.cs
2025-04-10 20:43:23 -05:00
rganhoto
7219e39b0f Pokedex - fix cannot unsee forms in Gen4 (#4466) 2025-04-10 13:11:44 -05:00
Carbonara
f020b3eb52 Update the French translation (#4465)
- Rework a bit the French translation on some lines; Translate some new lines; Fix some formatting (;, :, ! and ? are supposed to have a space in French before, though it is not done in Pokémon games prior to Gen 6 for space reasons); Fix some terms being incorrect or not being those expected (e.g. Pokémon Outil de lien refers to Poké Lien, super entrainement refers to SPV
- Translate all of the Funfest Missions in French. Official names and formatting are used. Changed B and W to N2 and B2 to be a bit more consistent for the initial of the game.
- Translate flags and constants for GSC in French, using official terms. Left the GSC decorations untranslated due to not wanting to figure for now which decoration is which, same thing than what is done in English.
2025-04-09 19:49:08 -05:00
Kurt
5ab6dbc0ac Add cancellation to savefile detection calls
5s timeout on detection, roughly
2025-04-06 22:25:37 -05:00
Lusamine
56ab067ad9 Standardize 'usable' in flags, correct spelling 2025-04-04 21:41:59 -05:00
Kurt
8700e11eb2 Fix flag get
flag1 would indicate true if flag2
2025-04-04 01:02:48 -05:00
Kurt
87b77f8a9d gen6: submission PP
Closes #4462
2025-03-30 22:39:19 -05:00
Kurt
a0be3f5f5f xy: Fix radar record read/write 2025-03-30 00:04:17 -05:00
sora10pls
7eda8ada4d Add latest distribution raid data 👻 2025-03-27 20:02:45 -04:00
Kurt
94b47d61da Add smeargle verifier branch
Add gen2 nosketch moves while we're here, and Stadium2's extra quirk one.
2025-03-27 18:43:37 -05:00
Kurt
542d6541c3 Extract stadium reminder moveset verifier step
Now flags as Stadium2 as source
2025-03-27 14:27:17 -05:00
Kurt
49061f0047 Add placeholder stadium2 pkl&api
private static readonly LearnsetStadium[] Stadium = LearnsetStadium.GetArray(BinLinkerAccessor.Get(Util.GetBinaryResource("reminder_stad2.pkl"), "s2"u8));

https://bluemoonfalls.com/pages/general/move-reminder
ty for the easier-to-digest parse; reinterpreted further into pkl
2025-03-27 00:53:12 -05:00
Kurt
83aff8b889 Add murkrow rebattle empty set
ty Unknown Warrior on discord for reporting

enhance heracross' note
2025-03-27 00:15:49 -05:00
Carbonara
7b8d51df37 Update lang_fr.txt (#4461) 2025-03-26 12:48:21 -05:00
Lusamine
d170908a3d Standardize apostrophes in Encounters8 comments
Use the straight apostrophe which is more easily typed, which allows for searching by location name.
2025-03-25 11:38:17 -05:00
Ka-n00b
1098481c85 Update B2W2 Event Flags (#4460)
* Update flags_b2w2_en.txt

* Update flags_b2w2_es.txt

* Update flags_b2w2_ja.txt

* Update flags_b2w2_ko.txt

* Update flags_b2w2_zh-Hans.txt

* Update flags_b2w2_zh-Hant.txt
2025-03-25 07:43:22 -05:00
Kurt
b303ea90ef AbilityVerifier: gen5 ability patch for genies
and giratina
extract to a single location
abilityverifier is still needing a rewrite to clean up all the branched logic, but it's still "functional"
2025-03-24 10:29:22 -05:00
Kurt
ca03311d21 PA8: Allow un-updated mid-scale alpha floats
https://projectpokemon.org/home/forums/topic/57375-pkhex-new-update-legality-errors-contribution-page/page/31/#findComment-294285

While we're here, fix PB7->PKH to retain the ReceivedTime values. Not that it matters, because those PKH values go nowhere.
2025-03-23 13:25:54 -05:00
Kurt
5376d44de8 Add $suggest for friendship properties 2025-03-23 12:16:52 -05:00
Kurt
4c15e7fd88 Gen4: permit 0 pid for bred eggs
masuda method rolls forward the egg seed, therefore 0 is reachable
2025-03-17 22:03:04 -05:00
Kurt
9b82cdfc80 Misc tweaks
CXD: indicate shadow index on hover, pokespot area
CXD: flag eggs
CXD: enc->pk try to match shininess when requesting all IVs
make some signatures dealing with level use as byte
2025-03-15 23:15:55 -05:00
Kurt
7f33741abb PP verifier: relax check based on typeof(PKM) 2025-03-13 21:53:27 -05:00
Kurt
ee3665cbe8 Gen2: Fix spanish Aerodactyl Trade nickname
NORMA is the OT, not the nickname
2025-03-13 21:50:21 -05:00
sora10pls
cb6d4ef70f Add latest distribution raid data 💧🦆🕺 2025-03-13 20:03:26 -04:00
Kurt
32887b5659 Revise LockFinder to accept u32, not pidiv 2025-03-12 21:24:38 -05:00
Kurt
e609081892 cxd: fix enc->pk3 with criteria IVs set
not sure why this unroll was in there... now works as intended.
2025-03-12 00:57:11 -05:00
Kurt
ca81fcd250 CXD: check naming screen->TID/SID frame pattern
Adapted from e5255b1313/PokemonCoRNGLibrary/Util/LCGExtensions.cs (L15)
2025-03-10 22:25:53 -05:00
Kurt
f4cfc39173 Gen9+: Show gold Battle Memory ribbon if 7+
https://bulbapedia.bulbagarden.net/wiki/List_of_Ribbons_in_the_games#Battle_Memory_Ribbons
> As of Scarlet and Violet, Pokémon that obtained seven out of the eight possible Ribbons will also display this version, owing to the fact that the World Ability Ribbon hadn't been officially obtainable for 8 years as of the game's release
2025-03-10 00:32:15 -05:00
Kurt
c77ea8fd4c PokeSpot: add IV animation pattern check
Realign slot match check to what was documented: https://www.smogon.com/forums/threads/past-gen-rng-research.61090/post-4755981
Most RNG tools assume that both are available to spawn, as that would be an annoying setup.

IV animation pattern: 075f1340c6/PokemonXDRNGLibrary/Generators/PokeSpotGenerator.cs (L48-L56)
2025-03-10 00:11:29 -05:00
Kurt
5bf9865f3f Add pokespot reverse/forward methods
Also adds partial IV specifying for cxd generating
2025-03-09 20:09:17 -05:00
Kurt
2fbe2feb52 Fix gen4 pcd sentinel set
Closes #4407
Bug: 0th PCD slot not being provided would set PGT slot0 to "inactive", rather than setting pcd slot0.
The modeled GUI is still very clunky (editing DP just ignores the flag, and assumes if data exists it is active).

fix a typo while we're on the topic of Gen4 :) -- ty 0blivion0athkeeper on discord
2025-03-08 11:13:35 -06:00
sora10pls
fed4a6e900 Add latest raid distribution data 🔥🐊🎤 2025-03-06 19:02:10 -05:00
Kurt
0de0bd4c0b Add setting to allow colliding gen3/4 egg pidivs
For those who think it is funny to RNG abuse egg PID/IVs to match a recognizable algorithm type. Opt-in setting because 99.9% of the time it's going to be a hack.
#4347
#3894
#3092
2025-03-06 09:37:26 -06:00
Kurt
4d702d261d Add ivs->channel seed recovery
Still lack IVs/nature/shiny request for the BACD/M2 variants, maybe in the future those can be added.
2025-03-05 22:45:41 -06:00
Kurt
8b5c07b07d Update Main.cs 2025-03-05 21:31:47 -06:00