Commit graph

3059 commits

Author SHA1 Message Date
Kurt
578f05cd2e Initial Gen1 legality checks (WIP)
Have only tested pk1 format so far; there's still a few cases that are
unhandled (move discrepancies between games, trade gifts, event mew,
tmhm).

pls no report bugs unless you are very detailed (include WHY it is
wrong).
2017-02-12 17:00:03 -08:00
sora10pls
b3788ded57 Update menu sprites
10 Pokemon had their menu sprites updated in OR/AS. Diancie was accounted for, the other 9 were not
2017-02-12 16:14:16 -05:00
Kurt
22e49928c5 Tweak nickname language update behavior
Closes #849
2017-02-12 09:59:49 -08:00
Kurt
cbccc6a28b Add rby encounters
Includes fishing slots
todo on trades/static encounters; feel free to pull request (look at
tables6/7 for ref).
2017-02-12 09:52:31 -08:00
Kaphotics
dc7ac639d2 Merge pull request #848 from kwsch/b/nuget-pack
Changed default platform configuration for PKHeX.Core
2017-02-11 15:21:06 -08:00
Kurt
c9421f3c5b Add gen1 learnset/evo information
Still need encounter info for all 3 games.
2017-02-11 15:20:44 -08:00
Evan Dixon
f63e14239e Changed default platform configuration
Because creating a nuget package failed because it couldn't find bin\x86\Release, when it should have looked in bin\Release
2017-02-11 16:32:33 -06:00
Kurt
d248cdd280 Simplify batch editing
changes IV3 to faster variant used elsewhere,
sort properties alphabetically,
simplify 'any' intersection,
un-duplicate database filtering
un-duplicate box/folder per-pkm processing

-25 lines, a little bit of reorganization since the form has grown since
its initial inception
2017-02-10 23:54:36 -08:00
Kurt
1233a29661 Hide multiplayer icon (or/as) for X/Y saves. 2017-02-09 22:55:04 -08:00
Kurt
3dc5e9d579 Add legality suggestion commands to batch editor
Closes #842
Adds in ability for custom properties
Suggestables are called via $suggest
Only properties supported are Met_Location, Moves, and RelearnMoves
2017-02-09 22:45:58 -08:00
Kurt
fa145ec510 Add nickname clearing for batch editor
.IsNicknamed=False
results in the species name being applied.
Closes #839
2017-02-09 20:52:24 -08:00
Kurt
2f76d83add Add VC extension to openfiledialog filter
So crowded, put all files at the top for default behavior
2017-02-09 20:19:38 -08:00
Kurt
3b0485414d Move xorpad decryption out of winforms
simplify logic a little, fix a few issues
nobody uses powersaves & xorpads anymore tho
2017-02-09 00:44:38 -08:00
Kurt
eecb9094a8 Simplify gen3 ball check for gen7
Same approach as Gen4 ball, only check for the currently-banned species.
Glad these balltism banlists get simpler every new generation.
2017-02-08 15:59:12 -08:00
Kurt
92948885ff Simplify money/coin getset
Binary Coded Decimal
Closes #836
2017-02-08 15:51:22 -08:00
ReignOfComputer
2cc54b8182 Merge pull request #9 from kwsch/master
Update from upstream repo kwsch/PKHeX
2017-02-09 00:29:59 +08:00
Kaphotics
d20006805f Merge pull request #834 from kwsch/b/settings-save
Fixed settings not saving when form closes
2017-02-07 21:24:28 -08:00
Evan Dixon
bd4b400626 Cleanup
Whoops.
2017-02-07 23:13:33 -06:00
Evan Dixon
6504d5305a Fixed settings not saving when form closes
Should resolve #833.

This is why I prefer if statement logic to return statements littered everywhere.
2017-02-07 23:12:18 -06:00
Kurt
2f5b5790db Add xy trainer nickname
Closes #283
2017-02-07 16:25:13 -08:00
Kurt
9897599420 Reorder 6->7 logic
Geolocation data cleared when converting 6->7
this tradebank/georegion apply happens first but don't modify the pk6.
all that matters is that we do this before the clearing
2017-02-07 16:10:14 -08:00
Kurt
c205eef22e Update 170207
Update version string & posted binaries
2017-02-06 22:48:39 -08:00
Kurt
2ecf1c1c7b Improve file loaded transfer preference
use last char of file extension if available. edge case for pk[m]
considered:
pk[m] => 0x6D, -0x30 = 61d, &7 = 5, which prefers 6 instead of 7+ :)

adds a check for transferred pkm not having their CurrentHandler being
flagged as the save file (impossible for a transferred PKM to be still
handled by the OT).
2017-02-06 22:19:10 -08:00
Kurt
2b606dfc32 Cleanup
fixes qr7 import
2017-02-06 21:36:00 -08:00
Kurt
ca17dd4c76 unban gen3 ball starters g7 2017-02-06 07:24:56 -08:00
Kurt
fbc56ace6d Add more g7 stat records
Thanks skywalker25 & Holla!
2017-02-05 21:50:06 -08:00
Kurt
065795cdbe Add database IdentifierContains filter 2017-02-05 14:38:39 -08:00
Kurt
ac818424f2 Delay pkm file loading via cmd args to end
Closes #828
2017-02-05 13:24:39 -08:00
Kurt
80d81f92de Flag evo stone evolved pkm in eggs
Evolution stone pkm at level 1 slipped through (example Ninetails) while
levelup evos were already caught. Add the check to getValidPreEvolutions
as well as other evolution method checks.

