using Content.Shared.Inventory.Events; using Content.Shared._White._Engi.BucketHelmet; namespace Content.Server._White._Engi.BucketHelmet; /// /// WD. /// This handles placemet of PreventStrippingFromEarsComponent when bucket helmet is in use. /// public sealed class BucketHelmetSystem : EntitySystem { public override void Initialize() { SubscribeLocalEvent(OnGotEquipped); SubscribeLocalEvent(OnGotUnequipped); } public void OnGotUnequipped(EntityUid uid, BucketHelmetComponent component, GotUnequippedEvent args) { RemComp(args.Equipee); } public void OnGotEquipped(EntityUid uid, BucketHelmetComponent component, GotEquippedEvent args) { if (args.Slot == "head") EnsureComp(args.Equipee); } }