Commit graph

1357 commits

Author SHA1 Message Date
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
Kaphotics
4c20c4198d Merge pull request #112 from Eskuero/master
Geolocation and memory 49 checks
2016-05-11 17:10:07 -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
Kaphotics
ffa044d4db Fix String->Int conversion with spaces in middle
Replace instead of trim, then trim.
2016-05-10 22:21:23 -07:00
Kaphotics
3539bf6af0 Fix offsets
00 00 01 00 02 00 03 00 04 00 is at the front of this data
2016-05-10 17:53:35 -07:00
Kaphotics
a8ae56f6f0 Add ItemInfo block
Just exposing these properties
2016-05-10 17:51:12 -07:00
Kaphotics
c07f452448 Merge pull request #111 from Eskuero/master
Checks for memories 16/48 and fix Smeargle exception
2016-05-10 09:32:40 -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
Kaphotics
ab687288f5 Merge pull request #110 from Eskuero/master
Checks for PKM Center memories
2016-05-09 17:40:00 -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
1249380ce4 Merge pull request #107 from chenzw95/league-locationfix
Distinguish between Leagues of both regions in location dropdown
2016-05-08 06:25:07 -07:00
chenzw95
fde1c95700 Distinguish between Leagues of both regions
An oddity will otherwise force the smaller index (Kalos') to be selected instead.
2016-05-08 18:47:22 +08: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
Kaphotics
8c1dc42566 Merge pull request #106 from chenzw95/legality-movememories
Add legality checks for HM-specific memories
2016-05-07 00:56:20 -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
e06c38151c Fix typo in comment
such worth
2016-05-05 20:34:58 -07:00
Kaphotics
e7e793a2f4 Add basic memory checks
Thanks Eskuero. WIP.
2016-05-05 20:05:22 -07:00
Kaphotics
0f69fcb7f8 Add load modifyPK6 override
Extracted existing dialog from openFile to a method.
For loadBoxesFromDB and opening a box binary.

Thanks Eskuero for the suggestion!
2016-05-05 18:52:43 -07:00
Kaphotics
0c92f180c6 Update OT gender color on clickOT
load from save -> load gender, also fetch color.

Thanks Eskuero!
2016-05-05 18:47:40 -07:00
Kaphotics
96578e4cbd Add 3IV encounter check 2016-05-03 19:36:47 -07:00
Kaphotics
34cb70e16b Commit the rest
Why github do you just ignore if I save
2016-04-30 20:25:12 -07:00
Kaphotics
3213db3020 Keep gender when changing species
Only do gender detection if it's from previous games
2016-04-30 14:43: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
7a94640c0c Add wc6full bin
Include loading into the database
2016-04-29 23:24:23 -07:00
Kaphotics
eb6c4abd02 Update wc6 bin 2016-04-29 23:23:38 -07:00
Kaphotics
1de3f31e9f Minor refactor
cleanup, remove parenthesis/unused

EV total backcolor matches IV backcolor instead of a defined color (for
those who alter their default color schemes)
2016-04-28 21:43:16 -07:00
Kaphotics
888d979fce Fix Gen4 platinum detection
Encounter Method now appears as intended
(old check ignored 12)
2016-04-27 21:09:50 -07:00
Kaphotics
397fb30df5 Remove Code Generator
Using the Cache for CyberGadget removes any need for a code generator,
as the code generator had many holes (partial writes if data already was
correct); future games would be odd to balance.
2016-04-27 21:07:35 -07:00
Kaphotics
dc43dea409 Fix demo & opening wc6 form
ctrl + drop wc6 -> window errors out, caught exception masks the
failure.

Prevent it by default
2016-04-26 23:01:59 -07:00
Kaphotics
2233747d87 Box Dump tweak
Disable for ORAS demo
Use box name for folder name instead of "BOX #"

Minor modifications adding if (SAV.XY) for future game branching.
2016-04-25 22:03:16 -07:00
Kaphotics
d3b5968efd Add more savegame specific safeguards for pk6set 2016-04-24 12:40:46 -07:00