using Content.Shared.Inventory.Events; using Content.Shared.Tag; using Content.Shared.Humanoid; using Robust.Shared.Prototypes; namespace Content.Shared._DV.Harpy; public sealed class HarpyVisualsSystem : EntitySystem { [Dependency] private readonly TagSystem _tagSystem = default!; [Dependency] private readonly SharedHumanoidAppearanceSystem _humanoidSystem = default!; private readonly ProtoId HarpyWingsTag = "HidesHarpyWings"; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnDidEquipEvent); SubscribeLocalEvent(OnDidUnequipEvent); } private void OnDidEquipEvent(EntityUid uid, HarpySingerComponent component, DidEquipEvent args) { if (args.Slot == "outerClothing" && _tagSystem.HasTag(args.Equipment, HarpyWingsTag)) { _humanoidSystem.SetLayerVisibility(uid, HumanoidVisualLayers.RArmExtension, false); // Frontier: RArm