Commit graph

2858 commits

Author SHA1 Message Date
Kurt
efd25a2c7c Add gen1->gen7 IV legality check
Also fix gen1/2 evo tree trimming error, thanks BeyondTheHorizon!
Also fix an exception when no static encounter can be generated for
1->7, match is now generated by checking gen1 and reusing the static
encounter creation info (now moved to core).
2017-03-09 20:27:03 -08:00
Kurt
0715f133d2 Add misc info editor for gen3
Closes #193
If there's more offsets found, this would be the place to edit oddball
stats.

Also threw in BP/Coin (& Rival Name FRLG only) editing.
2017-03-09 19:38:57 -08:00
Kurt
5887f1be6f Detect ability capsule usage on mystery gifts
Closes #932
2017-03-09 17:19:36 -08:00
Kaphotics
951711c45b Fix gen3 flag offsets for e/frlg
Were accidentally swapped; fix the underlying cause by reordering to show RS/E/FRLG instead of RS/FRLG/E, because that's how everyone refers to the games (RSE & FRLG).

#927
2017-03-09 11:12:57 -08:00
ReignOfComputer
ad8f661863 Add PanelScroll Value Check (#931)
Prevents ArgumentOutOfRangeException.
2017-03-08 23:32:52 -08:00
ReignOfComputer
13aa01ff99 Check for Null Event Constant Difference before Clipboard Export (#930)
Prevents ArgumentNullException.
2017-03-08 23:31:22 -08:00
Kurt
e9ea53ef8c Move wallpaper red check to BoxWallpaper
Add gen3-5 wallpaper checks
Rearrange and simplify general sprite layering logic to reduce some
comparisons
2017-03-08 21:50:34 -08:00
pokecal
6da4b3d41c Fix, stop using alt-ShinyIcon outside the box (#929)
with no filter for slot value, the alt-icon will be used for PKM-QR icon, team, and others.
2017-03-08 14:59:07 -08:00
pokecal
57c9b78108 replace RareIcon when wallpaper is red (#928)
* use alt-redstar when wall is red

* add rare_icon_alt

* add rare_icon_alt

* Add files via upload
2017-03-08 08:46:25 -08:00
Kurt
0a1a30eb5a Update 170308
Tweak batch editor behavior to show Any first (used by any pk* type),
sort alphabetically too. Highlights the propertytype text if the
property is not present for the type.
2017-03-08 00:16:34 -08:00
Kurt
baac850409 Gen4 dex fixes
Fix form1 offset for getter
move formNames into check (only fetch if forms exist for the dex
entries)
Add all forms to seen side when seen is toggled (behaves like gender)
2017-03-07 23:52:47 -08:00
Kurt
ea47d958ca Misc tweaks
Fix exceptions / insufficient behavior in pokedex4
change gen2 tutor name to be consistent with other gen variable names
replace gen2 trade checkresult with nothing as all properties are
already checked.
2017-03-07 23:41:05 -08:00
Kurt
a6b0e70577 Gen2 legality updates
Add the rest of the encounter tables (besides johto land, ha). Method
immediatley hopped out as the while-loop break never incremented the
read offset.
Add preference ranking for the gen1/gen2 encounters to better pick the
best match.
Add GSC move tutors (3 tutor bits are immediately after the TMHMs).
Special handling for gen1 encountertrades to pre-verify the OT name in
the event that a possible gen2 encounter exists.
2017-03-07 23:13:46 -08:00
Kurt
4874c174d8 Add gen4 pokedex editor
Fixes the setDex implementation for gen4
why u have to be so weird gen4
hgss has 0x1C extra form flags in the first form array... unused?
2017-03-06 22:43:46 -08:00
Kaphotics
3aa772bf22 Merge pull request #924 from kamronbatman/fixed_gen3_eggs
Fixes gen 3 egg name and language.
2017-03-06 22:11:03 -08:00
Kamron Batman
582c8a96bc Fixes gen 3 egg name and language. 2017-03-06 21:59:37 -08:00
Kaphotics
e285e04d20 Merge pull request #923 from ezakevoli/patch-1
Update Tables7.cs
2017-03-06 19:26:51 -08:00
ezakevoli
9b53242d31 Update Tables7.cs
Remove legality checks for Mawilite and Beedrillite thanks to PGL code will be released today.
2017-03-07 09:29:01 +07:00
Kurt
a4e04fc2fe Add WC6/WC7 ability checks
Ability type not possible to generate ability -> flag it. Thanks Sonic
Blader!
2017-03-05 22:08:00 -08:00
Kurt
c1ab0699d3 Fix forme set
Don't think this matters but use the correct method.
2017-03-05 20:57:05 -08:00
Kurt
199257fabd Re-add selectionlength
only use it when repopulating move legality
skip repopulation when clicking moves or met location since it's updated
at the end of the respective method
2017-03-05 20:00:27 -08:00
Kurt
41a000254a Fix ribbon/super training bindingflag value
Call GetProperties to mimic the overload bindingflags (which is not
Default).
Thanks tonycruz1999!
2017-03-05 18:05:08 -08:00
Kurt
5ecf01e481 Add gen5 pokedex editor
Cloned and modified from XY's editor

might as well simplify the dex setting for gen5. / -> >>, % -> &
2017-03-05 17:34:30 -08:00
Kurt
8550253842 Add gen3 pokedex editor
Uses SimplePokedex form since the pokedex is currently simple
2017-03-05 16:40:57 -08:00
Kurt
664eb05b65 Update 170305
Update changelog
Throw in 2 more trainer stats, thanks tastymeatball!
2017-03-05 12:41:25 -08:00
Kurt
27e2888345 Add more g7 stats
30 in this batch :O
thanks tastymeatball!
2017-03-05 11:41:12 -08: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
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