Skip to content

Commit

Permalink
Edit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkheemist committed Jan 9, 2025
1 parent 4d9ffcd commit a306c1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Content.Server._NF.Speech.Components;

/// <summary>
/// Applies accent to user while they pick up entity.
/// Applies accent to user while they hold the entity.
/// </summary>
[RegisterComponent]
public sealed partial class AddAccentPickupComponent : Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Content.Server.Speech.Components;
using Content.Shared.Interaction.Events;
using Content.Shared.Item;
using Content.Shared.Verbs; // Frontier
using Content.Shared.Verbs;

namespace Content.Server._NF.Speech.EntitySystems;

Expand Down Expand Up @@ -34,12 +34,12 @@ private void OnPickup(EntityUid uid, AddAccentPickupComponent component, ref Get
rep.Accent = component.ReplacementPrototype!;

component.IsActive = true;
component.Holder = args.User; // Frontier
component.Holder = args.User;
}

private void OnDropped(EntityUid uid, AddAccentPickupComponent component, DroppedEvent args)
{
component.Holder = new EntityUid(0); // null out the component wearer entry to prevent alt verb interactions when no longer worn. Frontier
component.Holder = new EntityUid(0); // null out the component wearer entry to prevent alt verb interactions when no longer worn.
if (!component.IsActive)
return;

Expand All @@ -53,7 +53,6 @@ private void OnDropped(EntityUid uid, AddAccentPickupComponent component, Droppe
component.IsActive = false;
}

// Frontier Start
/// <summary>
/// Adds an alt verb allowing for the accent to be toggled easily.
/// </summary>
Expand Down Expand Up @@ -102,5 +101,4 @@ private void ToggleAccent(EntityUid uid, AddAccentPickupComponent component)
component.IsActive = true;
}
}
// Frontier End
}

0 comments on commit a306c1a

Please sign in to comment.