Commit graph

7339 commits

Author SHA1 Message Date
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
Kaphotics
54980483b4 Fix gen3 once-saved saves
The uninitialized half of the save was tripping everything up. The
getIsG3SAV now checks both save partitions for validity. The constructor
now checks both save partitions to see if the 0th block is present when
determining the active save file.

Closes #304 , thanks @Ninjistix
2016-10-03 21:57:50 -07:00
Kaphotics
10fbcfcd74 Disable clickgender for gen2 saves
Also clear RedoStack on set/delete
2016-10-03 21:41:59 -07:00
Kaphotics
41bc841eaa Tweak pokepuff GiveAll
GiveAll now gives the varied all assortment, but the CTRL gives the +10
puffs only (since +6 sucks)

Thanks @diegofg10 !
2016-10-03 19:48:13 -07:00
Kaphotics
031d7d78b1 Add Undo/Redo for box slots
Closes #301

Reset undo/redo stack when a new save is loaded, juggle undo&redo when
reverting changes.
2016-10-03 19:27:48 -07:00
Kaphotics
4eeb90dd87 Fix mega form showdown set
Cosmetic text regurgitating
replace Mega Y->Mega-Y
old method would forget the leading hyphen
2016-10-03 19:24:46 -07:00