Commit graph

218 commits

Author SHA1 Message Date
Kurt
8a77a1cd6c First look at PK4 code 2015-12-26 13:00:00 -08:00
Kurt
1644e6c848 Use traded status (HT Name) when setting untraded
This now prevents untraded mons from being modified (which is intended).
2015-12-26 10:42:29 -08:00
Kurt
7f0d714683 Tweak trade status detect for modifying geolocation 2015-12-26 10:37:07 -08:00
Kurt
5325975e76 Implement gen5 event PID method
force shiny method, thanks to all the researchers active during genV RNG
research.

Slight tweaks to force ability.
2015-12-25 18:17:47 -08:00
Kurt
9b7394f631 Fix order of operation
cast happened before modulo, resulting in negative return values
2015-12-25 17:54:14 -08:00
Kurt
c91512dc15 Implement Gender/Ability criteria 2015-12-25 17:06:56 -08:00
Kurt
20ae99f20d Finish PGF import 2015-12-25 14:07:17 -08:00
Kurt
374f8b0c83 Fix pk6 modifying and event handling logic
Memories won't be modified if the window has it disabled
Geolocations won't be modified if the Pokemon is an event Pokemon and is
so-far untraded.

Misc change: initializing boxes won't do unnecessary calcs.
2015-12-24 15:38:07 -08:00
Kurt
1bb07b5998 Add pgf skeleton & supports
Untested and not intended to be correct; just establishing the framework
for now.
2015-12-22 21:14:50 -08:00
Kurt
54bd371b50 Fix Showdown Export IVs 2015-12-20 10:55:47 -08:00
Kurt
308dfd2c24 Fix Showdown Export nicknames 2015-12-20 10:50:09 -08:00
Kurt
e4e662e2f2 Wonder Card update
Added preview display for all Wonder Cards; consistency in calling them
Wonder Cards.
2015-12-17 21:15:40 -08:00
Kurt
9e4f13d00d Reorganize & SAV Backup
Alt Click the Export SAV button.
Remove Tools Tab and transferred richtextbox outputs to Clipboard
exports.
2015-12-17 18:55:59 -08:00
Kaphotics
36a1550dd3 Add GameSyncID property
Thanks daxtsu for figuring out where this value is stored.

I plan on adding a "GameSync ID" related button in the Main window's SAV tabs.
2015-12-15 11:32:21 -08:00
Kurt
6101fd2123 CopyTo 2015-12-14 07:52:05 -08:00
Kurt
a51bf8389c Switch DataTable to int[][]
Little less silly.
2015-12-13 22:31:34 -08:00
Kurt
627f8e9c91 Remove unused array 2015-12-13 20:12:08 -08:00
Kurt
f015ca5a58 Add support for Forms
PKHeX & Showdown have to have parity with Form descriptions.
2015-12-09 19:57:53 -08:00
Kurt
62df1f473f Add BattleBoxData fetching 2015-12-09 19:40:08 -08:00
Kurt
9013dc0641 Tweak set IO
Return empty string instead of null
Recalculate current level (ignore corrupted stats)
2015-12-09 19:38:09 -08:00
Kurt
71f428cb69 Fix party accessing
Return current party member counts, no blanks
2015-12-09 19:18:39 -08:00
Kurt
f664bbe34f Write PK6 -> ShowdownSet export text 2015-12-09 19:16:50 -08:00
Kurt
dd910e6aa1 Tweak set override logic
If the method defines whether or not the sub should be called, that will
be used. Else, it will use the global setting.
2015-12-08 06:19:34 -08:00
Kurt
a4b5033b1e Mess with showdown exporting
Still nonfunctional, just have to write the encoder after relaying all
relevant information to the ShowdownSet
2015-12-07 21:46:48 -08:00
Kurt
fed7bacac3 Further cleanup of sprite assets
Reduces the size
2015-12-06 22:40:48 -08:00
Kaphotics
5b14b99872 WC6 change 0xFD IV
25+2*31 --> 2*31 (no 25)
2015-12-05 11:29:16 -08:00
Kurt
0ff7c5c152 Tweak IV generation further to account for 0xFD
Thanks Wanderer1391 for continuing the investigation!
2015-12-02 20:42:16 -08:00
Kurt
9ac9739e3e Tweak wc6 Random IV/PID
No longer gives 3 flawless IVs by default (now only for unbreedables);
should now behave even closer to what the game does.
2015-12-02 18:18:23 -08:00
Kurt
b4c4419015 Minor reorganization
CLeaned up some unnecessary parenthesis and simplified a few
expressions.
2015-12-01 23:08:16 -08:00
Kurt
c9dad89e11 Minor refactoring
Cleaned up a little bit of code and used more magic references.
2015-11-29 12:59:13 -08:00
Kurt
864c5bfd65 IVs and Fateful Encounter 2015-11-26 19:14:41 -08:00
Kurt
d2103a96b3 Update friendship/memory logic 2015-11-26 19:07:20 -08:00
Kurt
28390758e6 Implement wc6->pk6
"There's not enough data in the wondercard to faithfully create the
Pokémon!"
2015-11-26 07:49:44 -08:00
Kurt
0ac33a0639 Cleanup
Remove unnecessary logic.
2015-11-25 22:52:23 -08:00
Kurt
520af0ff55 Tweak stat retrieval logic 2015-11-25 22:46:16 -08:00
Kurt
c9d0db23ac Refactoring
Increase flexibility, use game personal data and structure to clearly
define what is going on.

