mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
parent
ec3d6d5177
commit
1922a2145f
3 changed files with 30 additions and 5 deletions
|
@ -362,7 +362,7 @@ namespace PKHeX.WinForms
|
||||||
|
|
||||||
string desc = $"({mg.Type}) {getDescription(mg)}";
|
string desc = $"({mg.Type}) {getDescription(mg)}";
|
||||||
|
|
||||||
new QR(qr, PB_Preview.Image, desc, "", "", "PKHeX Wonder Card @ ProjectPokemon.org").ShowDialog();
|
new QR(qr, PB_Preview.Image, desc + "PKHeX Wonder Card @ ProjectPokemon.org", "", "", "").ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -507,11 +507,19 @@ namespace PKHeX.WinForms
|
||||||
{
|
{
|
||||||
var addItem = ((WC7) gift).AdditionalItem;
|
var addItem = ((WC7) gift).AdditionalItem;
|
||||||
if (addItem != 0)
|
if (addItem != 0)
|
||||||
s += $"+ {GameInfo.Strings.itemlist[addItem]}";
|
s += $"+ {GameInfo.Strings.itemlist[addItem]}" + Environment.NewLine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch { s += "Unable to create gift description." + Environment.NewLine; }
|
catch { s += "Unable to create gift description." + Environment.NewLine; }
|
||||||
}
|
}
|
||||||
|
else if (gift.IsBP)
|
||||||
|
{
|
||||||
|
s += "BP: " + gift.BP + Environment.NewLine;
|
||||||
|
}
|
||||||
|
else if (gift.IsBean)
|
||||||
|
{
|
||||||
|
s += "Bean ID: " + gift.Bean + Environment.NewLine + "Quantity: " + gift.Quantity + Environment.NewLine;
|
||||||
|
}
|
||||||
else { s += "Unknown Wonder Card Type!" + Environment.NewLine; }
|
else { s += "Unknown Wonder Card Type!" + Environment.NewLine; }
|
||||||
if (gift is WC7)
|
if (gift is WC7)
|
||||||
{
|
{
|
||||||
|
|
|
@ -107,6 +107,12 @@ namespace PKHeX.Core
|
||||||
public virtual int Quantity { get { return 1; } set { } }
|
public virtual int Quantity { get { return 1; } set { } }
|
||||||
public bool Empty => Data.SequenceEqual(new byte[Data.Length]);
|
public bool Empty => Data.SequenceEqual(new byte[Data.Length]);
|
||||||
|
|
||||||
|
public virtual bool IsBP { get { return false; } set { } }
|
||||||
|
public virtual int BP { get { return 0; } set { } }
|
||||||
|
public virtual bool IsBean { get { return false; } set { } }
|
||||||
|
public virtual int Bean { get { return 0; } set { } }
|
||||||
|
public virtual int BeanCount { get { return 0; } set { } }
|
||||||
|
|
||||||
public string getCardHeader() => (CardID > 0 ? $"Card #: {CardID:0000}" : "N/A") + $" - {CardTitle.Replace('\u3000',' ').Trim()}";
|
public string getCardHeader() => (CardID > 0 ? $"Card #: {CardID:0000}" : "N/A") + $" - {CardTitle.Replace('\u3000',' ').Trim()}";
|
||||||
|
|
||||||
// Search Properties
|
// Search Properties
|
||||||
|
|
|
@ -86,11 +86,22 @@ namespace PKHeX.Core
|
||||||
public bool GiftOncePerDay { get { return (CardFlags & 4) == 4; } set { CardFlags = (byte)(CardFlags & ~4 | (value ? 4 : 0)); } }
|
public bool GiftOncePerDay { get { return (CardFlags & 4) == 4; } set { CardFlags = (byte)(CardFlags & ~4 | (value ? 4 : 0)); } }
|
||||||
|
|
||||||
public bool MultiObtain { get { return Data[0x53] == 1; } set { Data[0x53] = (byte)(value ? 1 : 0); } }
|
public bool MultiObtain { get { return Data[0x53] == 1; } set { Data[0x53] = (byte)(value ? 1 : 0); } }
|
||||||
|
|
||||||
|
// BP Properties
|
||||||
|
public override bool IsBP { get { return CardType == 3; } set { if (value) CardType = 3; } }
|
||||||
|
public override int BP
|
||||||
|
{
|
||||||
|
get { return Item; }
|
||||||
|
set { Item = value; }
|
||||||
|
}
|
||||||
|
|
||||||
// Bean (Mame) Properties
|
// Bean (Mame) Properties
|
||||||
public bool IsBean { get { return CardType == 3; } set { if (value) CardType = 3; } }
|
public override bool IsBean { get { return CardType == 2; } set { if (value) CardType = 2; } }
|
||||||
// BP Properties
|
public override int Bean
|
||||||
public bool IsBP { get { return CardType == 2; } set { if (value) CardType = 2; } }
|
{
|
||||||
|
get { return Item; }
|
||||||
|
set { Item = value; }
|
||||||
|
}
|
||||||
|
|
||||||
// Item Properties
|
// Item Properties
|
||||||
public override bool IsItem { get { return CardType == 1; } set { if (value) CardType = 1; } }
|
public override bool IsItem { get { return CardType == 1; } set { if (value) CardType = 1; } }
|
||||||
|
|
Loading…
Reference in a new issue