Fixed normal scavs giving incorrect xp on death
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user