Commit graph

11 commits

Author SHA1 Message Date
Kaphotics
e0b2f164dc Simple out of bounds checking
PKHeX currently won't supply species > length, but if this code is
reused elsewhere -> default to species 0 like the games.
2016-07-20 20:43:18 -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
ba6eec70ba Code formatting
Some stuff can be abstract / sealed.
2016-07-07 05:44:43 -07:00
Kaphotics
f0503540a0 Safety check
negative species/formestatsindex returns species
2016-07-04 23:53:15 -07:00
Kaphotics
52c87c8c5f Fix ability retrieval
incorrect offset
2016-07-04 23:52:50 -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
4568bdc576 Add gen3 personal struct
Gen4 is the same struct, move to earlier game's class.

Still need to unshuffle the personals by natdex ID for gen3 games.
Tutors/TMHM aren't referenced so they can be appended if (n)ever desired
2016-07-03 13:41:50 -07:00
Kaphotics
7bff9b781a Fix out of range forme index request
Break up logic
2016-07-03 13:04:07 -07:00
Kaphotics
190382d5b6 Sync remaining
Missed the last bugfix
2016-07-02 20:25:47 -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