Prevent UBGLs from generating patron_in_weapon during mod generation
https://github.com/sp-tarkov/server/pull/1154
This commit is contained in:
@@ -511,6 +511,12 @@ public class BotEquipmentModGenerator(
|
||||
continue;
|
||||
}
|
||||
|
||||
// If the parent is a UBGL, the patron_in_weapon will be generated later - so skip it for now
|
||||
if (modSlot == "patron_in_weapon" && _itemHelper.IsOfBaseclass(request.ParentTemplate.Id, BaseClasses.UBGL))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check spawn chance of mod
|
||||
var modSpawnResult = ShouldModBeSpawned(
|
||||
modsParentSlot,
|
||||
|
||||
Reference in New Issue
Block a user