mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 08:23:12 +00:00
4268239c12
Now gets count=2 tests working yield return new SeedFrame { FrameID = ctr + (l.Seen ? 5 : 7), PID = pid }; used to be ctr + 6, needs to alternate even-odd all 2 lock cases pass, but didn't make lock3's pass. Something else is still amiss :) break out some classes for the solidified lock objects
23 lines
No EOL
675 B
C#
23 lines
No EOL
675 B
C#
using System;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public class EncounterStaticShadow : EncounterStatic
|
|
{
|
|
public TeamLock[] Locks { get; internal set; } = Array.Empty<TeamLock>();
|
|
public int Gauge { get; internal set; }
|
|
public bool EReader { get; set; }
|
|
|
|
internal override EncounterStatic Clone()
|
|
{
|
|
var result = (EncounterStaticShadow)base.Clone();
|
|
if (Locks.Length > 0)
|
|
{
|
|
result.Locks = new TeamLock[Locks.Length];
|
|
for (int i = 0; i < Locks.Length; i++)
|
|
result.Locks[i] = Locks[i].Clone();
|
|
}
|
|
return result;
|
|
}
|
|
}
|
|
} |