Commit graph

182 commits

Author SHA1 Message Date
Kaphotics
1755b49a9c Fix EncounterLink OT
Set the "Receiver is OT" to false for Glalie/Steelix, else true.

Thanks @poutros !

Fixes #147
2016-07-28 21:30:38 -07:00
Kaphotics
a9aadc0191 Fix Gen3 Item inventory edits
Resolves #145 and Key Items missing bug for Emerald
2016-07-28 15:31:05 -07:00
Kaphotics
da1f7c7426 Add movepp tables for 3->6
Split from the PKX table (now removed); since PP differs between gens we
have to keep track. Not gonna add a separate binary, just use a
reference table.
2016-07-21 23:49:52 -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
Tyler Dunn
5a73217c23 Remove safe cast in favor of direct cast 2016-07-08 21:11:21 -04: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
053657c3be Error check on invalid legality
Check fails -> flag instead of error.
2016-06-29 22:59:20 -07:00
Kaphotics
fa9ca3ea59 Flag Legality of Battle Primals
Mark as illegal.

Thanks Asia81!
2016-06-29 17:42:00 -07:00
Kaphotics
e6e3caabb2 Sync basic gen3 support
Still many things not yet working (item/inventory editing needs new
string resources)
2016-06-26 14:23:41 -07:00
Kaphotics
d2342ba965 Fix pokecenter purchase ORAS
Ever Grande Pokémon League lobby has a vendor, and is considered a Pokécenter.
Thus, memory 5 is obtainable in OR/AS.

Resolves #125
2016-06-22 12:31:53 -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
Kaphotics
862c2fd823 Fix trade skitty level
25->30
2016-05-30 18:56:37 -07:00
Kaphotics
20f3a10838 Refactor
Remove unnecessary reference, Core is within Legal
2016-05-29 14:44:08 -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
b5caf36fec Remove tab indentations
Change to 4space
2016-05-21 11:28:04 -07: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
Kaphotics
0ae2a82fc1 Fix legal egg locations
Battle Resort can't be the egg met location. It's set to 60002 (daycare)
2016-05-10 22:35:17 -07:00
Oliver Garcia
1807fd31a9 Checks for memories 16 & 48: Know method 2016-05-10 17:06:52 +01:00
Oliver Garcia
9a37eda9ba Check if the specified move is valid as Sketch move 2016-05-10 17:03:51 +01:00
Kaphotics
e6b6005fc9 Check valid encounter slots to capture trade-evos
Thanks theSLAYER!
2016-05-10 08:09:36 -07:00
Kaphotics
608d751f06 Add Pokémon Village static encounters
Thanks @ReignOfComputer
2016-05-10 08:04:32 -07: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
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
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
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
Kaphotics
e98ab01c2a Tower of Mastery X/Y
Thanks @chenzw95!
2016-05-07 10:24:05 -07:00
Kaphotics
06023d10f6 Add Berry Field encounters
Resolves #105
Thanks @chenzw95 !
2016-05-07 01:19:58 -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