Commit graph

2294 commits

Author SHA1 Message Date
Kaphotics
9f1ee13851 Fix MysteryGift type comparisons
WC6 -> MysteryGift as intended, as we want the abstract class.
Other classes don't inherit, thus BaseType stays the same.

Thanks Odaxis!
2016-10-27 18:26:14 -07:00
Kaphotics
81547107a0 Add more s/m stuff
Inventory editing, mystery gift editing, trainer info (soon)
2016-10-26 22:06:03 -07:00
Kaphotics
9e2743ad82 Dynamically generate gift table controls
New game threw a snag. This looks better, anyway.
2016-10-26 18:49:40 -07:00
Kaphotics
518cf8a407 Add placeholder strings
Still need to add met location information
2016-10-24 20:05:22 -07:00
Kaphotics
2a1b1c99ff Continued updates
Add gen7 games to list, add gen3 starter ball banlist, relocate legality
info that isn't generation specific.
2016-10-24 20:04:47 -07:00
Kaphotics
4033bb6081 Rename LinkGifts
Specify that these gifts are for gen6 only
2016-10-23 22:07:13 -07:00
Kaphotics
a462c09743 Legality refactoring continued
Finish removing explicit gen6 objects so that multiple generations of
information can be checked.

Still only supports gen6, but will be much much easier to add in other
generations in the future.

Tested a few pk6's and the legality checks appear to be functioning the
same.
2016-10-23 22:03:19 -07:00
Kaphotics
ed14ab7436 Add personalinfo references per PKM format
Fix possible hang in pk6/pk7 if country/region is unset (continues
loop).

PersonalInfo references are not to be used when calculating stats (use
the savefile table instead)
2016-10-23 22:01:39 -07:00
Kaphotics
26ff17fd24 Use added maxspecies from legal
Instead of a hard-coded number.

Maybe I should have a species/move/Ability/Item/Ball enum
2016-10-23 21:59:27 -07:00
Kaphotics
8cf0a7b0ec Add some sanity checking for ranges 2016-10-23 21:57:43 -07:00
Kaphotics
53d577a191 Add legalspecies & sm TMs 2016-10-23 21:57:04 -07:00
Kaphotics
d4bf111cd7 Add indication for invalid wondercards
Should clear up confusion when relearnmoves are all invalid.
2016-10-23 21:56:14 -07:00
Kaphotics
bbee007429 Implement placeholder pk7 conversion
For all generations that can transfer; pk1->7 is still disabled but the
framework is set up for when that information arrives.
2016-10-23 13:11:26 -07:00
Kaphotics
0fec576831 Refactor Legality engine
Beginnings of multi-generational support; removed all references to PK6
(child) and changed to PKM (abstract parent).

The core portion still needs revision to not be hard-coded for XY/ORAS
info tables.
2016-10-23 12:48:49 -07:00
Kaphotics
e3d7a7ebce Partial work towards c-gear
Getting this out of my changes list, still very WIP
2016-10-23 12:46:32 -07:00
Kaphotics
14550828ed Add more S/M editing capability
Add Daycare and Resort storage, updated offset map with information
provided by Falo (thanks!!!)
2016-10-23 12:45:27 -07:00
Kaphotics
75a512c40b Move legality6 table to proper filename
Made sense when gen6 was the only legality user, but with multigen let's
make it have the right name.
2016-10-22 20:24:27 -07:00
Kaphotics
7091049372 Add more S&M support
Pokedex flag setting added, no forme setting for now.
2016-10-22 20:09:22 -07:00
Kaphotics
26b2a07392 Fix indentation
No change.
2016-10-22 20:07:03 -07:00
Kaphotics
af553adf2f Fix pgf import
while loop hung, fix comparators
Thanks Odaxis!
2016-10-22 20:04:59 -07:00
Kaphotics
58981dcaab Add unown form editing gen2
Also add in some sun/moon form info (may not trigger)
Passing eventargs feels janky but works.

