merge into main #1

Merged
chomp merged 35 commits from WeightedSystem into master 2023-08-15 05:29:21 -04:00
Showing only changes of commit 09c6db807f - Show all commits

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);
}
}