]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Revert "Make wearing an Ushanka also apply accent to your name" (#29524)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fri, 28 Jun 2024 00:08:09 +0000 (10:08 +1000)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2024 00:08:09 +0000 (10:08 +1000)
Revert "Make wearing an Ushanka also apply accent to your name (#29111)"

This reverts commit e5a85e2a1359968ab71c4bcd79bfc834a8b3cb5a.

Content.Server/Speech/Components/AccentWearerNameClothingComponent.cs [deleted file]
Content.Server/Speech/EntitySystems/AccentWearerNameClothingSystem.cs [deleted file]
Resources/Locale/en-US/speech/accent-wearer-name-clothing.ftl [deleted file]
Resources/Prototypes/Entities/Clothing/Head/hats.yml

diff --git a/Content.Server/Speech/Components/AccentWearerNameClothingComponent.cs b/Content.Server/Speech/Components/AccentWearerNameClothingComponent.cs
deleted file mode 100644 (file)
index 288eaa8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-using Content.Server.Speech.EntitySystems;
-
-namespace Content.Server.Speech.Components;
-
-/// <summary>
-/// Applies any accent components on this item to the name of the wearer while worn.
-/// </summary>
-[RegisterComponent]
-[Access(typeof(AccentWearerNameClothingSystem))]
-public sealed partial class AccentWearerNameClothingComponent : Component;
diff --git a/Content.Server/Speech/EntitySystems/AccentWearerNameClothingSystem.cs b/Content.Server/Speech/EntitySystems/AccentWearerNameClothingSystem.cs
deleted file mode 100644 (file)
index fc381c5..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-using Content.Server.Speech.Components;
-using Content.Shared.Clothing;
-using Content.Shared.Inventory;
-using Content.Shared.NameModifier.EntitySystems;
-
-namespace Content.Server.Speech.EntitySystems;
-
-/// <inheritdoc cref="AccentWearerNameClothingComponent"/>
-public sealed class AccentWearerNameClothingSystem : EntitySystem
-{
-    [Dependency] private readonly NameModifierSystem _nameMod = default!;
-
-    public override void Initialize()
-    {
-        base.Initialize();
-
-        SubscribeLocalEvent<AccentWearerNameClothingComponent, ClothingGotEquippedEvent>(OnGotEquipped);
-        SubscribeLocalEvent<AccentWearerNameClothingComponent, ClothingGotUnequippedEvent>(OnGotUnequipped);
-        SubscribeLocalEvent<AccentWearerNameClothingComponent, InventoryRelayedEvent<RefreshNameModifiersEvent>>(OnRefreshNameModifiers);
-    }
-
-    private void OnGotEquipped(Entity<AccentWearerNameClothingComponent> ent, ref ClothingGotEquippedEvent args)
-    {
-        _nameMod.RefreshNameModifiers(args.Wearer);
-    }
-
-    private void OnGotUnequipped(Entity<AccentWearerNameClothingComponent> ent, ref ClothingGotUnequippedEvent args)
-    {
-        _nameMod.RefreshNameModifiers(args.Wearer);
-    }
-
-    private void OnRefreshNameModifiers(Entity<AccentWearerNameClothingComponent> ent, ref InventoryRelayedEvent<RefreshNameModifiersEvent> args)
-    {
-        var ev = new AccentGetEvent(ent, args.Args.BaseName);
-        RaiseLocalEvent(ent, ev);
-        // Use a negative priority since we're going to bulldoze any earlier changes
-        args.Args.AddModifier("comp-accent-wearer-name-clothing-format", -1, ("accentedName", ev.Message));
-    }
-}
diff --git a/Resources/Locale/en-US/speech/accent-wearer-name-clothing.ftl b/Resources/Locale/en-US/speech/accent-wearer-name-clothing.ftl
deleted file mode 100644 (file)
index 49b0fb3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-comp-accent-wearer-name-clothing-format = {$accentedName}
index e2786f70f0620043c82c51671d7518f18122179c..d220d55f1f52382c7c396f80865d143fb2296d57 100644 (file)
   - type: Appearance
   - type: AddAccentClothing
     accent: RussianAccent
-  - type: RussianAccent
-  - type: AccentWearerNameClothing
   - type: Foldable
     canFoldInsideContainer: true
   - type: FoldableClothing