From ce78a2231e7d8465bbe1db190e96980ac3208963 Mon Sep 17 00:00:00 2001 From: CWX Date: Wed, 5 Feb 2025 06:41:50 +0000 Subject: [PATCH] add comment --- Libraries/Core/Services/PostDbLoadService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Core/Services/PostDbLoadService.cs b/Libraries/Core/Services/PostDbLoadService.cs index f5b7a322..45e3da97 100644 --- a/Libraries/Core/Services/PostDbLoadService.cs +++ b/Libraries/Core/Services/PostDbLoadService.cs @@ -284,12 +284,12 @@ public class PostDbLoadService( } - // TODO: CWX Change the way we get Maps protected void AdjustLocationBotValues() { var mapsDb = _databaseService.GetLocations(); var mapsDict = mapsDb.GetDictionary(); foreach (var (key, cap) in _botConfig.MaxBotCap) { + // Keys given are like this: "factory4_night" use GetMappedKey to change to "Factory4Night" which the dictionary contains if (!mapsDict.TryGetValue(mapsDb.GetMappedKey(key), out var map)) { continue;