Commit graph

74 commits

Author SHA1 Message Date
Kaphotics
1779420af1 Add gen3 personal info, move object refs
All PersonalInfo arrays are referenced from PersonalInfo's class instead
of Legal

Fixed a few bugs in the process (species translation, gen switch)
2016-07-03 15:05:15 -07:00
Kaphotics
54bc0b320d Add PersonalInfo for gens4/5
Abstracted the PersonalInfo class to the multi-generation format.
Structure hasn't changed since BW sans a few additions.
2016-07-02 20:24:17 -07:00
Kaphotics
6378eb7f56 Current progress
Still a few milestones left to hit before official release.
2016-06-19 21:22:43 -07:00
Kaphotics
20f3a10838 Refactor
Remove unnecessary reference, Core is within Legal
2016-05-29 14:44:08 -07:00
Oliver Garcia
9a37eda9ba Check if the specified move is valid as Sketch move 2016-05-10 17:03:51 +01:00
Kaphotics
ea229b4c70 Fix level 2 blissey with Cleffa egg move
Other other splitbreed with 3 species in chain are Roselia (evo by Item)
and Marill (evo @ 18); this hard check is hacky but works.
2016-05-09 21:09:38 -07:00
Kaphotics
c44f596e08 Fix Egg evolution lineage check
If [i]'s evolution chain has (species), add i to list.
Previously it only looked downward (metapod -> caterpie), now with this
it looks upward (beedrill <- metapod)

Thanks nymeros!
2016-05-09 20:58:12 -07:00
Kaphotics
8f45608437 Cleanup
Commit the rest of the code
why github
2016-05-09 19:24:52 -07:00
Kaphotics
fb4847b1cb Split move fetch into more flexible methods
Allows the use of one method to filter move sources
2016-05-09 19:03:58 -07:00
Kaphotics
6f0bc1172a Add Memory 21
None of my database mons even had this memory :\
2016-05-09 18:19:31 -07:00
Kaphotics
e4b1e5fe47 Disallow Tutor Moves pkm that have never visited AO
Allow tutors only if ORAS origin or have been traded.
2016-05-09 18:07:26 -07:00
chenzw95
784bd8d661 Add legality checks for HM-specific memories
Pokemon which have memories of using moves that they cannot learn will be flagged as illegal.
2016-05-07 14:18:52 +08:00
Kaphotics
3a424c8b5b Add memorycheck 14 (species can be captured) 2016-05-05 20:35:18 -07:00
Kaphotics
d3b5968efd Add more savegame specific safeguards for pk6set 2016-04-24 12:40:46 -07:00
Kaphotics
150d781699 Tweak slot detection
Fixes hidden ability slot detection
2016-04-23 12:31:12 -07:00
Kaphotics
2c233be43f Refactoring
No functional changes
2016-04-21 18:48:21 -07:00
Kaphotics
a733b99b31 Defer Gift ball check
Now returns invalid ball instead of invalid encounter
2016-04-20 20:46:18 -07:00
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