From f2419db0929a921158832b3db7ed33c2e6891c28 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 17 Dec 2023 21:14:46 -0800 Subject: [PATCH] Update PersonalInfo9SV.cs --- PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs b/PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs index 1958ac9ff..8ce82c7fa 100644 --- a/PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs +++ b/PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs @@ -109,8 +109,10 @@ public void SetAllLearnTM(Span result) public bool IsRecordPermitted(int index) => GetIsLearnTM(index); + private const int COUNT_RECORD_BASE = 200; // Up to 200 TM flags, but not all are used. + private const int COUNT_RECORD_DLC = 104; // 13 additional bytes allocated for DLC1/2 TM Flags public ReadOnlySpan RecordPermitIndexes => TM_SV; - public int RecordCountTotal => 202; + public int RecordCountTotal => COUNT_RECORD_BASE + COUNT_RECORD_DLC; public int RecordCountUsed => CountTM; private static ReadOnlySpan TM_SV =>