Commit graph

317 commits

Author SHA1 Message Date
Kaphotics
b2ddb4d80c No loading maison stats for Demo 2016-04-17 13:54:08 -07:00
Kaphotics
f2cd7a9097 Generate date on wc6full input
date value = 0 -> datetime.now
2016-04-17 13:52:37 -07:00
Kaphotics
707285cf0d Improve form centering, cleanup
Center database/report forms on load; doesn't happen by default as there
is no parent assigned when it is called by Show().

Add a form->form centering method, cleaned up the code behind the 16byte
hex seed fields.
2016-04-15 16:11:46 -07:00
Kaphotics
cfe982dbe1 Add JKSV detection 2016-04-08 22:14:16 -07:00
Kaphotics
844e24024b Fix drag&drop and geolocation
PK6.cs now sets the SAV country/region instead of the pk6's.
SAV6.cs now sets the updated pk6 instead of the input ek6.

Thanks Dede!
2016-04-07 08:13:24 -07:00
Kaphotics
be63fe7b7f Simple Refactor
Simple :)
2016-04-06 22:52:55 -07:00
Kaphotics
088996f4ce Merge pull request #95 from chenzw95/mono-fixes
Trim underscores in Util.ToInt32 and Util.ToUInt32
2016-04-04 09:34:35 -07:00
chenzw95
b5ce2fcfcc Trim underscores in Util.ToInt32 and Util.ToUInt32
Addresses Mono bug 12241.
2016-04-04 21:38:12 +08:00
Kaphotics
12c9636a09 Add better contest stat checks
A pokemon from XY that has never been traded cannot have contest stats
other than 0.

Milotic cannot be Beauty-LevelUp evolved in XY as an untraded mon.
2016-04-03 21:46:05 -07:00
Kaphotics
b0ccfe6a09 Init strings on load instead of every call
Makes exporting showdown text faster
2016-04-02 13:58:40 -07:00
Kaphotics
f90b33536b Minor tweaks
Don't do repeat checks in loop
2016-04-01 22:29:49 -07:00
Kaphotics
8af8602c31 Fix Link Trade eggs
Thanks Wanderer1391!

Traded eggs get their Met Location set to 30002.
When an egg hatches, if Met Location > 0, copy Met Location to Egg
Location and set Met Location equal to current overworld location.
2016-03-30 19:07:52 -07:00
Kaphotics
a277b4a734 Ingame Trade exclusion
Return early if not ingame trade
2016-03-26 16:40:12 -07:00
Kaphotics
8822069852 Increase cardname length
Null terminator is technically a part of the title, but not going to
allow overwriting.
2016-03-25 14:16:50 -07:00
Kaphotics
cc1d3de1ed Retain unown form 2016-03-19 18:17:10 -07:00
Kaphotics
01341ceeae convert 5->6 decapitalize if not nicknamed 2016-03-19 18:13:09 -07:00
Kaphotics
d436caf273 Minor tweaks 2016-03-17 18:28:51 -07:00
Kaphotics
dc4628abe1 Add XY/AO attribute for PK6
A little more explicit.
2016-03-15 19:06:13 -07:00
Kaphotics
600159362e Fix Showdown Mega-X/Y Form parsing
Thanks Odaxis!
2016-03-15 18:14:20 -07:00
Kaphotics
9cf6753a36 Lowercase Update
Addresses #82
2016-03-14 17:54:30 -07:00
Kaphotics
cc8f962acd Add Static/Friend Safari Encounter checking 2016-03-13 14:56:25 -07:00
Kaphotics
2e0a06034c Add Full Size WC6 importing 2016-03-13 10:54:33 -07:00
Kaphotics
d1e98cb429 Tweak egg prerequisites
Moved Met Level check into the encounter check, don't care about it for
checking an egg's relearn moves.
2016-03-12 09:13:27 -08:00
Kaphotics
c4612e2d9f Legality ContextMenu now returns analysis
Hooked up all the methods and can spit out if invalid.

I plan to put a legality indication where QR! was, but the legality
analysis needs more checks (moves, ability, nickname, ball, fateful...
you get it) and stability.

Have fun playing with the initial legality checks 😄
2016-03-11 19:43:40 -08:00
Kaphotics
0e1599e9d5 Farewell QR! label
Moved into the contextmenu.

