Prevent UBGLs from generating patron_in_weapon during mod generation

https://github.com/sp-tarkov/server/pull/1154
This commit is contained in:
Chomp
2025-04-06 09:48:46 +01:00
parent a0557d2c9c
commit 699b43ef93
@@ -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,