Fixed incompatible checks failing

This commit is contained in:
Chomp
2025-01-27 18:46:15 +00:00
parent 79793414d5
commit 178a947e16
+3 -3
View File
@@ -387,7 +387,7 @@ public class BotGeneratorHelper(
}
// Does item being checked get blocked/block existing item
if (itemToEquip.Properties.BlocksFaceCover ?? false)
if (itemToEquip.Properties.BlocksFaceCover.GetValueOrDefault(false))
{
var existingFaceCover = itemsEquipped.FirstOrDefault((item) => item.SlotId == "FaceCover");
if (existingFaceCover is not null)
@@ -403,7 +403,7 @@ public class BotGeneratorHelper(
}
// Does item being checked get blocked/block existing item
if (itemToEquip.Properties.BlocksEarpiece ?? false)
if (itemToEquip.Properties.BlocksEarpiece.GetValueOrDefault(false))
{
var existingEarpiece = itemsEquipped.FirstOrDefault((item) => item.SlotId == "Earpiece");
if (existingEarpiece is not null)
@@ -419,7 +419,7 @@ public class BotGeneratorHelper(
}
// Does item being checked get blocked/block existing item
if (itemToEquip.Properties.BlocksArmorVest is not null)
if (itemToEquip.Properties.BlocksArmorVest.GetValueOrDefault(false))
{
var existingArmorVest = itemsEquipped.FirstOrDefault((item) => item.SlotId == "ArmorVest");
if (existingArmorVest is not null)