From 94597b84e081f3fbd46ef99a241dd0e8d2f44726 Mon Sep 17 00:00:00 2001 From: sora10pls <17801814+sora10pls@users.noreply.github.com> Date: Wed, 24 Feb 2021 11:12:59 -0500 Subject: [PATCH] =?UTF-8?q?Increment=20Total=20Battle/Pok=C3=A9=20Ball=20u?= =?UTF-8?q?sage=20records=20on=20set?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3158 --- PKHeX.Core/Saves/SAV6.cs | 3 +++ PKHeX.Core/Saves/SAV7.cs | 3 +++ PKHeX.Core/Saves/SAV8.cs | 1 + 3 files changed, 7 insertions(+) diff --git a/PKHeX.Core/Saves/SAV6.cs b/PKHeX.Core/Saves/SAV6.cs index b8ede7a00..bcb810b01 100644 --- a/PKHeX.Core/Saves/SAV6.cs +++ b/PKHeX.Core/Saves/SAV6.cs @@ -147,7 +147,10 @@ private void AddCountAcquired(PKM pkm) if (pkm.CurrentHandler == 1) Records.AddRecord(012); // trade if (!pkm.WasEgg) + { + Records.AddRecord(004); // total battles Records.AddRecord(005); // wild encounters + } } private static uint GetFormArgument(PKM pkm, bool isParty) diff --git a/PKHeX.Core/Saves/SAV7.cs b/PKHeX.Core/Saves/SAV7.cs index e9c6ab3e6..71fbe3ded 100644 --- a/PKHeX.Core/Saves/SAV7.cs +++ b/PKHeX.Core/Saves/SAV7.cs @@ -194,7 +194,10 @@ private void AddCountAcquired(PKM pkm) if (pkm.CurrentHandler == 1) Records.AddRecord(011); // trade if (!pkm.WasEgg) + { Records.AddRecord(004); // wild encounters + Records.AddRecord(042); // balls used + } } private static uint GetFormArgument(PKM pkm) diff --git a/PKHeX.Core/Saves/SAV8.cs b/PKHeX.Core/Saves/SAV8.cs index 717222c9a..6f916e58f 100644 --- a/PKHeX.Core/Saves/SAV8.cs +++ b/PKHeX.Core/Saves/SAV8.cs @@ -140,6 +140,7 @@ private void AddCountAcquired(PKM pkm) Records.AddRecord(01); // wild capture Records.AddRecord(06); // total captured Records.AddRecord(16); // wild encountered + Records.AddRecord(23); // total battled } if (pkm.CurrentHandler == 1) Records.AddRecord(17, 2); // trade * 2 -- these games count 1 trade as 2 for some reason.