Should resolve query in #334
2016-10-22 10:38:33 -07:00
Kaphotics
897e05800e Fix gen2 unown exception
Closes #334 , thanks @Ninjistix !
2016-10-22 09:16:08 -07:00
Kaphotics
cdd82be704 Fix arceus form 4->5
Form needs to be reset when removing the held plate
2016-10-21 21:55:26 -07:00
Easy World
d053be9d5b Update official translation (#335)
* update offcial name

* fix some text mistake

* Update official translation

based on the pokemon sun and moon special demo version

* update official translation
2016-10-21 08:21:43 -07:00
Kaphotics
9553975801 Add new pk7 ribbons
includes sprites
temp names for now
2016-10-20 19:29:02 -07:00
Kaphotics
a614947e3a Misc pkm structure updates
4 new ribbon flags later, just updating based off code RE.
2016-10-20 01:26:47 -07:00
Kaphotics
09018e81d5 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-10-19 18:19:04 -07:00
Kaphotics
68b5e65139 Initial Sun/Moon Support
Loads the save file, still not finished.
2016-10-19 18:19:01 -07:00
Easy World
8ee56807ba Update offcial item names (#332)
* update offcial name

* fix some text mistake
2016-10-19 17:49:41 -07:00
Evan Dixon
adf7f5529a B/detect save null reference (#333)
* Fixed null reference exception in certain cases in save auto-loading

* Fixed form close warning showing with no changes made since start

* Fixed abort button in ErrorWindow

* Simplified implementation
2016-10-19 17:47:43 -07:00
Evan Dixon
475aad5480 Added warning when closing PKHeX with unsaved changes (#327)
* Added warning when closing PKHeX with unsaved changes

* Changed to MessageBox.Show to Util.Prompt
2016-10-18 10:44:36 -07:00
Evan Dixon
0b7d108245 Added "All Files" to save filters (#323) 2016-10-17 07:49:40 -07:00
Kaphotics
ed2f6f238f Fix 12char HoF nickname length
Thanks Holla!

Totally not worth refactoring into a get/set class
2016-10-15 21:38:42 -07:00
Kaphotics
a36eca40e6 Update shortcut listing 2016-10-15 21:28:36 -07:00
Kaphotics
283ee64e4f Convert battle video interaction to class obj
Makes it easier for gen7 battle videos; none of this info is new (comes
from pkBV).
2016-10-15 21:28:14 -07:00
Kaphotics
bc9893415b Refactoring
Simplify HeldItem / SpriteItem
Egg Nicknaming user automation added (checks nicknamed & adds egg if
isEgg ticked)
Remove some unnecessary data caching
Allow QR codes for games NDS+ (for program use only, no QR browser
exploit works
2016-10-11 22:59:19 -07:00
Kaphotics
bae964dfc4 Explicitly set checksums
Closes #319
Thanks @ninjistix !

'Bug' happened due to pk3 not calling refreshchecksum when set back to
save or something. Pretty sure this fixes batch edited files too.
2016-10-11 19:23:04 -07:00
Kaphotics
c544a2e16d Refactoring
Redefine/move logic for maintainability.
2016-10-11 19:11:24 -07:00
Kaphotics
74c817ffe3 Fix pt encounter type vis on load
Thanks Ammako!
2016-10-11 07:45:36 -07:00
Evan Dixon
ab413b4ddc Fixed file size being altered when loading a dsv save (#316) 2016-10-11 07:44:28 -07:00
Kaphotics
43c036641d Use MaxCount when storing items
Rewritten, HaX can now bypass this limit (still constrained for
overflow)

Closes #314 , thanks @Ninjistix !
2016-10-09 18:38:04 -07:00
Kaphotics
e9859a7b03 Simplify BigEndian io
Use BigEndian class now that it exists, instead of operating off little
endian and specifying swaps.

leads to less method calls and more obvious means
2016-10-09 17:41:44 -07:00
Kaphotics
50fd543012 Store level regardless of gen
Change focused to visible as Level/EXP are in the same tab.
2016-10-09 16:59:55 -07:00
Michael Scire
241b367c0b Fix Gen1/Gen2 Level loading (closes #312) 2016-10-09 16:39:31 -07:00
Kaphotics
f9a72abb4c Increase gen3 sav loading stability
reject if game has only been saved once, the trainer block is
inexplicably not set up to be able to be detected.

#305
Old code would default to RS (reading from any uninitialized 'block0'
yielded 0, gamecode for RS.

#305
2016-10-05 21:25:36 -07:00
Evan Dixon
95ca86033a F/general refactor (#308)
* Set text_ItemsG2_en build action to None

* Publically expose static MysteryGift functions

* Add more pre-defined string lists in Util
2016-10-05 21:06:24 -07:00
Kaphotics
fcb205ca82 Fix mystery gift extension suggest
Generate in the abstract class based off of the class name, no need to
define it in the individual classes.
Closes  #307

Thanks @sora10pls !
2016-10-04 17:50:15 -07:00
Michael Scire
f58515cc2c Fix Held Item Check for Colo/XD 2016-10-03 22:35:33 -07:00
Michael Scire
05cbad4377 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-10-03 22:24:26 -07:00
Michael Scire
337f58504e Fix Gen II Held Item bug, Gen II JP<->EN bugs, many Gen I<->Gen II conversion bugs. 2016-10-03 22:24:03 -07:00