using Content.Shared._NF.Manufacturing.Components; using Content.Shared.Containers.ItemSlots; namespace Content.Shared._NF.Manufacturing.EntitySystems; /// /// Consumes large quantities of power, scales excessive overage down to reasonable values. /// Spawns entities when thresholds reached. /// public abstract partial class SharedEntitySpawnPowerConsumerSystem : EntitySystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnItemSlotInsertAttempt); } private void OnItemSlotInsertAttempt(Entity ent, ref ItemSlotInsertAttemptEvent args) { if (args.User != null) args.Cancelled = true; } }