cast to int, change type and lock before accessing bots

This commit is contained in:
CWX
2025-01-25 20:13:30 +00:00
parent 5f663d70af
commit 573cf786a9
4 changed files with 37 additions and 21 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ public class BotGenerator(
bot.Info.Experience = botLevel.Exp;
bot.Info.Level = botLevel.Level;
bot.Info.Settings.Experience = GetExperienceRewardForKillByDifficulty(
bot.Info.Settings.Experience = (int)GetExperienceRewardForKillByDifficulty(
botJsonTemplate.BotExperience.Reward,
botGenerationDetails.BotDifficulty,
botGenerationDetails.Role