mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Remove individual mark properties
With gen7 using a different marking format, a public general implementation is not used Closes #571
This commit is contained in:
parent
2063336949
commit
92e5076012
3 changed files with 2 additions and 16 deletions
|
@ -195,10 +195,7 @@ namespace PKHeX
|
|||
EXP = IsEgg ? PKX.getEXP(5, Species) : EXP,
|
||||
IsEgg = false,
|
||||
OT_Friendship = 70,
|
||||
MarkCircle = MarkCircle,
|
||||
MarkSquare = MarkSquare,
|
||||
MarkTriangle = MarkTriangle,
|
||||
MarkHeart = MarkHeart,
|
||||
Markings = Markings,
|
||||
Language = Language,
|
||||
EV_HP = EV_HP,
|
||||
EV_ATK = EV_ATK,
|
||||
|
|
|
@ -345,12 +345,7 @@ namespace PKHeX
|
|||
if (HiddenAbility) pk6.AbilityNumber = 4; // Hidden, else G5 or G3/4 correlation.
|
||||
else pk6.AbilityNumber = Gen5 ? 1 << (int)(PID >> 16 & 1) : 1 << (int)(PID & 1);
|
||||
}
|
||||
pk6.MarkCircle = MarkCircle;
|
||||
pk6.MarkSquare = MarkSquare;
|
||||
pk6.MarkTriangle = MarkTriangle;
|
||||
pk6.MarkHeart = MarkHeart;
|
||||
pk6.MarkStar = MarkStar;
|
||||
pk6.MarkDiamond = MarkDiamond;
|
||||
pk6.Markings = Markings;
|
||||
pk6.Language = Language;
|
||||
|
||||
pk6.CNT_Cool = CNT_Cool;
|
||||
|
|
|
@ -285,12 +285,6 @@ namespace PKHeX
|
|||
public bool PKRS_Cured => PKRS_Days == 0 && PKRS_Strain > 0;
|
||||
public virtual bool ChecksumValid => Checksum == CalculateChecksum();
|
||||
public int CurrentLevel { get { return PKX.getLevel(Species, EXP); } set { EXP = PKX.getEXP(value, Species); } }
|
||||
public bool MarkCircle { get { return (MarkValue & (1 << 0)) == 1 << 0; } set { MarkValue = (byte)(MarkValue & ~(1 << 0) | (value ? 1 << 0 : 0)); } }
|
||||
public bool MarkTriangle { get { return (MarkValue & (1 << 1)) == 1 << 1; } set { MarkValue = (byte)(MarkValue & ~(1 << 0) | (value ? 1 << 0 : 0)); } }
|
||||
public bool MarkSquare { get { return (MarkValue & (1 << 2)) == 1 << 2; } set { MarkValue = (byte)(MarkValue & ~(1 << 0) | (value ? 1 << 0 : 0)); } }
|
||||
public bool MarkHeart { get { return (MarkValue & (1 << 3)) == 1 << 3; } set { MarkValue = (byte)(MarkValue & ~(1 << 0) | (value ? 1 << 0 : 0)); } }
|
||||
public bool MarkStar { get { return (MarkValue & (1 << 4)) == 1 << 4; } set { MarkValue = (byte)(MarkValue & ~(1 << 0) | (value ? 1 << 0 : 0)); } }
|
||||
public bool MarkDiamond { get { return (MarkValue & (1 << 5)) == 1 << 5; } set { MarkValue = (byte)(MarkValue & ~(1 << 0) | (value ? 1 << 0 : 0)); } }
|
||||
public Image Sprite => PKX.getSprite(this);
|
||||
public string ShowdownText => ShowdownSet.getShowdownText(this);
|
||||
public string[] QRText => PKX.getQRText(this);
|
||||
|
|
Loading…
Reference in a new issue