mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Add raidtype docs & wishing piece indication
This commit is contained in:
parent
0e8ce7427a
commit
b31f0428cf
1 changed files with 18 additions and 1 deletions
|
@ -108,11 +108,18 @@ namespace PKHeX.Core
|
|||
set => DenType = 2; // set the 1th bit; the 2th bit has a similar-unknown function (?)
|
||||
}
|
||||
|
||||
[Category(Derived), Description("Wishing Piece was used for Raid encounter.")]
|
||||
public bool IsWishingPiece
|
||||
{
|
||||
get => IsActive && ((Flags >> 0) & 1) == 1;
|
||||
set => Flags = (byte)((Flags & ~1) | (value ? 1 : 0));
|
||||
}
|
||||
|
||||
[Category(Derived), Description("Distribution (event) details used for Raid encounter.")]
|
||||
public bool IsEvent
|
||||
{
|
||||
get => IsActive && ((Flags >> 1) & 1) == 1;
|
||||
set => Flags = (byte)((Flags & 2) | (value ? 2 : 0));
|
||||
set => Flags = (byte)((Flags & ~2) | (value ? 2 : 0));
|
||||
}
|
||||
|
||||
public void Activate(byte star, byte rand, bool rare = false, bool isEvent = false)
|
||||
|
@ -128,6 +135,16 @@ namespace PKHeX.Core
|
|||
// The games use a xoroshiro RNG to create the PKM from the stored seed.
|
||||
}
|
||||
|
||||
public enum RaidType : byte
|
||||
{
|
||||
None = 0,
|
||||
Common = 1,
|
||||
Rare = 2,
|
||||
CommonWish = 3,
|
||||
RareWish = 4,
|
||||
Event = 5,
|
||||
}
|
||||
|
||||
public class TypeConverterU64 : TypeConverter
|
||||
{
|
||||
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
|
||||
|
|
Loading…
Reference in a new issue