Commit graph

2732 commits

Author SHA1 Message Date
Kurt
5ae2849cdb Fix gen2 money/coin getset
Wasn't Binary Coded Decimal (only gen1 was)
2017-03-04 21:52:39 -08:00
Kurt
9bb799367d Add gen2 encounter static/trades 2017-03-04 21:45:08 -08:00
Kurt
19600263bd Fix 'complete dex' macro seen bit setting
Only set if the gender allows for it
Could possibly check the enabled state instead but this is more obvious

Closes #772
2017-03-04 17:32:07 -08:00
Kurt
a76b549a49 Switch MessageBox usage to util
Use the WinFormsUtil implementation of alert/prompt
2017-03-04 17:21:33 -08:00
Kurt
4908d13f8a Add gen1 ingame trades from gen2 source pkm 2017-03-04 17:20:20 -08:00
Kurt
a52083ee21 Add hidden power power calculating
Add setter for HPType for gen2 pkm
obviously can mess with gender in gen2

also tweaked gen1/2 IsNicknamed setters to clear nickname, as well as
use the PKX get species name per format rather than doing it within the
class.
2017-03-04 17:19:57 -08:00
Kurt
529f8d1348 Misc profiling improvements
ResetBoxes reduce method calls for new blank/setting, just set data.
160ms->4ms

ComboBox Validation calling SelectedText.Length=0 no longer needed 3y
after it was originally added.
268ms->0ms

speeds up main thread by a third of a second (wowww), but the
selectedtext removal makes the program snappier during regular use
(loading/modifying)
2017-03-04 09:38:39 -08:00
Kurt
33359b1526 Add more g7 stats
Thanks tastymeatball!
2017-03-03 21:18:18 -08:00
Kaphotics
0ddf6309f7 Merge pull request #920 from sora10pls/master
Remove legality checks on Mewtwonite X/Y
2017-03-03 09:16:56 -08:00
sora10pls
56923b6956 Remove legality checks on Mewtwonite X/Y 2017-03-03 12:10:17 -05:00
Kurt
5c7ef42b54 Update reflection property fetching
Closes #919

Properties fetched would return PKM.cs properties (not declared in XK3
or PK3), such as Hidden Power Type.

The setter for Hidden Power type is unused everywhere, but was called
via reflection on transfer away from xk3/ck3 format. This caused IVs to
be tampered with in most cases.

By only fetching Declared properties (ie, within XK3.cs only), only the
'real' shared properties will be transferred. Extending this to the
batch editor, we can use this Declared-only filtering to grab more pkm
formats. While things are being updated, throw in pk1/pk2/bk4/ck3/xk3
formats to the dropdown.
2017-03-02 21:00:41 -08:00
Kurt
ba40f74bf1 Fix silvally form change check
Closes #917
2017-03-02 18:28:43 -08:00
Kurt
80013b0367 Add gsc headbutt/rock smash slots
tad bit of rearranging
2017-03-02 18:24:56 -08:00
Kaphotics
e29f7ebd5a Merge pull request #916 from pokecal/master
add Vivillon FormValue
2017-03-02 12:21:45 -08:00
pokecal
77dd8d1829 add Vivillon FormValue
This code will not change the value, even if the value is illegal.
2017-03-03 04:22:18 +09:00
pokecal
6ede0b3bce add Vivillon Form
I first tried to put the control in same position as Gen6, but there is no space.
2017-03-03 03:52:11 +09:00
pokecal
40b3887bd0 add Vivillon FormValue
This value also once set when newgame start, depend on 3DS location settings.
2017-03-03 03:36:02 +09:00
pokecal
10ce89765d Merge pull request #3 from kwsch/master
Update from upstream repo kwsch/PKHeX
2017-03-03 01:53:22 +09:00
Kaphotics
30a8e3fa39 Merge pull request #915 from kwsch/f/autocorrect-settings
F/autocorrect settings
2017-03-02 08:44:30 -08:00
Evan Dixon
0eda87fdf6 Averted potential null reference exception 2017-03-02 09:40:33 -06:00
Evan Dixon
beed20cfdf Reloading settings doesn't work right 2017-03-02 09:37:54 -06:00
Evan Dixon
0946b00075 Delete settings if corrupt 2017-03-02 09:28:33 -06:00
pokecal
8e2d9fdba1 Merge pull request #2 from kwsch/master
Update from upstream repo kwsch/PKHeX
2017-03-02 11:21:56 +09:00
Kaphotics
d4d384fff4 Merge pull request #911 from kwsch/f/clickonce
Made clickonce less intrusive to normal builds
2017-03-01 13:07:42 -08:00
Evan Dixon
91459f66a7 Made clickonce less intrusive to normal builds 2017-03-01 14:50:38 -06:00
Kurt
9df18d2bd1 Tweak gen3 sav load to force version prompt
Hold Control when opening the save file
Closes #887
2017-02-28 23:23:58 -08:00
Kurt
58bd3640b4 Fix order of operation
Closes #909
yeah bit shifts are after +/- silly me
2017-02-28 23:13:23 -08:00
Kurt
c083a2e565 Add past-gen genderless apricorn inheritance
Closes #906

