Commit graph

57 commits

Author SHA1 Message Date
Kaphotics
4d1c621eb5 Add Pressure/Flute encounter modifications
Thanks Angeflo for the report, including test cases.
2016-04-20 19:47:40 -07:00
Kaphotics
027e0e19b1 Refactoring 2016-04-18 18:21:50 -07:00
Kaphotics
e8cc1a386d Add egg level check
Catches level 12 charizards and level 50 tyranitars that were bred
2016-04-07 18:19:21 -07:00
Kaphotics
65901f7f41 Add more strict ball checks
Sport/Apricorn/Safari/Dream checked

Also snuck in encountertype tracking for readability/calcOnce
2016-03-27 22:05:51 -07:00
Kaphotics
a277b4a734 Ingame Trade exclusion
Return early if not ingame trade
2016-03-26 16:40:12 -07:00
Kaphotics
f1c119214a Method reordering
Nothing changed, just organization.
2016-03-22 22:50:54 -07:00
Kaphotics
38d67c9ef1 Refactor Safari to be an encounter slot 2016-03-22 22:31:30 -07:00
Kaphotics
36d74b8d85 Refactoring & Fixes
Add tracking for wild / link encounters
Fixed sylveon ball check
Added Demo link pkm
Added Horde Hidden Ability checks
2016-03-22 19:47:13 -07:00
Kaphotics
fa68aa7a29 Minor fixes
Fix ribbon bits, fix formchange
2016-03-21 23:43:03 -07:00
Kaphotics
262abad921 Improve ingame trade filtering
More strict.

Dunno about PID/EC values.
2016-03-21 21:51:36 -07:00
Kaphotics
b109af18e7 Add History check, Expand ball check 2016-03-21 21:31:06 -07:00
Kaphotics
e938aa6765 Add more stringent wc6 comparators 2016-03-21 19:53:02 -07:00
Kaphotics
82a9850c4a Tweak nickname check severity 2016-03-19 18:06:02 -07:00
Kaphotics
729a69dbee Add giratina form move case 2016-03-19 12:47:24 -07:00
Kaphotics
119efdb45e Bump dexnav level to 30 2016-03-19 09:28:15 -07:00
Kaphotics
a6d5494193 Increase dexnav max boost
13->25
2016-03-19 09:14:48 -07:00
Kaphotics
0d13e812a9 Fix Keldeo Secret Sword 2016-03-19 07:53:55 -07:00
Kaphotics
b3337cbf24 Add missing static encounters
Resolves #84
2016-03-18 22:48:53 -07:00
Kaphotics
8c4ef40a82 Tweak encounter detect
DexNav only under the correct conditions (dexnav may not have an eggmove
for some level boosted ones), fix for dynamic range
2016-03-18 17:18:01 -07:00
Kaphotics
ce2b2949e8 Fix Rock Smash slots
DexNav table derivation was reusing the same objects, just create new
ones
2016-03-17 23:25:59 -07:00
Kaphotics
6d6b44f43b Add alt slots for XY
Rustling/Swoop/Drops
2016-03-17 20:20:34 -07:00
Kaphotics
213578163e Fix shedinja logic
Can have egg moves, and locations are irrelevant
2016-03-17 19:37:06 -07:00
Kaphotics
d436caf273 Minor tweaks 2016-03-17 18:28:51 -07:00
Kaphotics
d986b3bb86 Add ingame trade checks
There's memories associated, IVs, EVs, whatever; best to check them in
the individual legality check methods.
2016-03-17 17:25:21 -07:00
Kaphotics
0fc4da3431 Begin adding EncounterTrade
Fixed a few things in the EncounterStatic, added a few attributes
(antishiny, Gender, Ability, IV, Contest) for appropriate pkm
2016-03-16 23:29:28 -07:00
Kaphotics
14266b5404 Add castform gift + etc
Add nature locks for sharpedo/camerupt
2016-03-16 19:50:18 -07:00
Kaphotics
d471c965aa Add fossil encounter checks 2016-03-16 19:15:49 -07:00
Kaphotics
eedddce9a3 Fix dexnav & static encounter locations 2016-03-16 07:45:02 -07:00
Kaphotics
cd024f25b0 Fix beldum gift 2016-03-15 23:10:18 -07:00
Kaphotics
b9893a9472 Minor fixes
Fix hot springs egg location
Fix link gift not returning valid
2016-03-15 22:04:04 -07:00
Kaphotics
28568c2908 Tweak evo levelup param
0 - item required (method 5,6,7)
1 - trade required (method 8)
2 - level required (everything else)

