mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
# Description A long time ago someone told me "NO IT'S TOO OP, DON'T GIVE HARPIES A DAW". So now I'm letting Harpies blow 10 trait points on having a DAW. You're welcome. Yes I have actually tested this ingame, and it works. <details><summary><h1>Media</h1></summary> <p>  </p> </details> # Changelog 🆑 - add: Added "Lyre Bird" as a new trait exclusively available to Harpies. It massively expands their ability to play Midis. (cherry picked from commit cc91eebe70f28834f1cd3c2ce611561030a15648)
19 lines
622 B
C#
19 lines
622 B
C#
using Content.Client.Instruments;
|
|
using Content.Shared.Instruments;
|
|
using Content.Shared.Traits.Assorted.Prototypes;
|
|
using Content.Shared.Traits.Assorted.Systems;
|
|
|
|
namespace Content.Client.Traits;
|
|
|
|
public sealed class SingerSystem : SharedSingerSystem
|
|
{
|
|
protected override SharedInstrumentComponent EnsureInstrumentComp(EntityUid uid, SingerInstrumentPrototype singer)
|
|
{
|
|
var instrumentComp = EnsureComp<InstrumentComponent>(uid);
|
|
instrumentComp.AllowPercussion = singer.AllowPercussion;
|
|
instrumentComp.AllowProgramChange = singer.AllowProgramChange;
|
|
|
|
return instrumentComp;
|
|
}
|
|
}
|