mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-28 07:27:25 -05:00
Add used wondercard detection
This commit is contained in:
parent
6f94705c10
commit
22e0e7ee79
|
|
@ -57,6 +57,16 @@ private void loadwcdata()
|
|||
{
|
||||
try
|
||||
{
|
||||
if ((wondercard_data[0x52] & 2) != 0) // is used
|
||||
{
|
||||
if (DialogResult.Yes !=
|
||||
Util.Prompt(MessageBoxButtons.YesNo,
|
||||
"Wondercard is marked as USED and will not be able to be picked up in-game.",
|
||||
"Do you want to remove the USED flag so that it is UNUSED?"))
|
||||
return;
|
||||
|
||||
wondercard_data[0x52] &= 0xFD; // keep all bits but bit1 (11111101)
|
||||
}
|
||||
RTB.Text = getWCDescriptionString(wondercard_data);
|
||||
PB_Preview.Image = getWCPreviewImage(wondercard_data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user