]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make accentless cost 2 points (#29603)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 30 Jun 2024 13:47:22 +0000 (23:47 +1000)
committerGitHub <noreply@github.com>
Sun, 30 Jun 2024 13:47:22 +0000 (09:47 -0400)
Not an easy way to do this so if someone wants the default to be better be my guest.

Content.Shared/Preferences/HumanoidCharacterProfile.cs
Resources/Prototypes/Traits/speech.yml

index a823035cd3877d85153c14f0add604c08d3f4eab..c3ebe0d1a383722f12c80a69d9bbc9233f8530cb 100644 (file)
@@ -587,11 +587,11 @@ namespace Content.Shared.Preferences
             }
 
             var antags = AntagPreferences
-                .Where(id => prototypeManager.TryIndex<AntagPrototype>(id, out var antag) && antag.SetPreference)
+                .Where(id => prototypeManager.TryIndex(id, out var antag) && antag.SetPreference)
                 .ToList();
 
             var traits = TraitPreferences
-                         .Where(prototypeManager.HasIndex<TraitPrototype>)
+                         .Where(prototypeManager.HasIndex)
                          .ToList();
 
             Name = name;
index 9448e160b5f7e36bdbeedd7f26aa5e5f0e76f11a..961a53023bc32ea59e19d60d61efc736fffa75d8 100644 (file)
@@ -5,6 +5,7 @@
   name: trait-accentless-name
   description: trait-accentless-desc
   category: SpeechTraits
+  cost: 2
   components:
   - type: Accentless
     removes: