eft-lootvalueex/Plugin/Utils/ItemUtils.cs

18 lines
461 B
C#
Raw Normal View History

using EFT.InventoryLogic;
namespace LootValueEX.Utils
{
internal class ItemUtils
{
public static float GetArmorDurability(IEnumerable<RepairableComponent> repairableComponents)
{
float totalDurability = 0;
foreach (RepairableComponent component in repairableComponents)
{
totalDurability += component.Durability;
}
return totalDurability;
}
}
}