Commit graph

1330 commits

Author SHA1 Message Date
Kaphotics
0d81fd2d09 Add Kecleon encounters 2016-03-13 16:41:36 -07:00
Kaphotics
cc8f962acd Add Static/Friend Safari Encounter checking 2016-03-13 14:56:25 -07:00
Kaphotics
6acb8183ed Merge pull request #81 from easyworld/master
translate all bornPlaces to Chinese
2016-03-13 11:50:43 -07:00
Kaphotics
2e0a06034c Add Full Size WC6 importing 2016-03-13 10:54:33 -07:00
easyworld
22f0525df7 translate all bornPlaces to Chinese 2016-03-13 16:19:52 +08:00
Kaphotics
ce87cf675f Fix getBaseSpecies 2016-03-12 15:05:01 -08:00
Kaphotics
74f02eb16f Further relearn tweaks 2016-03-12 14:07:57 -08:00
Kaphotics
cc9cee5d1a Tweak egg move check
Renamed some variables, fixed an internal error
2016-03-12 10:35:17 -08: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
af5b2e09f9 Silly for-loop fix
Wrong way.
2016-03-12 09:13:52 -08:00
Kaphotics
d1e98cb429 Tweak egg prerequisites
Moved Met Level check into the encounter check, don't care about it for
checking an egg's relearn moves.
2016-03-12 09:13:27 -08:00
Kaphotics
5b87114a2a Bugfix Invalid Checksum alert
PK6 Object may be modified in parent form, resulting in invalid checksum
errors if the same PK6 is reloaded.

Solved by not passing object, pass raw data.
2016-03-12 09:12:51 -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
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
9e4daf9a26 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-03-11 18:40:11 -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
65767423b1 Merge pull request #80 from easyworld/master
update zh translation about puff, superTraining, trainingBag.
2016-03-11 07:41:21 -08:00
easyworld
e3f0b8c6a3 update puff, superTraining, trainingBag. 2016-03-11 18:24:45 +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
9604589a4a Add slot legality fetch for pk6
calling getEncounterSlots(pk6) yields a list of locations and valid
slots for given input pk6.
For later use in suggestion of legal values.

Flexible enough for future fetch of past gen, but I doubt I'd ever be
motivated enough to implement past gen checks.
2016-03-09 21:32:42 -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
e18aeedebb Merge pull request #78 from easyworld/master
zh translation fix
2016-03-07 21:23:45 -08:00
easyworld
102697695b update ja words to zh. 2016-03-08 13:12:38 +08:00
easyworld
eefeda79bd Update some ja words to zh. Fix some bad translation. 2016-03-08 13:06:38 +08:00
Kaphotics
64759c7487 Remap unicode to ingame value
Don't rely on string setter either.
2016-03-07 19:31:22 -08:00
Kaphotics
eb4abb28d1 Unicode remap Nickname/OT
Thanks Localhorst! I suspect this isn't going to be final...
2016-03-07 18:49:42 -08:00
Kaphotics
0a4e27e501 Fix typo 2016-03-07 18:45:17 -08:00
Kaphotics
d284256088 Update EC for pre Gen6 randomPID/shiny 2016-03-06 22:21:54 -08:00
Kaphotics
9ab426aa80 RandomPID: Simplify + Add Gen6 return option
Although our origin checks are done every loop, the speed difference of
such checks is negligible compared to the benefit of readability
2016-03-06 20:00:33 -08:00
Kaphotics
caaad37cee Merge pull request #77 from chenzw95/nature-pid
For Gen III & IV Pokemon, generate PIDs to ensure legal nature
2016-03-06 19:42:08 -08:00
chenzw95
f731dd9248 For Gen III & IV Pokemon, generate PIDs to ensure legal nature 2016-03-07 11:24:34 +08:00
Kaphotics
d34db0a4a9 Improve encounter level met check
DexNav boosts levels (up to 10?)
Non boosted => met level == slot level
2016-03-06 17:08:04 -08:00
Kaphotics
fea468e112 Encounter Slot met level check
Met Level should match the encounter slot's level.
Obviously for past gen checks this can't happen as the met level is
modified.
2016-03-06 16:46:07 -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
b1dfbdd419 Add Bank event checking 2016-03-06 11:19:09 -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
e9a85e8a88 Cleanup
Unused code from donor project
2016-03-05 16:58:20 -08:00
Kaphotics
ce2f970bad Simplify level calc
start at level 1, change loop to be less wordy
2016-03-05 07:58:22 -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
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
ea09161ffd Min Size = Initial Size
One pixel less resizes the listbox to one entry smaller. Fix by making
it not able to do that.
2016-03-04 19:39:43 -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
2d5fb503f3 FixMemories loop
Cycles through
--X-X => XX--- instead of -X-X-
2016-03-01 20:15:08 -08:00
Kaphotics
54595b063b Re-fix FixMoves
On second thought, that wasn't the best way. Just loop back and fix if
it created a hole. Coul always use a recursive call instead, but I think
this is a little cleaner.

The reverted change didn't fix PP or PP Ups for moves; I didn't think of
this new fix at the time!
2016-02-28 22:18:34 -08:00