Commit graph

408 commits

Author SHA1 Message Date
Kaphotics
f728608216 Add Clear All for Memory Country/Region 2016-03-26 19:40:02 -07:00
Kaphotics
f55c2df910 Remove old ramsav cases
Unnecessary, program can't handle them anymore.
2016-03-25 00:10:57 -07:00
Kaphotics
a2c42a2293 RelearnMove suggestion instead of copyMoves 2016-03-25 00:10:11 -07:00
Kaphotics
ebb6349ceb Less cryptic encountertype choices
Resolves #91
2016-03-24 17:04:28 -07:00
Kaphotics
ea3fabe8e9 Drop past gen pkm -> slot img refresh
Fixes #89
Thanks poutros
2016-03-24 16:44:57 -07:00
Kaphotics
2b91145612 Clear bad egg background when slot is overwritten
PKHeX will never write a sanity=0 or bad chk, so no need to check.
(anyone can make the program do that though!)
2016-03-23 21:35:36 -07:00
Kaphotics
eec754256a Lambda
Slick.
2016-03-22 20:30:48 -07:00
Kaphotics
c89e3a84c1 Allow menu strip to stay open on chk click
Allows the user to click multiple options in Set to SAV and Database
filters without having the options disappear on click.
2016-03-22 20:14:11 -07:00
Kaphotics
17109093bd Update legality display before alert
Instead of updating after displaying why it's (not) legal.
2016-03-20 21:57:50 -07:00
Kaphotics
7269c97699 Minor tweaks
Update legality on showdown export
Update all legality on legality analysis triggered (PB_Legal or
contextmenu)
2016-03-17 18:58:30 -07:00
Kaphotics
76b3031263 Invalidate legality on bad moveset
Make the legality pictureboxes global for the Main form.
2016-03-14 23:26:29 -07:00
Kaphotics
945d0187ee Lowercase hax detection 2016-03-14 17:55:42 -07:00
Kaphotics
9cf6753a36 Lowercase Update
Addresses #82
2016-03-14 17:54:30 -07:00
Kaphotics
c08e8a75c5 Safe accessing
2 gender chars at most -> any fuzz/bad pk6 won't throw here.
2016-03-13 23:20:45 -07:00
Kaphotics
b357a00fe3 calendar at current date on load 2016-03-13 18:38:11 -07:00
Kaphotics
c6439aa03c Add legality indication on loading to tabs 2016-03-13 18:09:12 -07:00
Kaphotics
2e0a06034c Add Full Size WC6 importing 2016-03-13 10:54:33 -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
019d074f0d Speed up startup time
SelectionLength takes a lot of time when loading fields, so only start
doing it when the form is totally loaded.
2016-03-11 20:57:55 -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
0e1599e9d5 Farewell QR! label
Moved into the contextmenu.

shortcuts available:
shift click picturebox -> out QR (to window)
alt click picturebox -> in QR (from clipboard)
2016-03-11 18:40:08 -08:00
Kaphotics
9729e5a30e Merge pull request #79 from chenzw95/unown-pid
Generate legal PID for Gen III Unown
2016-03-09 00:38:05 -08:00
chenzw95
f405840ba5 Generate legal PID for Gen III Unown 2016-03-09 16:29:18 +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
d284256088 Update EC for pre Gen6 randomPID/shiny 2016-03-06 22:21:54 -08:00
chenzw95
f731dd9248 For Gen III & IV Pokemon, generate PIDs to ensure legal nature 2016-03-07 11:24:34 +08:00
Kaphotics
bc71969277 Reduce legality checking footprint
No need to have recursion; profiler now indicates a >10x reduction in
processing power for this feature
2016-03-06 14:42:20 -08:00
Kaphotics
ff64a875fc ComboBox empty text => index 0
Easier clearing of values; instead of saying "stuff is wrong", it's
obvious the user deleted the text so just set it to the 0th item.
2016-03-05 16:59:16 -08:00
Kaphotics
6ece2a5f1e Relocate JPEG code
-14 lines
2016-03-04 22:09:54 -08:00
Kaphotics
aa40e9af5a Minor Fix (interpolation)
Line 2552 wasn't interpolated, leading to {BackupPath} getting spat out
literally.
With that I split up the nesting to make the logic more clear.
2016-03-04 20:48:27 -08:00
Kaphotics
5ea193819e Add WC6 move checking
Using PPorg's wc6 database.
2016-02-28 17:05:38 -08:00
Kaphotics
4cfa9e322f Cleanup
Nothing.
2016-02-28 13:49:58 -08:00
Kaphotics
e024d7824b Modifying Met Locations update Legality analysis 2016-02-27 18:10:02 -08:00
Kaphotics
c6796a09f0 Fix Location bugginess with Legal checking
Thanks Odaxis.
2016-02-26 20:33:18 -08:00
Kaphotics
cb6a3394d5 Add encounter tables 2016-02-25 16:19:59 -08:00
Kaphotics
264ae85509 Simplify references to local copy
Not going to reference main form besides open/close r/w.
2016-02-24 15:29:24 -08:00
Kaphotics
643b2afb52 Cleanup
Safe casts aren't needed for Array.IndexOf
Initial Ribbon images are already set up, no need to rereference
Slicker way of inverting checkboxes.
2016-02-24 14:59:03 -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
Kaphotics
7a3b0699d0 Add battle resort = egg, add smeargle bypass
I still should move this to a legality checking core, will do after this
weekend's VGC.
2016-02-20 22:21:03 -08:00
Kaphotics
c426089c07 Add Move Legality Checker
Note that this is a first iteration feature; there are known edge cases.
This feature is merely to assist the user by highlighting moves that are
outside of the typical moveset.

Levelup/Eggmove/Tutor/TMHM are used in the logic.
2016-02-17 07:54:59 -08:00
Kaphotics
4eab4c2434 Fix box import filecount msg
ctr is not initialized to 0 (instead to 30*CB_BoxSelect.SelectedIndex),
so we need to undo that to get the actual count of files imported.

Fixes #74
2016-02-12 00:01:15 -08:00
Kaphotics
7b380cd0aa Refactoring
Minor fixes to coding style

PGT fixed default OT name from pk4HeX to PKHeX. Yay for replace all
"pk"-"pk4" case insensitivity.
2016-02-11 23:42:42 -08:00
Kaphotics
e8c1fb662d Add automatic save backup
Create "bak" file, or export a backup successfully anywhere to receive
the "create bak folder" prompt. When saves are loaded (with a new
timestamp), they will be backed up. Repeat loads of the same file will
not be backed up, as a backup of that file already exists
(OT/Game/SavedAt is the hash used).
2016-02-11 21:41:31 -08:00
Kaphotics
cab1959aa7 Add Version Name to backup name
Seems ok.
2016-02-11 20:53:11 -08:00
Kaphotics
1b4975f6c5 SAV remember import name&dir 2016-02-11 00:56:10 -08:00
Kaphotics
d2214f4fa1 Refactoring 2016-02-10 00:33:42 -08:00
Kaphotics
62bb9350ba Improve 1MB error messages 2016-02-09 15:44:59 -08:00
Kaphotics
9f6e31f6eb Fix 1MB importing opposite
Yes => 0
No => 1
Nobody uses 1MB imports anyway...
2016-02-09 15:37:12 -08:00
Kaphotics
da862c2ae5 Remove "Cancel" option where not necessary 2016-02-09 15:35:56 -08:00