Files
wwdpublic/Content.Shared/DeltaV/Harpy/HarpySingerSystem.cs
VMSolidus 992c582fc8 Harpy Customization Pack 1 (#175)
* Harpy Customization ExPac 1

* Update meta.json

* Holy fuck I found out swappable instrument works on them.

* Fixing a bug where dead harpies can sing

* Review Changes

Also I remembered to add Vulpakin mimicry

* Color color

* Harpies can no longer sing while dead

* Simpler fix

* Update Content.Server/DeltaV/Harpy/HarpySingerSystem.cs

Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
Signed-off-by: VMSolidus <evilexecutive@gmail.com>

* Update Content.Server/DeltaV/Harpy/HarpySingerSystem.cs

Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
Signed-off-by: VMSolidus <evilexecutive@gmail.com>

* Update speech_emote_sounds.yml

Signed-off-by: VMSolidus <evilexecutive@gmail.com>

* Fixing a 6 month old speech bug because it annoys birds

---------

Signed-off-by: VMSolidus <evilexecutive@gmail.com>
Co-authored-by: Debug <49997488+DebugOk@users.noreply.github.com>
Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
Co-authored-by: Colin-Tel <113523727+Colin-Tel@users.noreply.github.com>
2023-10-17 21:12:31 +00:00

29 lines
893 B
C#

using Content.Shared.Actions;
namespace Content.Shared.DeltaV.Harpy
{
public class HarpySingerSystem : EntitySystem
{
[Dependency] private readonly SharedActionsSystem _actionsSystem = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<HarpySingerComponent, ComponentStartup>(OnStartup);
SubscribeLocalEvent<HarpySingerComponent, ComponentShutdown>(OnShutdown);
}
private void OnStartup(EntityUid uid, HarpySingerComponent component, ComponentStartup args)
{
_actionsSystem.AddAction(uid, ref component.MidiAction, component.MidiActionId);
}
private void OnShutdown(EntityUid uid, HarpySingerComponent component, ComponentShutdown args)
{
_actionsSystem.RemoveAction(uid, component.MidiAction);
}
}
}