public static void SetLoadedAmmoType(this InventoryItem item, ItemSpec ammoType) { Debug.Assert(ammoType.IsAmmo()); item.SetProperty(new InventoryItemProperty((short)InventoryItemPropertyEnum.LoadedAmmoType, ammoType.Id)); }