From 66e8bf264501006e27457b50fe6bc566e1889eba Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 2 Jul 2024 23:51:10 -0500 Subject: [PATCH] Update 24.07.03 Update wc9 pkl update dependencies (qrcoder got some perf improvements) deduplicate HOME tracker message in SV by consolidating the methods --- Directory.Build.props | 2 +- PKHeX.Core/Legality/LegalityAnalysis.cs | 2 +- .../Legality/Verifiers/TransferVerifier.cs | 17 +---------------- PKHeX.Core/Resources/legality/mgdb/wc9.pkl | Bin 113920 -> 113920 bytes .../legality/wild/encounter_go_home.pkl | Bin 133516 -> 134868 bytes .../legality/wild/encounter_go_lgpe.pkl | Bin 29108 -> 29476 bytes PKHeX.Drawing.Misc/PKHeX.Drawing.Misc.csproj | 2 +- PKHeX.Drawing/PKHeX.Drawing.csproj | 2 +- PKHeX.WinForms/Resources/text/changelog.txt | 16 +++++++++++++++- .../PKHeX.Core.Tests/PKHeX.Core.Tests.csproj | 6 +++--- 10 files changed, 23 insertions(+), 24 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index e64c2a02e6b..e177d911c37 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 24.06.03 + 24.07.03 12 enable en diff --git a/PKHeX.Core/Legality/LegalityAnalysis.cs b/PKHeX.Core/Legality/LegalityAnalysis.cs index 20a0ef27be2..6316bfde926 100644 --- a/PKHeX.Core/Legality/LegalityAnalysis.cs +++ b/PKHeX.Core/Legality/LegalityAnalysis.cs @@ -252,7 +252,7 @@ private void ParsePK8() private void ParsePK9() { UpdateChecks(); - Transfer.VerifyTransferLegalityG9(this); + Transfer.VerifyTransferLegalityG8(this); } /// diff --git a/PKHeX.Core/Legality/Verifiers/TransferVerifier.cs b/PKHeX.Core/Legality/Verifiers/TransferVerifier.cs index 588f23a2851..38deddde873 100644 --- a/PKHeX.Core/Legality/Verifiers/TransferVerifier.cs +++ b/PKHeX.Core/Legality/Verifiers/TransferVerifier.cs @@ -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) diff --git a/PKHeX.Core/Resources/legality/mgdb/wc9.pkl b/PKHeX.Core/Resources/legality/mgdb/wc9.pkl index 4f5e7d9545f9aa3ae6dd9dd8d7978d14f129207a..88193a4ed15a380fcb4cbcc73e4bacbde0e40b79 100644 GIT binary patch delta 64 zcmZqp#n$kPZLC3n4=Q diff --git a/PKHeX.Core/Resources/legality/wild/encounter_go_home.pkl b/PKHeX.Core/Resources/legality/wild/encounter_go_home.pkl index 54ada6006f197cef6af9faa699cc94f96076fdd5..091319545bea8179bdb1f9ff4861f04c274950ff 100644 GIT binary patch delta 6799 zcmb`~e_&fx*}(DVq-m37=@v#A~9F^n`yN<@ZWJC#_dC>80$Fs!GEv?GJs_s~{GOovFsAztY|U8M00k(v!6 z0qDy~1dZ<#F`g+>^8)@4lGKRXdMS4+KMdGOZAOpa% zS)?De=WvZWCkdebToOCaE7EzMi2Zy9L2tE4*N3>Vg&=78Fj-@?hS^@ggJ`^v^NUEd zR%9Ga7t{ZvB!uaYi8wD289?*LsUoCa#0~wWB%t{ONjKnfD(2-7xPk|f_#_WDGUF>L z*Ht`lH3Oq@CdNBa*z8d$&=w9qa*A zw-X#=$fD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&TJ>u)btCq_q?tCJ1-!WF7Ze{Y3q(NB9vIcJDmtBI!a)^7Gl8l-ky*Q(aP5S*Cl~Z52QB@GBrhm9m z?MF~19;UI^T;e-&Rc@YA8@A1@o@;4Wh58|z)Vx15ST{FpF3FZ2(bOh2Lo3K*h&gv$ z3YJ>6lBJc}+@)TvYH2^Fv@=*`?$S-#Vtu93Y=7vh+ceE%`F$(_1T?KqpVG9FZGUU- sC~)b|7_`OYOz$^nXXJ8cH)=)Z68@LaAV%YF)#k-xTRlgcELx-XU(9OUx&QzG diff --git a/PKHeX.Core/Resources/legality/wild/encounter_go_lgpe.pkl b/PKHeX.Core/Resources/legality/wild/encounter_go_lgpe.pkl index f0b0010fa012e6392c16d4c979b242a2566fa7a9..a45ebc74b0b3ae083f3217a2c22836683a602f08 100644 GIT binary patch delta 1357 zcmb`_J!}(a9LMqB`Q^^NyfzqOOaK!SFcef%2o1=EK%zjYNogB`DIq{=O4_ESRXZ?5 z@_`r_q6+C@$iR>xLsV5&)XU(3fsp}K8KQ~-si>(c3uQs?;K(-Da+0S#& z^MAXWp0g(Yw(^%Q|D>sabUTQU6t$(KBV{8}zbmDySXWEqHPU^AY9$W^ETF4S8p0@& z^->2$F@>k-e^Z)4Vihr>l2%I-xQF@G%4=i|3#1#RR7`q=!dj^}F6~(-J;41YX%SuP zNrp+JHb~d8h?b4g6(}Ly#3F__Q2_2XOGh`;SPL=n7b30vM{G-8y0wL1Tcsb8(kxDF zBfxfozC}<(c2Edzp@{ySOyO;c!30K9{O+Rjcch3u| zzM^X6hWQA;CdoI99b=an-FF24-ux1HuqNOXoe(^?F;aBm@c3HI&EVq|9{JZpJ(gX* zW_}Ad2ROYDezwx-MZ3w0zAlNMh|E;Pi5c681|`S*6K*sqclx!L%!2#-N||P=vX$|u z%TL$zg_leHv7uC|Kh^N+6kC2Wdd+dy+2tWzbw@d;qWPmUw)Kra9sW9=Rl`4Cv%F|LFy~moIR?1anJe!FOltcEGu#%f=%zG`r3;qv z+Is%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j @@ -12,7 +12,7 @@ - + diff --git a/PKHeX.Drawing/PKHeX.Drawing.csproj b/PKHeX.Drawing/PKHeX.Drawing.csproj index b69d3fefc5b..e04075958f3 100644 --- a/PKHeX.Drawing/PKHeX.Drawing.csproj +++ b/PKHeX.Drawing/PKHeX.Drawing.csproj @@ -6,7 +6,7 @@ - + diff --git a/PKHeX.WinForms/Resources/text/changelog.txt b/PKHeX.WinForms/Resources/text/changelog.txt index 4bbf4452e35..ba8b8321ce5 100644 --- a/PKHeX.WinForms/Resources/text/changelog.txt +++ b/PKHeX.WinForms/Resources/text/changelog.txt @@ -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. diff --git a/Tests/PKHeX.Core.Tests/PKHeX.Core.Tests.csproj b/Tests/PKHeX.Core.Tests/PKHeX.Core.Tests.csproj index 33cf134f084..239fd4512bb 100644 --- a/Tests/PKHeX.Core.Tests/PKHeX.Core.Tests.csproj +++ b/Tests/PKHeX.Core.Tests/PKHeX.Core.Tests.csproj @@ -7,9 +7,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive