mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-27 17:32:16 -05:00
Add static/magnet fail enum value
can fail leading to regular ESV calc
This commit is contained in:
parent
5d74096243
commit
4b954cd102
|
|
@ -169,11 +169,8 @@ private static IEnumerable<Frame> RefineFrames4(IEnumerable<Frame> frames, Frame
|
|||
|
||||
// Slot Modifiers before ESV
|
||||
var force = (info.DPPt ? p16 >> 15 : p16 & 1) == 1;
|
||||
if (!force)
|
||||
continue;
|
||||
|
||||
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 @@ public enum LeadRequired
|
|||
|
||||
// Slot Modifiers
|
||||
StaticMagnet,
|
||||
StaticMagnetFail,
|
||||
|
||||
// Level Modifiers
|
||||
IntimidateKeenEye, // Keen Eye
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user