Skip to content

Commit

Permalink
Update 24.07.03
Browse files Browse the repository at this point in the history
Update wc9 pkl
update dependencies (qrcoder got some perf improvements)
deduplicate HOME tracker message in SV by consolidating the methods
  • Loading branch information
kwsch committed Jul 3, 2024
1 parent 6de68ac commit 66e8bf2
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>24.06.03</Version>
<Version>24.07.03</Version>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<NeutralLanguage>en</NeutralLanguage>
Expand Down
2 changes: 1 addition & 1 deletion PKHeX.Core/Legality/LegalityAnalysis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void ParsePK8()
private void ParsePK9()
{
UpdateChecks();
Transfer.VerifyTransferLegalityG9(this);
Transfer.VerifyTransferLegalityG8(this);
}

/// <summary>
Expand Down
17 changes: 1 addition & 16 deletions PKHeX.Core/Legality/Verifiers/TransferVerifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,33 +142,18 @@ public void VerifyTransferLegalityG8(LegalityAnalysis data)
}
}

if (pk.Format >= 9)
{
VerifyTransferLegalityG9(data);
return;
}

// Starting in Generation 8, games have a selective amount of species/forms from prior games.
IPersonalTable pt = pk switch
{
PA8 => PersonalTable.LA,
PB8 => PersonalTable.BDSP,
PK9 => PersonalTable.SV,
_ => PersonalTable.SWSH,
};
if (!pt.IsPresentInGame(pk.Species, pk.Form))
data.AddLine(GetInvalid(LTransferBad));
}

public void VerifyTransferLegalityG9(LegalityAnalysis data)
{
var pk = data.Entity;
var pt = PersonalTable.SV;
if (!pt.IsPresentInGame(pk.Species, pk.Form))
data.AddLine(GetInvalid(LTransferBad));
if (HomeTrackerUtil.IsRequired(data.EncounterMatch, pk))
VerifyHOMETracker(data, pk);
}

private void VerifyHOMETransfer(LegalityAnalysis data, PKM pk)
{
if (pk is not IScaledSize s)
Expand Down
Binary file modified PKHeX.Core/Resources/legality/mgdb/wc9.pkl
Binary file not shown.
Binary file modified PKHeX.Core/Resources/legality/wild/encounter_go_home.pkl
Binary file not shown.
Binary file modified PKHeX.Core/Resources/legality/wild/encounter_go_lgpe.pkl
Binary file not shown.
2 changes: 1 addition & 1 deletion PKHeX.Drawing.Misc/PKHeX.Drawing.Misc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="QRCoder" Version="1.5.1" />
<PackageReference Include="QRCoder" Version="1.6.0" />
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion PKHeX.Drawing/PKHeX.Drawing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="8.0.5" />
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
</ItemGroup>

</Project>
16 changes: 15 additions & 1 deletion PKHeX.WinForms/Resources/text/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
PKHeX - By Kaphotics
http://projectpokemon.org/pkhex/

24/06/03 - New Update:
24/07/03 - New Update:
- Legality:
- - Added: Slot source legality checks for miscellaneous slots like Daycare. Shouldn't flag anyone ;)
- Added: Gen4 trainer stat record editor. Thanks @abcboy101 !
- Added: Gen3 memory cards can now be auto-detected as the latest save file on startup/request.
- Added: Gen3 Berry Powder, Pokéblock, and Decoration editors. Thanks @abcboy101 !
- Fixed: Gen9 eggs now no longer auto-clear trash bytes for nicknames (and no longer flag in doing so).
- Fixed: Gen5 misc editor now opens correctly for editing the Key system.
- Fixed: Gen4 pk4->ranch conversion no longer throws an error.
- Fixed: Gen4 battle revolution nickname/OT now reads correctly.
- Fixed: Gen1-3 saves with misc footers are retained as intended.
- Changed: Some internals changed to better work with web browsers (wasm). Thanks @arleypadua !
- Changed: Resource fetching abstraction extracted for better reuse with plugins.

24/06/03 - New Update: (96798) [8875111]
- Legality: Added automatic (basic) Trash Byte checks for Switch-era (Gen7b+) files. Further refinement & expansion in the future.
- - Fixed: Mystery gifts distributed with nicknames no longer flag IsNicknamed as invalid.
- Added: Entity editor move dropdown now displays the move's type on the left side.
Expand Down
6 changes: 3 additions & 3 deletions Tests/PKHeX.Core.Tests/PKHeX.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.8.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 66e8bf2

Please sign in to comment.