mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +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)}";
|
||||
|
||||
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;
|
||||
if (addItem != 0)
|
||||
s += $"+ {GameInfo.Strings.itemlist[addItem]}";
|
||||
s += $"+ {GameInfo.Strings.itemlist[addItem]}" + 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; }
|
||||
if (gift is WC7)
|
||||
{
|
||||
|
|
|
@ -107,6 +107,12 @@ namespace PKHeX.Core
|
|||
public virtual int Quantity { get { return 1; } set { } }
|
||||
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()}";
|
||||
|
||||
// Search Properties
|
||||
|
|
|
@ -87,10 +87,21 @@ namespace PKHeX.Core
|
|||
|
||||
public bool MultiObtain { get { return Data[0x53] == 1; } set { Data[0x53] = (byte)(value ? 1 : 0); } }
|
||||
|
||||
// Bean (Mame) Properties
|
||||
public bool IsBean { get { return CardType == 3; } set { if (value) CardType = 3; } }
|
||||
// BP Properties
|
||||
public bool IsBP { get { return CardType == 2; } set { if (value) CardType = 2; } }
|
||||
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
|
||||
public override bool IsBean { get { return CardType == 2; } set { if (value) CardType = 2; } }
|
||||
public override int Bean
|
||||
{
|
||||
get { return Item; }
|
||||
set { Item = value; }
|
||||
}
|
||||
|
||||
// Item Properties
|
||||
public override bool IsItem { get { return CardType == 1; } set { if (value) CardType = 1; } }
|
||||
|
|
Loading…
Reference in a new issue