shortcuts available:
shift click picturebox -> out QR (to window)
alt click picturebox -> in QR (from clipboard)
2016-03-11 18:40:08 -08:00
Kaphotics
9729e5a30e Merge pull request #79 from chenzw95/unown-pid
Generate legal PID for Gen III Unown
2016-03-09 00:38:05 -08:00
chenzw95
f405840ba5 Generate legal PID for Gen III Unown 2016-03-09 16:29:18 +08:00
Kaphotics
64759c7487 Remap unicode to ingame value
Don't rely on string setter either.
2016-03-07 19:31:22 -08:00
Kaphotics
eb4abb28d1 Unicode remap Nickname/OT
Thanks Localhorst! I suspect this isn't going to be final...
2016-03-07 18:49:42 -08:00
Kaphotics
0a4e27e501 Fix typo 2016-03-07 18:45:17 -08:00
Kaphotics
9ab426aa80 RandomPID: Simplify + Add Gen6 return option
Although our origin checks are done every loop, the speed difference of
such checks is negligible compared to the benefit of readability
2016-03-06 20:00:33 -08:00
chenzw95
f731dd9248 For Gen III & IV Pokemon, generate PIDs to ensure legal nature 2016-03-07 11:24:34 +08:00
Kaphotics
ce2f970bad Simplify level calc
start at level 1, change loop to be less wordy
2016-03-05 07:58:22 -08:00
Kaphotics
6ece2a5f1e Relocate JPEG code
-14 lines
2016-03-04 22:09:54 -08:00
Kaphotics
2d5fb503f3 FixMemories loop
Cycles through
--X-X => XX--- instead of -X-X-
2016-03-01 20:15:08 -08:00
Kaphotics
54595b063b Re-fix FixMoves
On second thought, that wasn't the best way. Just loop back and fix if
it created a hole. Coul always use a recursive call instead, but I think
this is a little cleaner.

The reverted change didn't fix PP or PP Ups for moves; I didn't think of
this new fix at the time!
2016-02-28 22:18:34 -08:00
Kaphotics
1817c52baa Revert "Fix -X-X moves => X-X-, now XX--"
This reverts commit b03c106599.
2016-02-28 22:10:35 -08:00
Kaphotics
b03c106599 Fix -X-X moves => X-X-, now XX--
Shortest way is using linq; this takes another line but is easier to
port for those unfamiliar with linq.
2016-02-28 17:16:53 -08:00
Kaphotics
82cdcf0e3b Add pgf retrieval 2016-02-28 13:50:06 -08:00
Kaphotics
572e1b9e32 Add 5th Gen save file object
new SAV5(data) => easy access to boxdata/party for export.
2016-02-27 19:28:41 -08:00
Kaphotics
accbbd89eb Add Sun/Moon Version IDs
We'll see if this guess holds up.
Possible that the VC games will have Version IDs afterwards.
2016-02-27 18:25:27 -08:00
Kaphotics
37ad88a4ce Feelings for Trades
0-9 Bank
0-19 Trade
Thanks suloku
2016-02-27 10:59:40 -08:00
Kaphotics
47f53a3a57 Add Gardevoir Forme
Shift all afterwards by 2.
2016-02-25 22:02:51 -08:00
Kaphotics
11b8010992 Cleanup
Use less lines to do the same thing
2016-02-24 14:38:12 -08:00
Kaphotics
968eabd053 Reorganization for future changes
Moving legality stuff into separate class
2016-02-22 22:52:48 -08:00
Kaphotics
153d058d67 Fix nature reset 4->X 2016-02-19 17:12:10 -08:00
Kaphotics
c426089c07 Add Move Legality Checker
Note that this is a first iteration feature; there are known edge cases.
This feature is merely to assist the user by highlighting moves that are
outside of the typical moveset.

Levelup/Eggmove/Tutor/TMHM are used in the logic.
2016-02-17 07:54:59 -08:00
Kaphotics
4af5e1c299 Add FormDex setting 2016-02-13 20:20:55 -08:00
Kaphotics
54e5b2b30c Fix Transfer Ability 4->6
Clear Shiny Leaves/Crown, and fix ability detection
2016-02-13 19:40:51 -08:00
Kaphotics
eae4b2ad5c Add Pokedex entry form editing
Thanks suloku for mapping out the order of flags!

Fixed a few bugs with the existing ModifyAll code.
2016-02-13 19:17:35 -08:00