Skip to content

Commit

Permalink
Fix System and Component Slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
ps3moira committed Dec 28, 2023
1 parent 8f97989 commit 44b1c50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Content.Server.Speech.EntitySystems;

namespace Content.Server.DeltaV.Speech.Components;

[RegisterComponent]
[Access(typeof(ScottishAccentSystem))]
public sealed partial class ScottishAccentComponent : Component
{

}
{ }
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Content.Server.Speech.Components;
using Robust.Shared.Random;
using System.Text.RegularExpressions;

namespace Content.Server.Speech.EntitySystems;
Expand All @@ -21,11 +20,12 @@ public string Accentuate(string message, ScottishAccentComponent component)
var msg = message;

msg = _replacement.ApplyReplacements(msg, "Scottish");

return msg;
}

private void OnAccentGet(EntityUid uid, ScottishAccentComponent component, AccentGetEvent args)
{
args.Message = Accentuate(args.Message, component);
}
}
}

0 comments on commit 44b1c50

Please sign in to comment.