mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 16:48:10 +03:00
# 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.
20 lines
682 B
C#
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;
|
|
}
|