Helps for implementing future games.
2015-11-25 22:20:09 -08:00
Kurt
8a2e7f3f74 Fix ternary null input
Having a ternary result in null creates a new param of []{ null },
instead of a true null.
2015-11-25 18:28:21 -08:00
Kaphotics
03a773f9bb Update WC6.cs
Initialize the default size of wc6 to 0x108
2015-11-25 18:08:54 -08:00
Kurt
7469150a02 Add Wondercard class 2015-11-22 13:38:16 -08:00
Kurt
19ff462fff Relocate PokePuff sav properties 2015-11-21 19:17:35 -08:00
Kurt
0064d1b497 Finish conversion of tr stats to SAV6 properties 2015-11-21 17:23:00 -08:00
Kurt
925699af0d Fix Trainer Info editor issues + bugfixes
Fixed reported bugs by Wanderer1391; found a bunch more as a side effect
of refactoring. Didn't like how so many values were hard coded so I
moved them all into the SAV6 class for easier r/w.

Re-enabled the Map Coordinate editing for non-ramsavs.
Updated the Map Coordinate display to the ingame coordinate style (using
NumericUpDowns), the coordinates for player.X and player.Y are divided
by 18 to get the current cell coordinates.
2015-11-20 22:02:15 -08:00
Kurt
b16ee55ed4 Assign an identifier for PK6 box/spot origin 2015-11-15 22:03:36 -08:00
Kurt
e4bc9e58f0 Box and Party properties for easy manipulation 2015-11-15 21:58:34 -08:00
Kurt
861881a37d Allow new instance of PK6 with no arguments 2015-11-15 21:56:00 -08:00
Kurt
c15cbe2870 Separated initialization bool for clear purpose
formInitialized is for closing the splash screen and showing the main
form.
fieldsInitialized is for setting up and not running updates until fields
are ready to be updated.

Arceus is now the initial species instead of language dependent
(Abomasnow).
2015-11-05 22:59:55 -08:00
Kurt
f67441cc89 Change byte to int
Allows it to be easier used by comboboxes; SelectedValue = (byte) does
not work.
Instead of having these cast to int whenever used, this way is more
preferable.
2015-10-27 17:58:53 -07:00
Kurt
76d6320b21 Simplify Friendship modification on set
Copies instead of highbounds.
Added supporting property in PK6 class.
2015-10-25 18:46:17 -07:00
Kurt
b1c0beff74 Send "chunk uninitialized detection" to class
yeah, get educated.
2015-10-24 16:52:25 -07:00
Kurt
101c0ad80f Minor bugfixes and cleanup
Added an Edited property for the save
blank slot (encrypted) is initialized once and can be used elsewhere
instead of constantly being recreated for no reason.
Fixed having 32 boxes for non-saves

All SAV editing forms now set the Edited flag when saving->close.
2015-10-24 16:33:44 -07:00