namespace Content.Shared.Traits.Assorted.Systems;
///
/// This handles removing accents when using the accentless trait.
///
public sealed class AccentlessSystem : EntitySystem
{
///
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent(RemoveAccents);
}
private void RemoveAccents(EntityUid uid, Components.AccentlessComponent component, ComponentStartup args)
{
foreach (var accent in component.RemovedAccents.Values)
{
var accentComponent = accent.Component;
RemComp(uid, accentComponent.GetType());
}
}
}