mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
# Description Some improvements to loadouts too. --- # TODO - [x] Points logic - [x] Server-side validation - [x] Categorize traits - [x] Assign points to traits - [x] Header costs - [x] Sort entries - [x] Max traits - [x] Communicate max traits - [x] Point bar - [x] Group exclusivity - Black outline on text - [x] Fix existing component whitelists --- <details><summary><h1>Media</h1></summary> <p> ## Accurate except for small details  ### Something to note:    </p> </details> --- # Changelog 🆑 - add: Added trait points - add: Added categories for traits --------- Co-authored-by: VMSolidus <evilexecutive@gmail.com>
25 lines
710 B
C#
25 lines
710 B
C#
namespace Content.Shared.Traits.Assorted.Systems;
|
|
|
|
/// <summary>
|
|
/// This handles removing accents when using the accentless trait.
|
|
/// </summary>
|
|
public sealed class AccentlessSystem : EntitySystem
|
|
{
|
|
/// <inheritdoc/>
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<Components.AccentlessComponent, ComponentStartup>(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());
|
|
}
|
|
}
|
|
}
|