Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions EXILED/Exiled.API/Features/Pickups/Pickup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Exiled.API.Features.Pickups
using System.Collections.Generic;
using System.Linq;

using Exiled.API.Extensions;
using Exiled.API.Features.Core;
using Exiled.API.Features.Pickups.Projectiles;
using Exiled.API.Interfaces;
Expand Down Expand Up @@ -208,6 +209,11 @@ public float PickupTime
/// </summary>
public ItemType Type => Base.NetworkInfo.ItemId;

/// <summary>
/// Gets the <see cref="ItemCategory"/> of the item.
/// </summary>
public ItemCategory Category => Type.GetCategory();

/// <summary>
/// Gets or sets a value indicating whether the pickup is locked (can't be picked up).
/// </summary>
Expand Down