From 303a744a4215c3d7eda4f279ce3551ca08df233c Mon Sep 17 00:00:00 2001 From: VALERA771 Date: Tue, 21 Nov 2023 19:00:17 +0300 Subject: [PATCH 1/2] dors --- Exiled.API/Features/Scp914.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Exiled.API/Features/Scp914.cs b/Exiled.API/Features/Scp914.cs index 3b07f549dc..cabcba0fdd 100644 --- a/Exiled.API/Features/Scp914.cs +++ b/Exiled.API/Features/Scp914.cs @@ -10,6 +10,7 @@ namespace Exiled.API.Features using System.Collections.Generic; using System.Linq; + using Exiled.API.Features.Doors; using Exiled.API.Features.Pickups; using Exiled.API.Features.Pools; using global::Scp914; @@ -83,6 +84,11 @@ public static Scp914Mode ConfigMode /// public static Transform OutputBooth => Scp914Controller.OutputChamber; + /// + /// Gets the list with which SCP-914 has. + /// + public static IReadOnlyCollection Doors => Scp914Controller._doors.Select(Door.Get).ToList(); + /// /// Filters all GameObjects inside SCP-914's intake chamber into players and items. /// From b81650320ff6a468281b684001373105b5335bbd Mon Sep 17 00:00:00 2001 From: VALERA771 Date: Tue, 21 Nov 2023 19:03:42 +0300 Subject: [PATCH 2/2] useless -> obsolete --- .../EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs | 9 ++++----- .../EventArgs/Scp914/UpgradingPickupEventArgs.cs | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Exiled.Events/EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs b/Exiled.Events/EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs index 14c7a8941f..5fb1cec315 100644 --- a/Exiled.Events/EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs @@ -7,13 +7,12 @@ namespace Exiled.Events.EventArgs.Scp914 { + using System; + using API.Features; using API.Features.Items; - using global::Scp914; - using Interfaces; - using InventorySystem.Items; /// @@ -38,7 +37,6 @@ public class UpgradingInventoryItemEventArgs : IPlayerEvent, IItemEvent, IDeniab /// public UpgradingInventoryItemEventArgs(Player player, ItemBase item, Scp914KnobSetting knobSetting, bool isAllowed = true) { - Scp914 = API.Features.Scp914.Scp914Controller; Player = player; Item = Item.Get(item); KnobSetting = knobSetting; @@ -48,7 +46,8 @@ public UpgradingInventoryItemEventArgs(Player player, ItemBase item, Scp914KnobS /// /// Gets the instance. /// - public Scp914Controller Scp914 { get; } + [Obsolete("Use Scp914::Scp914Controller instead.")] + public Scp914Controller Scp914 => API.Features.Scp914.Scp914Controller; /// /// Gets or sets SCP-914 working knob setting. diff --git a/Exiled.Events/EventArgs/Scp914/UpgradingPickupEventArgs.cs b/Exiled.Events/EventArgs/Scp914/UpgradingPickupEventArgs.cs index 23e6768a1f..87916ed0de 100644 --- a/Exiled.Events/EventArgs/Scp914/UpgradingPickupEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp914/UpgradingPickupEventArgs.cs @@ -7,13 +7,12 @@ namespace Exiled.Events.EventArgs.Scp914 { + using System; + using Exiled.API.Features.Pickups; using Exiled.Events.EventArgs.Interfaces; - using global::Scp914; - using InventorySystem.Items.Pickups; - using UnityEngine; /// @@ -35,7 +34,6 @@ public class UpgradingPickupEventArgs : IPickupEvent, IDeniableEvent /// public UpgradingPickupEventArgs(ItemPickupBase item, Vector3 newPos, Scp914KnobSetting knobSetting) { - Scp914 = API.Features.Scp914.Scp914Controller; Pickup = Pickup.Get(item); OutputPosition = newPos; KnobSetting = knobSetting; @@ -49,7 +47,8 @@ public UpgradingPickupEventArgs(ItemPickupBase item, Vector3 newPos, Scp914KnobS /// /// Gets the instance. /// - public Scp914Controller Scp914 { get; } + [Obsolete("Use Scp914::Scp914Controller instead.")] + public Scp914Controller Scp914 => API.Features.Scp914.Scp914Controller; /// /// Gets or sets the position the item will be output to.