Commit graph

27 commits

Author SHA1 Message Date
Evan Dixon
52c4fbbe97 Converted PKHeX.Core to .Net Standard
Refactored and rearranged things as needed to allow the change
2017-05-11 23:34:18 -05:00
Kurt
691493cafe String editing refactor
Move all sanitization operations from PK* and SAV* to PKX; add general
method for fetching a generation specific string
Changes the Text subform editor to show trash bytes when appropriate.
Special characters to be shown can be easily inserted in the future.
2017-04-09 14:06:50 -07:00
Kurt
9da79379f8 Pokédex refactoring
Add ability to get SeenCount & CaughtCount
switch gen1/2/3 get/set to use int species (since that's all they end up
using), removes the need to create a pk6 template for setting the flag
via the dex editor.
2017-03-14 22:41:15 -07:00
Kurt
5ae2849cdb Fix gen2 money/coin getset
Wasn't Binary Coded Decimal (only gen1 was)
2017-03-04 21:52:39 -08:00
Kurt
2479cad6ea Japanese checksum fix & refactoring
Simplify checksum code (-50 lines)
set the bitflag on set, and clear on clear; don't clear and re-set if
setting.
Remove ToArray in favor of getData array fetch.
2017-02-24 23:01:07 -08:00
Kurt
92948885ff Simplify money/coin getset
Binary Coded Decimal
Closes #836
2017-02-08 15:51:22 -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
c401781526 Add pk6/pk7 differentiation
Moves a lot of const values from SAV to Legal for reuse.
Closes #754
2017-01-26 19:18:20 -08:00
Kurt
3f218968c5 Refactoring & fixes
Fix blank sav creation for gens 1-3 (data vs Data references, version
overrides)
Fix main form init with gen2 first (check for altform usage like all
other gens)
Use GameVersion specific blank fetch instead of generation ID
2017-01-14 16:43:16 -08:00
Kurt
7da6f1ab1d Cleanup 2017-01-08 00:14:34 -08:00
Kurt
595c7eb4c5 Split winforms to separate project
resources still are associated with winforms, eh
program still runs fine and I've replicated the mono build options. lmk
if this breaks stuff
2017-01-07 23:54:09 -08:00
Kurt
ed47e389d4 Improve supported extension openfiledialog
Existing code supported 3-x, wasn't updated for gen1/2.
Allows gens1/2 to override to their own gen format filter, and allows
gen7 to allow finding of pk1 files (not yet converted).

Noticed the backup would overwrite an existing backup; thus we only back
up if the target file exists AND the backup doesn't already exist.
2017-01-04 22:22:50 -08:00
Kaphotics
85859f9db3 Fix daycare offsets
Daycare seeds are now 128 bits instead of 64.
Remove overrides that duplicate virtual method
2016-10-29 19:11:47 -07:00
Kaphotics
ade97e0067 Generalize box wallpaper interaction
Move get/set logic into abstract class, only offset fetch is overridden
2016-10-29 11:32:21 -07:00
Kaphotics
540cd5ac99 Use PC inventory sprite for g1/2 2016-10-27 19:59:19 -07:00
Kaphotics
26ff17fd24 Use added maxspecies from legal
Instead of a hard-coded number.

Maybe I should have a species/move/Ability/Item/Ball enum
2016-10-23 21:59:27 -07:00
Evan Dixon
0b7d108245 Added "All Files" to save filters (#323) 2016-10-17 07:49:40 -07:00
Kaphotics
e9859a7b03 Simplify BigEndian io
Use BigEndian class now that it exists, instead of operating off little
endian and specifying swaps.

leads to less method calls and more obvious means
2016-10-09 17:41:44 -07:00
SciresM
33b0dc587d PBR support (#290)
* Initial (still buggy) PBR commit

* Basic save slot support
2016-09-26 16:14:11 -07:00
Michael Scire
0b52c9a208 Fix Gen I/II Save cloning bug 2016-09-11 14:54:20 -07:00
Kaphotics
f0d13da35a MaxMoney capping 1-4
Closes #245

Thanks @sora10pls !
2016-09-08 20:20:32 -07:00
Kaphotics
f9cfdd6c18 Add more descriptive backup names
\u02D0 = ː

If anyone has problems with this, speak up (and . will be used instead)
2016-09-04 15:54:16 -07:00
Kaphotics
387ed9cbcc Refactoring
Gen1/2 arrays to legality tables

Add PP tables for gen1/2 too
2016-09-04 14:00:52 -07:00
Kaphotics
316e9a2795 Misc cleanup
( ͡° ͜ʖ ͡°)
2016-09-03 23:54:11 -07:00
Michael Scire
5fb03b8730 Japanese G/S support. 2016-09-03 23:15:09 -07:00
Michael Scire
a3250a0d56 Full Gen II Save editing for US GSC, JP C (JP GS to come) 2016-09-03 18:57:54 -07:00
Michael Scire
2e938a6ab2 Initial (pretty broken) US SAV2 loading/viewing 2016-09-02 14:20:39 -07:00