mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* Refactor accents a little * Fix Linter * Make T happy * Aaaand fix linter * Add RelayAccentsComponent * Update into RelayAccentSystem * Fix unnecessary override and slurred * Fix some spacing and formatting * Update a comment * Review changes * cleaning * partial * aoao * destruction --------- Co-authored-by: Pok <113675512+Pok27@users.noreply.github.com>
14 lines
442 B
C#
14 lines
442 B
C#
using Content.Shared.Speech.Components;
|
|
|
|
namespace Content.Shared.Speech.EntitySystems;
|
|
|
|
/// <summary>
|
|
/// Applies the all-caps accent to speech and relayed speech status effect events.
|
|
/// </summary>
|
|
public sealed class AllCapsAccentSystem : RelayAccentSystem<AllCapsAccentComponent>
|
|
{
|
|
public override string Accentuate(string message, Entity<AllCapsAccentComponent>? ent = null)
|
|
{
|
|
return message.ToUpperInvariant();
|
|
}
|
|
}
|