Files
wwdpublic/Content.Shared/Traits/Assorted/Components/SingerComponent.cs
VMSolidus 2c724ef544 Chirp (#1056)
# Description

This PR fixes the Singer trait, as well as the Harpy singing ability. As
a bonus, the action button is no longer hardcoded to the species.

# Changelog

🆑
- fix: Fixed Harpy singing not opening the Midi Player.
2024-10-19 15:04:06 +07:00

20 lines
682 B
C#

using Content.Shared.Traits.Assorted.Prototypes;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Traits.Assorted.Components;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class SingerComponent : Component
{
// Traits are server-only, and is this is added via traits, it must be replicated to the client.
[DataField(required: true), AutoNetworkedField]
public ProtoId<SingerInstrumentPrototype> Proto = string.Empty;
[DataField(serverOnly: true)]
public EntProtoId? MidiActionId = "ActionHarpyPlayMidi";
[DataField(serverOnly: true)]
public EntityUid? MidiAction;
}