mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
* 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>
29 lines
893 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
|