Closes #827
2017-02-05 13:08:25 -08:00
Kurt
77c25c41d3 Add legality indication for exported QRs
only appears if the legality was checked (ie checking supported)
2017-02-05 12:55:17 -08:00
Kurt
00bb2ec84c Unprotect pelago setter
Allows it to appear in batch editor
closes #825
2017-02-05 12:54:36 -08:00
Kurt
f64d31c557 Faster G7TID generation
#823

generate a random T7SID instead of brute forcing a pair
2017-02-05 10:57:42 -08:00
Kaphotics
77a68c23b9 Merge pull request #823 from ReignOfComputer/f/g7tid-generator
G7TID Generator
2017-02-05 10:35:32 -08:00
Kaphotics
2afe7926a5 Merge pull request #822 from ReignOfComputer/b/invalid-ability-indexes
Add Check for Bad Ability Length
2017-02-05 10:08:36 -08:00
ReignOfComputer
2d0b216b33 G7TID Generator
Thought it'd be good to add a way to generate a TID/SID based on desired
G7TID. Using code from my repo at
https://github.com/ReignOfComputer/Reverse-G7TID-Calculator, thanks to
@PP-theSLAYER and @SciresM. For your consideration to add :)
2017-02-06 00:08:49 +08:00
ReignOfComputer
c7e570b92d Add Check for Bad Ability Length 2
Forgot to save, again.
2017-02-05 23:23:17 +08:00
ReignOfComputer
2de7da80b0 Add Check for Bad Ability Length
Prevents System.ArgumentOutOfRangeException: StartIndex cannot be less
than zero.
2017-02-05 23:23:02 +08:00
ReignOfComputer
930d1d12c9 Merge pull request #8 from kwsch/master
Update from upstream repo kwsch/PKHeX
2017-02-05 23:08:14 +08:00
Kurt
e95af533b7 Update gen7 apricorn table
Closes #819
Thanks @kamuisama !
Missed more than a few ;)
2017-02-04 23:58:18 -08:00
Kurt
7e23d13a78 Simplify egg sprite fetch
Call ChangeOpacity directly instead of layering with partial
transparency.
2017-02-04 23:42:55 -08:00
Kurt
f25adad211 Misc tweaks
allow qr for gens 1-3, change draginfo cursor type to object.
need to figure out how I can get it out of main
2017-02-04 23:11:48 -08:00
Kurt
5d3e167496 Box slot legality r3
Closes #814 thanks @JortonMV !
Closes #818 thanks @egzonqj !
(both were instrumental in regards to this commit, much appreciated)

Refactors to move the slot image generation per the save file to an
extension method, instead of having 4 methods (2 in main, getQuickFiller
& getSlotFiller, and 2 in box viewer, same names).

Uses the legality marker unscaled in the bottom left corner of the
sprite.
Fielded a few ideas in IRC (a commented-out line that tinted the sprite
red remains in the src), but the folks in IRC preferred the indicator.

When toggling the legality indicator, the box viewer has to be updated
as well as the main box slots.
2017-02-04 20:39:42 -08:00
Kurt
560e471753 Correct japanese text reference
Fetch the language name from PKX instead of grabbing the entire list. ja
!= jp :)
2017-02-04 18:28:34 -08:00
Kurt
25f6b5259b Refactoring
Add documentation for PKM/PKX, move some code around
2017-02-04 18:27:28 -08:00
Kaphotics
23c4f1e700 Merge pull request #802 from Tsunamical/class-fixes
Class consistency fixes
2017-02-04 14:59:24 -08:00
Kurt
c930b7eb7e Relocate box load/dump/verify to extensions
now with shiny new documentation
2017-02-04 14:58:30 -08:00
Kurt
9e24a3a26c Fix gen1/2 coin set & gen2 TM capping
now writes coin count correctly (uint != ushort) and TMs are capped at
99; HMs shouldn't be allowed beyond 1 but oh well.
2017-02-04 12:13:54 -08:00
Kurt
cadd7342c0 Change pkm date properties to public
Allows direct use for randomization via the Batch Editor
2017-02-04 10:43:18 -08:00
Kurt
718576393c Tweak apricorn inherit legality
best to store separate tables
due to reusing inherit6 in inherit7, move so that the compiler has them
in the same file (doesn't cause exception)
2017-02-04 10:42:56 -08:00
Tsunamical
3f76837512 Change PGT to a sealed class
This one is a bit more necessary as we have a virtual call inside PGT,
and if it isn't a sealed class, we may end up at a null dereference
under a race condition (which theoretically still *shouldn't* happen,
but rather be safe than sorry). This also brings it inline with PCD.
2017-02-04 11:20:59 -05:00