Fix typing, Importer needs type to be defaultBuilds as buildtype can be a string
This commit is contained in:
@@ -522,7 +522,7 @@ public class BotWeaponGenerator
|
||||
{
|
||||
var id = _hashUtil.Generate();
|
||||
_botGeneratorHelper.AddItemWithChildrenToEquipmentSlot(
|
||||
new() { EquipmentSlots.SecuredContainer.ToString() },
|
||||
new() { EquipmentSlots.SecuredContainer },
|
||||
id,
|
||||
ammoTemplate,
|
||||
new()
|
||||
|
||||
@@ -139,9 +139,9 @@ public class PlayerScavGenerator
|
||||
|
||||
// Add additional items to player scav as loot
|
||||
AddAdditionalLootToPlayerScavContainers(playerScavKarmaSettings.LootItemsToAddChancePercent, scavData, [
|
||||
"TacticalVest",
|
||||
"Pockets",
|
||||
"Backpack"
|
||||
EquipmentSlots.TacticalVest,
|
||||
EquipmentSlots.Pockets,
|
||||
EquipmentSlots.Backpack
|
||||
]);
|
||||
|
||||
// Remove secure container
|
||||
@@ -162,7 +162,7 @@ public class PlayerScavGenerator
|
||||
/// <param name="possibleItemsToAdd">dict of tpl + % chance to be added</param>
|
||||
/// <param name="scavData"></param>
|
||||
/// <param name="containersToAddTo">Possible slotIds to add loot to</param>
|
||||
protected void AddAdditionalLootToPlayerScavContainers(Dictionary<string, double> possibleItemsToAdd, BotBase scavData, List<string> containersToAddTo)
|
||||
protected void AddAdditionalLootToPlayerScavContainers(Dictionary<string, double> possibleItemsToAdd, BotBase scavData, List<EquipmentSlots> containersToAddTo)
|
||||
{
|
||||
foreach (var tpl in possibleItemsToAdd)
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ public class ExternalInventoryMagGen : InventoryMagGen, IInventoryMagGen
|
||||
);
|
||||
|
||||
var fitsIntoInventory = _botGeneratorHelper.AddItemWithChildrenToEquipmentSlot(
|
||||
[EquipmentSlots.TacticalVest.ToString(), EquipmentSlots.Pockets.ToString()],
|
||||
[EquipmentSlots.TacticalVest, EquipmentSlots.Pockets],
|
||||
magazineWithAmmo[0].Id,
|
||||
magazineTpl,
|
||||
magazineWithAmmo,
|
||||
|
||||
@@ -37,7 +37,7 @@ public class UbglExternalMagGen : InventoryMagGen, IInventoryMagGen
|
||||
inventoryMagGen.GetAmmoTemplate().Id,
|
||||
(int)bulletCount,
|
||||
inventoryMagGen.GetPmcInventory(),
|
||||
[EquipmentSlots.TacticalVest.ToString()]
|
||||
[EquipmentSlots.TacticalVest]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user