Commit graph

41 commits

Author SHA1 Message Date
Tyler Dunn
5a73217c23 Remove safe cast in favor of direct cast 2016-07-08 21:11:21 -04:00
Kaphotics
1f1f3b8720 Add gender legality check
dirty cheaters

Tweaked ECPID to not bypass illegal flag checking if EC/PID were 0.
2016-07-03 18:36:04 -07:00
Kaphotics
053657c3be Error check on invalid legality
Check fails -> flag instead of error.
2016-06-29 22:59:20 -07:00
Kaphotics
6378eb7f56 Current progress
Still a few milestones left to hit before official release.
2016-06-19 21:22:43 -07:00
Oliver Garcia
816ec2537d Check if the country is avalaible on the 3DS region 2016-05-12 00:20:31 +01:00
Kaphotics
e7e793a2f4 Add basic memory checks
Thanks Eskuero. WIP.
2016-05-05 20:05:22 -07:00
Kaphotics
214473756e Add Fateful Encounter check
Cleared up the Event check a little to allow Fateful Encounters to slip
through.
2016-04-21 19:32:22 -07:00
Kaphotics
4d0ff2a197 Add move source indication to verbose output
Indicates the Valid legality of moves (level up, relearn pool, etc).
2016-04-16 11:36:01 -07:00
Kaphotics
5feb1c887b Fix nearly identical events with different moves
Charizardite X/Y events in particular came up as invalid (Y).

The Y event had Inferno (not a normal move), but it wasn't in the
relearn pool. Due to these nearly identical events only differing in
terms of usable movepool (not relearn pool), the check has to be able to
be deferred to later if multiple cards are still valid.
2016-04-16 11:35:16 -07:00
Kaphotics
16f291e4ac Add Form checks 2016-04-14 03:17:03 -07:00
Kaphotics
4fa777d86a Tweak verbose output
Group fishy with fishy, and valid with valid. Fishy checks are pulled to
the top.
2016-04-07 22:28:26 -07:00
Kaphotics
09811c32e4 Add verbose export
Partial commit error fixed
2016-04-03 17:11:58 -07:00
Kaphotics
c00651078a Add Gen3/4 Ball exclusions
Additional Changes:
Removed duplicate EncounterLink check
Moved RelearnBase resetting to the verifyRelearn() method.
2016-03-28 22:30:23 -07:00
Kaphotics
65901f7f41 Add more strict ball checks
Sport/Apricorn/Safari/Dream checked

Also snuck in encountertype tracking for readability/calcOnce
2016-03-27 22:05:51 -07:00
Kaphotics
a2c42a2293 RelearnMove suggestion instead of copyMoves 2016-03-25 00:10:11 -07:00
Kaphotics
092a34e239 Move MatchedWC6 into EncounterMatch 2016-03-22 22:49:46 -07:00
Kaphotics
b109af18e7 Add History check, Expand ball check 2016-03-21 21:31:06 -07:00
Kaphotics
b05b66810c Add Ball/Ability checks & wc6 PID check
Probably am going to move the WC6 fetch logic out
2016-03-21 08:01:08 -07:00
Kaphotics
7e6c92f343 Add ribbon legality check 2016-03-20 15:20:11 -07:00
Kaphotics
d57533ea77 Add level check
Met level > Current Level
2016-03-18 22:49:21 -07:00
Kaphotics
d986b3bb86 Add ingame trade checks
There's memories associated, IVs, EVs, whatever; best to check them in
the individual legality check methods.
2016-03-17 17:25:21 -07:00
Kaphotics
49e7225c3e Refactoring
Tanabata Jirachi has an underleveled move (illegal), so we have to track
some data. Move LegalityCheck back into LegalityAnalysis, but in a
separate file still.
2016-03-13 20:19:04 -07:00
Kaphotics
c6439aa03c Add legality indication on loading to tabs 2016-03-13 18:09:12 -07:00
Kaphotics
0ebbcbccb4 Move Legality check rewrite
Moved to checks
Returns why it's invalid
Added base egg move checks -- all eggs need level1 moves, can only be
pushed out. The move table acts as a sliding window; grab a list of
level1 moves, tack on relearn moves, then observe window view (last 4).
Added egg met level check
2016-03-12 09:16:41 -08:00
Kaphotics
9210ef06c6 Add Move checking
Tweaked some inner logic to validate moves on creation of new
legalityanalysis for use in display, with refresh methods.
2016-03-11 20:56:40 -08:00
Kaphotics
20257ffc32 Abort legality check if not gen6 2016-03-11 19:57:33 -08:00
Kaphotics
c4612e2d9f Legality ContextMenu now returns analysis
Hooked up all the methods and can spit out if invalid.

I plan to put a legality indication where QR! was, but the legality
analysis needs more checks (moves, ability, nickname, ball, fateful...
you get it) and stability.

Have fun playing with the initial legality checks 😄
2016-03-11 19:43:40 -08:00
Kaphotics
b6fca5b306 Add some basic legality checks
Besides moves/encounters, we can check validity of certain traits.
2016-03-10 20:36:32 -08:00
Kaphotics
97a8825406 Add legality text exporting
WIP -- no text is returned from the called method.
Fixes the Control Click preview box not exporting ek6 (was right click
previously).
2016-03-08 19:20:29 -08:00
Kaphotics
b1dfbdd419 Add Bank event checking 2016-03-06 11:19:09 -08:00
Kaphotics
e9a85e8a88 Cleanup
Unused code from donor project
2016-03-05 16:58:20 -08:00
Kaphotics
464d686997 Refactor, Check WC6 evos, Check WC6 egg
Moved the wc6 fetch logic, added event egg; added a little linq finesse
and things are clean!

Added features and cleaned with 0 net lines 👍
2016-03-04 20:43:00 -08:00
Kaphotics
9b55c015b6 Refactoring
Fix getValidPreEvolutions not decrementing level (the evo level is the
actual value, not 1 for levelup.

Did some performance analysis and optimized a little; the Valid Moves
are now only obtained once instead of 4 times in a loop; used a list to
hold the moves instead of constantly ToArray() which is a little
computation intensive.
2016-03-03 22:12:22 -08:00
Kaphotics
83b0c2992e Check TID for WC's 2016-03-02 15:46:22 -08:00
Kaphotics
5ea193819e Add WC6 move checking
Using PPorg's wc6 database.
2016-02-28 17:05:38 -08:00
Kaphotics
c618e1aac6 Add encounter slot checking, edge case handling
So much information is needed to check a given aspect that it's best to
just pass the pk6 around to functions.
2016-02-26 07:52:08 -08:00
Kaphotics
cb6a3394d5 Add encounter tables 2016-02-25 16:19:59 -08:00
Kaphotics
4b7f253a1e Add DexNav move legality checking 2016-02-24 16:36:26 -08:00
Kaphotics
194de261cf Minor cleanup
No functional changes.
2016-02-23 19:20:52 -08:00
Kaphotics
b3a4cc858e Move Relearn checks to Analysis.cs
Keeping logic out of Main.cs
2016-02-23 19:19:25 -08:00
Kaphotics
968eabd053 Reorganization for future changes
Moving legality stuff into separate class
2016-02-22 22:52:48 -08:00