Commit graph

106 commits

Author SHA1 Message Date
Kaphotics
8d6525dfe9 Add hot spring wynaut OT memory case
Adding 60004 to the "WasEgg" check qualifies the pkm to be checked for
having egg relearn moves; since this was a gift egg it wasn't a
daycareEgg.
2016-08-03 00:10:38 -07:00
Kaphotics
016a0e3aee Reduce reliance on PKX
Certain calculations are best done with direct references.
Indirectly fixed Shiny button bug (8 <= xor < 16) for past gen games.
2016-07-17 23:40:40 -07:00
Kaphotics
f981621452 Simplify ability / entry retrieval 2016-07-17 23:04:39 -07:00
Kaphotics
f5bacf236c Add&Split out PersonalTable
Will eventually have more complex operations associated with it, as the
PersonalInfo[] could not do that sort of logic.
2016-07-17 22:39:18 -07:00
Kaphotics
b47b26222f More descriptive pkm properties (ribbon/training)
Adding new update for editors
2016-07-16 15:52:33 -07:00
Kaphotics
0c88954d26 Fix foreign traded hatched egg species name
Language/Geolocation does not get modified when an egg hatches.

Thanks @NotRaia
2016-07-10 22:22:55 -07:00
Kaphotics
8dd5c40a93 Fix multiple matched cards
Charizardite Y with Inferno fixed, just add a break to get out of the
loop.
2016-07-04 16:06:07 -07:00
Kaphotics
1f1f3b8720 Add gender legality check
dirty cheaters

Tweaked ECPID to not bypass illegal flag checking if EC/PID were 0.
2016-07-03 18:36:04 -07:00
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
fa9ca3ea59 Flag Legality of Battle Primals
Mark as illegal.

Thanks Asia81!
2016-06-29 17:42:00 -07:00
Kaphotics
e784389ad2 Manually merge latest pull requests
Should have forked to begin with.

Thanks @chenzw95 && @Eskuero
2016-06-19 21:29:38 -07:00
Kaphotics
6378eb7f56 Current progress
Still a few milestones left to hit before official release.
2016-06-19 21:22:43 -07:00
chenzw95
53a49195d6 Fix typo in output of HT memory check 2016-05-25 13:22:17 +08:00
chenzw95
001c570a48 Hatch memory check for memories of OT
Memory will be flagged as illegal if Pokemon did not hatch from an egg
2016-05-25 13:20:19 +08:00
Eskuero
b404740b2c Don't check base moves if the pkm can't be hatched
There's no point of saying a Landorus, per example, is missing Fissure, Block, Mud Shot and Rock Romb as relearn moves just because it was hatched from an egg because to start with the species cannot be hatched.
2016-05-23 17:41:11 +01:00
Kaphotics
70c21fc813 Cleanup
Condense code to instead indicate if it is valid or not, remove
duplicate returns, handle ConsoleRegion values that are not 012456 (init
valid to false!).
2016-05-11 21:18:05 -07:00
Oliver Garcia
099f2104f7 Checks for memory 49: Was able to remember 2016-05-12 00:37:51 +01:00
Oliver Garcia
816ec2537d Check if the country is avalaible on the 3DS region 2016-05-12 00:20:31 +01:00
Oliver Garcia
1807fd31a9 Checks for memories 16 & 48: Know method 2016-05-10 17:06:52 +01:00
Kaphotics
e6b6005fc9 Check valid encounter slots to capture trade-evos
Thanks theSLAYER!
2016-05-10 08:09:36 -07:00
Kaphotics
ed32471327 Cleanup
Add remaining logic methods for memories (not hooked up yet), removed
unused code.

TMHM checks are now done in the getMoves method.
2016-05-09 19:24:18 -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
5a21b70d11 Rearrange logic for Location
Get game ID once, check pk6 game first. Will be easy to insert a third
case if/when the time comes.
2016-05-09 17:51:35 -07:00
Oliver Garcia
9eb28533de Checks for PKM Center memories 2016-05-10 00:09:40 +01:00
Kaphotics
72ff630be8 Merge pull request #108 from Eskuero/patch-1
Add Smeargle exception
2016-05-08 18:26:20 -07:00
Kaphotics
4e9ea707f9 Fix untraded Glalie/Steelix link gift history chk
Has an OT, HT=player but doesn't get a geolocation, behaves like a wc6
gift.
2016-05-08 18:11:31 -07:00
Eskuero
2840e46cb5 Add Smeargle exception
This boy can learn any HM move through Sketch so any memory regarding HMs is legal for him.
2016-05-08 23:56:08 +02:00
Kaphotics
2b364f0ed3 Add WC6 OT Memory checks 2016-05-08 14:29:08 -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
e7e793a2f4 Add basic memory checks
Thanks Eskuero. WIP.
2016-05-05 20:05:22 -07:00
Kaphotics
96578e4cbd Add 3IV encounter check 2016-05-03 19:36:47 -07:00
Kaphotics
eb5c753db0 Fix iterator for wc6 checking relearn
The .Remove was tampering with the same variable that the foreach was
iterating over, causing exceptions. By casting to a WC6[], the List<WC6>
can be altered and the array is iterated over instead.
2016-04-30 14:23:56 -07:00
Kaphotics
c2981510a9 Cosplay pikachu fixes
Form can be changed only for the received cosplay Pikachu.
Can be obtained in any location.
Regular Pikachu cannot be given a cosplay-only form
Cosplay Pikachu cannot have a non-cosplay form.
2016-04-23 14:16:12 -07:00
Kaphotics
ce53cd704d XY Battle Resort egg met location
Hatched eggs would have to be Link Trade.
2016-04-23 10:12:52 -07:00
Kaphotics
9b0394847b Level 1 traded Milotic
Thanks Gastly!
2016-04-23 08:37:05 -07:00
Kaphotics
4a42ac68ba Improve Fateful encounter check message 2016-04-22 20:08:02 -07:00
Kaphotics
a6ca9c8bf1 Add indication for Wurmple evolution
Hard coded english but whatever.
2016-04-21 19:46:33 -07:00
Kaphotics
214473756e Add Fateful Encounter check
Cleared up the Event check a little to allow Fateful Encounters to slip
through.
2016-04-21 19:32:22 -07:00
Kaphotics
60205cd700 Wurmple evolution check (EC) 2016-04-21 00:28:40 -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
82ee4ac1bf Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-04-19 20:16:43 -07:00
Kaphotics
92c686fe94 Fix Friend Safari Floette
RBY are forms 013 not 024

Thanks Angeflo!
2016-04-19 20:16:40 -07:00
Wheth
171f1fdd82 Fix relearn moves' Legality Check for Pokémon with only one matching Wonder Card. 2016-04-19 15:43:05 +02:00
Kaphotics
8298484e23 Improve move source indication
Empty slots say Empty instead of "Level-up" or "Relearn move"
2016-04-16 12:01:09 -07:00
Kaphotics
5feb1c887b Fix nearly identical events with different moves
Charizardite X/Y events in particular came up as invalid (Y).

The Y event had Inferno (not a normal move), but it wasn't in the
relearn pool. Due to these nearly identical events only differing in
terms of usable movepool (not relearn pool), the check has to be able to
be deferred to later if multiple cards are still valid.
2016-04-16 11:35:16 -07:00
chenzw95
f192db095b Check for illegal hatched species 2016-04-15 15:40:35 +08:00
Kaphotics
16f291e4ac Add Form checks 2016-04-14 03:17:03 -07:00