Add used wondercard detection

This commit is contained in:
Kurt 2015-09-12 21:32:30 -07:00
parent 6f94705c10
commit 22e0e7ee79

View File

@ -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);
}