Fixed normal scavs giving incorrect xp on death

This commit is contained in:
Chomp
2025-03-28 17:00:19 +00:00
parent 033a93c614
commit 21af001dd4
2 changed files with 10 additions and 2 deletions
@@ -2140,8 +2140,8 @@
"min": -1
},
"normal": {
"max": 20,
"min": 20
"max": -1,
"min": -1
}
},
"standingForKill": {
@@ -328,6 +328,14 @@ public class BotGenerator(
return _randomUtil.GetInt(experiences["normal"].Min, experiences["normal"].Max);
}
// Some bots have -1/-1, shortcut result
if (result.Max == -1)
{
return -1;
}
return _randomUtil.GetInt(result.Min, result.Max);
}