Other species may not have been in the Inherit_Apricorn6 array, but they
are covered in the AlolanScans/Offspring tables.
2017-02-28 22:06:47 -08:00
pokecal
6587a9f25b Merge pull request #1 from kwsch/master
Update from upstream repo kwsch/PKHeX
2017-02-28 19:43:17 +09:00
Kaphotics
081b22ec58 Merge pull request #905 from pokecal/master
add FormList to Gen7 Pokedex Editor
2017-02-27 23:15:38 -08:00
pokecal
405a1ee897 Add files via upload 2017-02-28 15:38:18 +09:00
Kurt
0e336ae5e3 Add 5->6 transporter app trashbytes
invalid species/language sets no trash
2017-02-27 21:08:56 -08:00
Kurt
051dba736e Add egg checking for gen2
Delay egg move checking until the end to finish validating moves
2017-02-27 20:57:24 -08:00
Kurt
3bb8973d0f Add legality check indication to report window
Closes #899
2017-02-27 18:25:22 -08:00
Kurt
ea518e2ece Remove pkm personalinfo reference
Gen7 bits were shuffled relative to gen6, so fetching gen6 with gen7
bitflags will yield the wrong tutor moves.
2017-02-27 18:22:28 -08:00
Kaphotics
a1e0ed020e Merge pull request #904 from javierhimura/master
Fix getTutorMoves from gen 7
2017-02-27 18:17:55 -08:00
Kurt
7ab80944fb More g7 stat records
Thanks tastymeatball!
2017-02-27 18:14:20 -08:00
javierhimura
1763bc1975 Merge branch 'kwsch' 2017-02-28 03:10:05 +01:00
javierhimura
7525ac2b21 Fix getTutorMoves from gen7 2017-02-28 03:08:23 +01:00
Kaphotics
7c10c0d7c5 Merge pull request #903 from Mrtops/patch-2
Update README.md
2017-02-27 15:17:14 -08:00
Mrtops
b31bbaec3e Update README.md 2017-02-27 18:05:16 -05:00
Kaphotics
e55894f28c Merge pull request #900 from javierhimura/master
Some small tweaks in get moves functions
2017-02-27 12:13:05 -08:00
javierhimura
bccfc7ee13 Merge branch 'kwsch' 2017-02-27 19:53:02 +01:00
javierhimura
3f80d07b6f Remove gen 2 moves above max moves in gen 1 for moves learned in gen 2 by tradeback pokemon 2017-02-27 19:50:16 +01:00
javierhimura
a9dbf677ae getValidMoves is called 3 times to return level up moves, tmhm moves and tutor moves but the function is not filtering by level, add optional parameter to filter by level moves 2017-02-27 19:47:48 +01:00
javierhimura
1bd885b609 Filter by generation in function getTutorMoves 2017-02-27 19:41:15 +01:00
Kurt
b87f1fc8db Remove showdown import button clicks
Button not visible -> onClick method not called; just call the method
directly.

(import a set on the Met tab via the tools dropdown, with shiny. won't
import a shiny pkm).
2017-02-27 08:59:20 -08:00
Kurt
38e173a36f Add balls to g3 pcitems 2017-02-26 22:49:08 -08:00
Kurt
8afcbff4a0 Add gen3 PC Item 'pouch'
Closes #889
Thanks @fattard !
2017-02-26 22:38:15 -08:00
Kurt
73966e4c09 Basic gen2 legality checking
yeah detecting eggs is not going to be fun
guess that process would be needed for gen3 egg detection anyway
2017-02-26 21:46:04 -08:00