Fixes encounter checks of trade evolution pkm
2016-03-15 21:46:49 -07:00
Kaphotics
116f941dcf Add Nickname legality check 2016-03-15 18:56:18 -07:00
Kaphotics
6b410dd65c Add basic form moveset checking
Also added Pikachu/Rotom form moves
2016-03-14 23:46:18 -07:00
Kaphotics
9ab50c1342 Fix Dialga/Palkia 2016-03-14 00:48:24 -07:00
Kaphotics
1ed58fd8d3 Fix ORAS Starter location
Oops, not littleroot town.
2016-03-13 20:55:20 -07:00
Kaphotics
e996135dd3 Fix comparison
Wrong way!
2016-03-13 20:43:29 -07:00
Kaphotics
c300e80e19 Fix Species Comments 2016-03-13 20:28:40 -07:00
Kaphotics
93677fcdda Add Spiritomb/Voltorb
Shoulda just checked stationary encounters for ORAS first ;)
2016-03-13 20:22:29 -07:00
Kaphotics
150a1c942f Add Electrode encounter 2016-03-13 20:20:11 -07:00
Kaphotics
623866da06 Fix prevo check leveling
current level can be the evolution threshold, so decrement prevo level
afterwards.
2016-03-13 19:58:23 -07:00
Kaphotics
752b315bb1 Add Lati@s encounters & Gift Checking
Gifts should always be in PokéBalls
2016-03-13 19:40:47 -07:00
Kaphotics
0d81fd2d09 Add Kecleon encounters 2016-03-13 16:41:36 -07:00
Kaphotics
cc8f962acd Add Static/Friend Safari Encounter checking 2016-03-13 14:56:25 -07:00
Kaphotics
ce87cf675f Fix getBaseSpecies 2016-03-12 15:05:01 -08:00
Kaphotics
0ebbcbccb4 Move Legality check rewrite
Moved to checks
Returns why it's invalid
Added base egg move checks -- all eggs need level1 moves, can only be
pushed out. The move table acts as a sliding window; grab a list of
level1 moves, tack on relearn moves, then observe window view (last 4).
Added egg met level check
2016-03-12 09:16:41 -08:00
Kaphotics
c4612e2d9f Legality ContextMenu now returns analysis
Hooked up all the methods and can spit out if invalid.

I plan to put a legality indication where QR! was, but the legality
analysis needs more checks (moves, ability, nickname, ball, fateful...
you get it) and stability.

Have fun playing with the initial legality checks 😄
2016-03-11 19:43:40 -08:00
Kaphotics
9604589a4a Add slot legality fetch for pk6
calling getEncounterSlots(pk6) yields a list of locations and valid
slots for given input pk6.
For later use in suggestion of legal values.

Flexible enough for future fetch of past gen, but I doubt I'd ever be
motivated enough to implement past gen checks.
2016-03-09 21:32:42 -08:00
Kaphotics
d34db0a4a9 Improve encounter level met check
DexNav boosts levels (up to 10?)
Non boosted => met level == slot level
2016-03-06 17:08:04 -08:00
Kaphotics
fea468e112 Encounter Slot met level check
Met Level should match the encounter slot's level.
Obviously for past gen checks this can't happen as the met level is
modified.
2016-03-06 16:46:07 -08:00
Kaphotics
b1dfbdd419 Add Bank event checking 2016-03-06 11:19:09 -08:00