Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
pofitlo-Git committed Dec 9, 2024
1 parent 25fc23c commit d17b591
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Content.Server/_CorvaxNext/Resomi/Abilities/ListenUpSkillSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using Content.Shared.Actions;
using Content.Shared.Alert;
using Content.Shared.Maps;
using Robust.Shared.Containers;
using Robust.Shared.Map;
using Robust.Shared.Timing;
using Content.Shared._CorvaxNext.Resomi;
using Content.Shared.Movement.Components;
using Content.Shared.Movement.Systems;
using Content.Shared._CorvaxNext.Resomi.Abilities;
using Content.Shared.Damage.Components;
using Robust.Shared.Physics;
using Content.Shared._CorvaxNext.Resomi.Abilities.Hearing;

namespace Content.Server._CorvaxNext.Resomi.Abilities;

public sealed class ListenUpSkillSystem : SharedListenUpSkillSystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ListenUpSkillComponent, ComponentInit>(OnComponentInit);
SubscribeLocalEvent<ListenUpSkillComponent, ListenUpActionEvent>(SwitchAgility);
SubscribeLocalEvent<ListenUpSkillComponent, RefreshMovementSpeedModifiersEvent>(OnRefreshMovespeed);
}
private void OnComponentInit(Entity<ListenUpSkillComponent> ent, ref ComponentInit args)
{
_actionsSystem.AddAction(ent.Owner, ref ent.Comp.SwitchAgilityActionEntity, ent.Comp.SwitchAgilityAction, ent.Owner);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;

namespace Content.Shared._CorvaxNext.Resomi.Abilities.Hearing;

[RegisterComponent, NetworkedComponent]
[AutoGenerateComponentState]
public sealed partial class ListenUpSkillComponent : Component
{

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using Robust.Shared.Timing;
using Robust.Shared.Physics.Systems;
using Robust.Shared.Physics;
using Content.Shared.Physics;
using Content.Shared.Popups;
using Robust.Shared.Physics.Events;
using Robust.Shared.Log;
using Content.Shared.Climbing.Systems;
using Content.Shared.Damage.Systems;
using Content.Shared.Actions;

namespace Content.Shared._CorvaxNext.Resomi.Abilities.Hearing;

public abstract class SharedListenUpSkillSystem : EntitySystem
{
public override void Initialize()
{

}
}
2 changes: 2 additions & 0 deletions Content.Shared/_CorvaxNext/Resomi/SharedResomi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ namespace Content.Shared._CorvaxNext.Resomi;

public sealed partial class SwitchAgillityActionEvent : InstantActionEvent;

public sealed partial class ListenUpActionEvent : InstantActionEvent;

/// <summary>
/// Rises when the action state changes
/// </summary>
Expand Down
9 changes: 9 additions & 0 deletions Resources/Prototypes/_CorvaxNext/Actions/resomi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@
icon: _CorvaxNext/Mobs/Species/Resomi/Abilities/AgilityOff.png
iconOn: _CorvaxNext/Mobs/Species/Resomi/Abilities/AgilityOn.png
event: !type:SwitchAgillityActionEvent

- type: entity
id: ListenUpAction
name: Listen up
description: Listen up
components:
- type: InstantAction
icon: _CorvaxNext/Mobs/Species/Resomi/Abilities/AgilityOff.png
event: !type:ListenUpActionEvent

0 comments on commit d17b591

Please sign in to comment.