diff --git a/Plugin/Extensions/ItemExtensions.cs b/Plugin/Extensions/ItemExtensions.cs index f7266e1..32134af 100644 --- a/Plugin/Extensions/ItemExtensions.cs +++ b/Plugin/Extensions/ItemExtensions.cs @@ -77,6 +77,12 @@ namespace LootValueEX.Extensions if (item.TryGetItemComponent(out MedKitComponent medKitComponent)) return medKitComponent.HpResource; return -1f; + case MagazineTemplate: + MagazineClass? magazineClass = item as MagazineClass; + return magazineClass != null ? magazineClass.Count : -1f; + case AmmoBoxTemplate: + AmmoBox? ammoBox = item as AmmoBox; + return ammoBox != null ? ammoBox.Count : -1f; default: return -1f; }