Also fix revenge list

This commit is contained in:
Chomp 2022-07-04 22:23:16 +01:00
parent 64ceb6684b
commit 09c6db807f

View File

@ -41,7 +41,7 @@ namespace Generator.Helpers
}
var warnKey = "WARN_BOT_TYPES";
if (settings.Value.Mind.ContainsKey("WARN_BOT_TYPES"))
if (settings.Value.Mind.ContainsKey(warnKey))
{
var deserialisedArray = getDeserializedStringArray(settings, warnKey);
if (deserialisedArray.Length> 0)
@ -70,6 +70,16 @@ namespace Generator.Helpers
}
}
var revengeKey = "REVENGE_BOT_TYPES";
if (settings.Value.Mind.ContainsKey(revengeKey))
{
var deserialisedArray = getDeserializedStringArray(settings, revengeKey);
if (deserialisedArray.Length > 0)
{
settings.Value.Mind[revengeKey] = deserialisedArray;
}
}
SaveSettingsIntoBotFile(botToUpdate, difficulty, settings.Value);
}
}