Commit graph

328 commits

Author SHA1 Message Date
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
2b364f0ed3 Add WC6 OT Memory checks 2016-05-08 14:29:08 -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
214473756e Add Fateful Encounter check
Cleared up the Event check a little to allow Fateful Encounters to slip
through.
2016-04-21 19:32:22 -07:00
Kaphotics
13ec0e9e89 Wondercard Window refactor
No functional change; more OOP.
2016-04-21 19:16:55 -07:00
Kaphotics
2c233be43f Refactoring
No functional changes
2016-04-21 18:48:21 -07:00
Kaphotics
027e0e19b1 Refactoring 2016-04-18 18:21:50 -07:00
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