Commit graph

284 commits

Author SHA1 Message Date
Kaphotics
6ece2a5f1e Relocate JPEG code
-14 lines
2016-03-04 22:09:54 -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
Kaphotics
1817c52baa Revert "Fix -X-X moves => X-X-, now XX--"
This reverts commit b03c106599.
2016-02-28 22:10:35 -08:00
Kaphotics
b03c106599 Fix -X-X moves => X-X-, now XX--
Shortest way is using linq; this takes another line but is easier to
port for those unfamiliar with linq.
2016-02-28 17:16:53 -08:00
Kaphotics
82cdcf0e3b Add pgf retrieval 2016-02-28 13:50:06 -08:00
Kaphotics
572e1b9e32 Add 5th Gen save file object
new SAV5(data) => easy access to boxdata/party for export.
2016-02-27 19:28:41 -08:00
Kaphotics
accbbd89eb Add Sun/Moon Version IDs
We'll see if this guess holds up.
Possible that the VC games will have Version IDs afterwards.
2016-02-27 18:25:27 -08:00
Kaphotics
37ad88a4ce Feelings for Trades
0-9 Bank
0-19 Trade
Thanks suloku
2016-02-27 10:59:40 -08:00
Kaphotics
47f53a3a57 Add Gardevoir Forme
Shift all afterwards by 2.
2016-02-25 22:02:51 -08:00
Kaphotics
11b8010992 Cleanup
Use less lines to do the same thing
2016-02-24 14:38:12 -08:00
Kaphotics
968eabd053 Reorganization for future changes
Moving legality stuff into separate class
2016-02-22 22:52:48 -08:00
Kaphotics
153d058d67 Fix nature reset 4->X 2016-02-19 17:12:10 -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
4af5e1c299 Add FormDex setting 2016-02-13 20:20:55 -08:00
Kaphotics
54e5b2b30c Fix Transfer Ability 4->6
Clear Shiny Leaves/Crown, and fix ability detection
2016-02-13 19:40:51 -08:00
Kaphotics
eae4b2ad5c Add Pokedex entry form editing
Thanks suloku for mapping out the order of flags!

Fixed a few bugs with the existing ModifyAll code.
2016-02-13 19:17:35 -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
52b0b107f9 Fix OT Gender not being set on 5->6 2016-02-11 23:29:57 -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
aeab85cb83 Simplify Characteristic calc
++ increments after calculation, array accessor uses the calculated
value
2016-02-11 20:52:10 -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
97b766eadb Add SAV6 ChecksumsValid property 2016-02-09 15:30:10 -08:00
Kaphotics
091f5c10d2 Simplify getStringList method calls
No need to go to List and back to array.
2016-02-09 15:27:24 -08:00
Kaphotics
64d29e3278 Remove unnecessary braces 2016-02-05 22:10:08 -08:00
Kaphotics
a329a17c62 Tweak Box name get/set 2016-02-01 22:33:15 -08:00
Kaphotics
2d4d973689 Refactoring
lines--
2016-01-31 23:15:54 -08:00
Kaphotics
e6d9a0681e Fix CardTitle trimming
Trim off null terminators
2016-01-31 22:14:22 -08:00
Kaphotics
3c1c6b86ba Clear OT memories on set if !Gen6 2016-01-28 19:35:48 -08:00
Kaphotics
1c53243283 Remove ram2sav
Also removed injectiondebug and trade packet handling.

Improved BAK suggested filename (last saved timestamp)
2016-01-27 20:24:32 -08:00
Kaphotics
6ab7ba4bc1 Add LastSavedTime string
Backup purposes.
2016-01-27 19:57:17 -08:00
Kaphotics
8469d04417 Refactoring
Polishing polish
2016-01-26 21:04:17 -08:00
Kaphotics
35465b837e Minor refactoring
Load used WC even if dismissed, i/o for main display operates by passing
PK6 instead of byte[]
2016-01-24 10:19:30 -08:00
Michael Scire
6230dd7bd6 Add Pokeblock editing support. 2016-01-23 13:00:44 -08:00
Kaphotics
74720e484a Add resumed time
Guess this is how they can track how long your current session has been
active.
2016-01-23 10:44:35 -08:00
Kaphotics
cfc93ef96e Minor Tweaks (ORASDEMO)
Simplifies checking for ORAS so that ORAS includes ORASDEMO by default.

Hide tab pages properly.
2016-01-23 08:42:11 -08:00
Kaphotics
808e4b6a9f Add Adventure Start editing
Seconds Since 1/1/2000; can go negative (more than 32 bits, but we can't
ever realistically do that).
2016-01-22 19:39:03 -08:00
Kaphotics
ea000cc95d Avoid invalid cast errors
Should only use Util.getIndex when a BindingSource is set with a
retrievable value. The method will now throw an exception instead of
handling it to let the programmer know that the wrong fetch method was
used.
2016-01-21 22:55:20 -08:00
Kaphotics
f8f0d76793 Cleanup
Simplified cbItem a little.

Check for null input, then null selected value; catch only happens if
the method is fed something irregular.
2016-01-21 22:40:59 -08:00
Kaphotics
061309ccd6 AdventureStart -> LastSaved
Misattributed
2016-01-20 21:25:33 -08:00
Kaphotics
a8a89c3bb2 5bit day
0-31, should fit all possible dates.
2016-01-20 20:40:52 -08:00
Kaphotics
025b5a3c52 Add Adventure Start to editables
With that I'm pretty unhappy with the large form; might tabulate the
view in later commits.
2016-01-20 20:38:21 -08:00
Kaphotics
33baac4fff Add Adventure Start Attributes
So many different ways to store the same thing...
12bit year
4bit month
4bit day
2016-01-19 07:50:05 -08:00
Kaphotics
c768124591 More refactoring
Removed a lot more unneeded parenthesis.
2016-01-17 17:07:19 -08:00
Kaphotics
dd83330191 Implement ContextMenuStrip translation 2016-01-17 15:35:02 -08:00
Kaphotics
0b89682a64 Refactoring
Now have win10, new vs, new resharper, new c# tricks
2016-01-17 13:27:24 -08:00
Kurt
508a23d386 Clean Utility Methods
Rewrote LayerImage & ChangeOpacity to be faster (graphics & lockbits
instead of manual pixel by pixel changing)
Removed control based string conversion methods
Used linq to parse hex instead of Numerics
2016-01-09 12:46:15 -08:00
Kurt
bd5a1c7db3 Use string method instead of control based 2016-01-09 12:46:13 -08:00
Kurt
52ea545b29 Remove more parenthesis
No functional change, just src clarity.
2016-01-05 18:16:58 -08:00