mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
Add static/magnet fail enum value
can fail leading to regular ESV calc
This commit is contained in:
parent
5d74096243
commit
4b954cd102
2 changed files with 2 additions and 4 deletions
|
@ -169,11 +169,8 @@ namespace PKHeX.Core
|
||||||
|
|
||||||
// Slot Modifiers before ESV
|
// Slot Modifiers before ESV
|
||||||
var force = (info.DPPt ? p16 >> 15 : p16 & 1) == 1;
|
var force = (info.DPPt ? p16 >> 15 : p16 & 1) == 1;
|
||||||
if (!force)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
var rand = f.Seed >> 16;
|
var rand = f.Seed >> 16;
|
||||||
yield return info.GetFrame(prev, LeadRequired.StaticMagnet, rand, rand);
|
yield return info.GetFrame(prev, force ? LeadRequired.StaticMagnet : LeadRequired.StaticMagnetFail, rand, rand);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// Slot Modifiers
|
// Slot Modifiers
|
||||||
StaticMagnet,
|
StaticMagnet,
|
||||||
|
StaticMagnetFail,
|
||||||
|
|
||||||
// Level Modifiers
|
// Level Modifiers
|
||||||
IntimidateKeenEye, // Keen Eye
|
IntimidateKeenEye, // Keen Eye
|
||||||
|
|
Loading…
Reference in a new issue