From 857cdd798a1356f2302d01ec99e8fc1227c09398 Mon Sep 17 00:00:00 2001 From: ZeroTwo <63092138+NotZer0Two@users.noreply.github.com> Date: Wed, 14 Aug 2024 18:28:52 +0200 Subject: [PATCH] Category (#2767) --- Exiled.API/Features/Pickups/Pickup.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Exiled.API/Features/Pickups/Pickup.cs b/Exiled.API/Features/Pickups/Pickup.cs index a9081235e7..86b86c24e5 100644 --- a/Exiled.API/Features/Pickups/Pickup.cs +++ b/Exiled.API/Features/Pickups/Pickup.cs @@ -202,6 +202,11 @@ public float PickupTime [EProperty(readOnly: true, category: nameof(Pickup))] public ItemType Type => Base.NetworkInfo.ItemId; + /// + /// Gets the of the item. + /// + public ItemCategory Category => Type.GetCategory(); + /// /// Gets or sets a value indicating whether the pickup is locked (can't be picked up). ///