Fix starter bypass

lol oops, hotfix inc
This commit is contained in:
Kurt 2018-11-16 18:17:01 -08:00
parent ae53f1cf8d
commit 1c26c7713f
2 changed files with 5 additions and 13 deletions

View file

@ -277,11 +277,11 @@ namespace PKHeX.Core
private static void VerifyBelugaStats(LegalityAnalysis data, PB7 pb7) private static void VerifyBelugaStats(LegalityAnalysis data, PB7 pb7)
{ {
if (Math.Abs(pb7.HeightAbsolute - pb7.CalcHeightAbsolute) > 0.001 && !IsStarter(pb7)) if (Math.Abs(pb7.HeightAbsolute - pb7.CalcHeightAbsolute) > 0.001)
data.AddLine(GetInvalid(LStatIncorrectHeight, CheckIdentifier.Encounter)); data.AddLine(GetInvalid(LStatIncorrectHeight, CheckIdentifier.Encounter));
if (Math.Abs(pb7.WeightAbsolute - pb7.CalcWeightAbsolute) > 0.001) if (Math.Abs(pb7.WeightAbsolute - pb7.CalcWeightAbsolute) > 0.001)
data.AddLine(GetInvalid(LStatIncorrectWeight, CheckIdentifier.Encounter)); data.AddLine(GetInvalid(LStatIncorrectWeight, CheckIdentifier.Encounter));
if (pb7.Stat_CP != pb7.CalcCP) if (pb7.Stat_CP != pb7.CalcCP && !IsStarter(pb7))
data.AddLine(GetInvalid(LStatIncorrectCP, CheckIdentifier.Encounter)); data.AddLine(GetInvalid(LStatIncorrectCP, CheckIdentifier.Encounter));
} }

View file

@ -6,16 +6,6 @@
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<None Remove="TestData\SM Project 802.main" />
</ItemGroup>
<ItemGroup>
<Content Include="TestData\SM Project 802.main">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.4.2" /> <PackageReference Include="FluentAssertions" Version="5.4.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
@ -28,7 +18,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="Properties\" /> <EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup> </ItemGroup>
</Project> </Project>