Новый акцент
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using Content.Server._Honk.Speech.EntitySystems;
|
||||
|
||||
namespace Content.Server._Honk.Speech.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Access(typeof(GermanAccentSystem))]
|
||||
public sealed partial class GermanAccentComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Content.Server._Honk.Speech.Components;
|
||||
using Content.Server.Speech;
|
||||
using Content.Server.Speech.EntitySystems;
|
||||
|
||||
namespace Content.Server._Honk.Speech.EntitySystems;
|
||||
|
||||
public sealed class GermanAccentSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly ReplacementAccentSystem _replacement = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<GermanAccentComponent, AccentGetEvent>(OnAccentGet);
|
||||
}
|
||||
|
||||
public string Accentuate(string message)
|
||||
{
|
||||
var msg = message;
|
||||
|
||||
msg = _replacement.ApplyReplacements(msg, "german");
|
||||
|
||||
return msg;
|
||||
}
|
||||
|
||||
private void OnAccentGet(EntityUid uid, GermanAccentComponent component, AccentGetEvent args)
|
||||
{
|
||||
args.Message = Accentuate(args.Message);
|
||||
}
|
||||
}
|
||||
80
Resources/Locale/ru-RU/_amour/german.ftl
Normal file
80
Resources/Locale/ru-RU/_amour/german.ftl
Normal file
@@ -0,0 +1,80 @@
|
||||
accent-german-words-1 = я
|
||||
accent-german-words-replace-1 = йа
|
||||
accent-german-words-2 = да
|
||||
accent-german-words-replace-2 = йа
|
||||
accent-german-words-3 = нет
|
||||
accent-german-words-replace-3 = найн
|
||||
accent-german-words-4 = конечно
|
||||
accent-german-words-replace-4 = натюрлих
|
||||
accent-german-words-5 = капитан
|
||||
accent-german-words-replace-5 = фюрэр
|
||||
accent-german-words-6 = глава службы безопасности
|
||||
accent-german-words-replace-6 = кригфюрэр
|
||||
accent-german-words-7 = гсб
|
||||
accent-german-words-replace-7 = кригфюрэр
|
||||
accent-german-words-8 = хос
|
||||
accent-german-words-replace-8 = кригфюрэр
|
||||
accent-german-words-9 = плохо
|
||||
accent-german-words-replace-9 = шлэхт
|
||||
accent-german-words-10 = главный врач
|
||||
accent-german-words-replace-10 = эрцтефюрэр
|
||||
accent-german-words-11 = главврач
|
||||
accent-german-words-replace-11 = эрцтефюрэр
|
||||
accent-german-words-12 = гв
|
||||
accent-german-words-replace-12 = эрцтефюрэр
|
||||
accent-german-words-13 = смо
|
||||
accent-german-words-replace-13 = эрцтефюрэр
|
||||
accent-german-words-14 = гав
|
||||
accent-german-words-replace-14 = вов
|
||||
accent-german-words-15 = ганс
|
||||
accent-german-words-replace-15 = ханс
|
||||
accent-german-words-16 = дерьмо
|
||||
accent-german-words-replace-16 = шайсэ
|
||||
accent-german-words-17 = ебать
|
||||
accent-german-words-replace-17 = фик
|
||||
accent-german-words-18 = гадить
|
||||
accent-german-words-replace-18 = шайсэн
|
||||
accent-german-words-19 = ублюдок
|
||||
accent-german-words-replace-19 = аршлох
|
||||
accent-german-words-20 = сволочь
|
||||
accent-german-words-replace-20 = аршлох
|
||||
accent-german-words-21 = хорошо
|
||||
accent-german-words-replace-21 = гут
|
||||
accent-german-words-22 = пизда
|
||||
accent-german-words-replace-22 = фотцэ
|
||||
accent-german-words-23 = хуй
|
||||
accent-german-words-replace-23 = шванц
|
||||
accent-german-words-24 = мудак
|
||||
accent-german-words-replace-24 = пиммэль
|
||||
accent-german-words-25 = ебаться
|
||||
accent-german-words-replace-25 = фикэн
|
||||
accent-german-words-26 = хуесос
|
||||
accent-german-words-replace-26 = шванцлучэр
|
||||
accent-german-words-27 = свинья
|
||||
accent-german-words-replace-27 = швайн
|
||||
accent-german-words-28 = да здравствует
|
||||
accent-german-words-replace-28 = хайль
|
||||
accent-german-words-29 = утро
|
||||
accent-german-words-replace-29 = моргэн
|
||||
accent-german-words-30 = день
|
||||
accent-german-words-replace-30 = таг
|
||||
accent-german-words-31 = вечер
|
||||
accent-german-words-replace-31 = абэнд
|
||||
accent-german-words-32 = ночь
|
||||
accent-german-words-replace-32 = нахт
|
||||
accent-german-words-33 = добрый
|
||||
accent-german-words-replace-33 = гутэн
|
||||
accent-german-words-34 = доброе
|
||||
accent-german-words-replace-34 = гутэн
|
||||
accent-german-words-35 = это
|
||||
accent-german-words-replace-35 = дас ист
|
||||
accent-german-words-36 = прекрасно
|
||||
accent-german-words-replace-36 = вундерба
|
||||
accent-german-words-37 = быстрее
|
||||
accent-german-words-replace-37 = шнеля
|
||||
accent-german-words-38 = быстро
|
||||
accent-german-words-replace-38 = шнеля
|
||||
accent-german-words-39 = пиздец
|
||||
accent-german-words-replace-39 = зир икелхафте умштанде
|
||||
accent-german-words-40 = хайль гитлер
|
||||
accent-german-words-replace-40 = я даю полное согласие на изнасилование своей жопы
|
||||
43
Resources/Prototypes/_Honk/Accents/word_replacements.yml
Normal file
43
Resources/Prototypes/_Honk/Accents/word_replacements.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
- type: accent
|
||||
id: german
|
||||
wordReplacements:
|
||||
accent-german-words-1: accent-german-words-replace-1
|
||||
accent-german-words-2: accent-german-words-replace-2
|
||||
accent-german-words-3: accent-german-words-replace-3
|
||||
accent-german-words-4: accent-german-words-replace-4
|
||||
accent-german-words-5: accent-german-words-replace-5
|
||||
accent-german-words-6: accent-german-words-replace-6
|
||||
accent-german-words-7: accent-german-words-replace-7
|
||||
accent-german-words-8: accent-german-words-replace-8
|
||||
accent-german-words-9: accent-german-words-replace-9
|
||||
accent-german-words-10: accent-german-words-replace-10
|
||||
accent-german-words-11: accent-german-words-replace-11
|
||||
accent-german-words-12: accent-german-words-replace-12
|
||||
accent-german-words-13: accent-german-words-replace-13
|
||||
accent-german-words-14: accent-german-words-replace-14
|
||||
accent-german-words-15: accent-german-words-replace-15
|
||||
accent-german-words-16: accent-german-words-replace-16
|
||||
accent-german-words-17: accent-german-words-replace-17
|
||||
accent-german-words-18: accent-german-words-replace-18
|
||||
accent-german-words-19: accent-german-words-replace-19
|
||||
accent-german-words-20: accent-german-words-replace-20
|
||||
accent-german-words-21: accent-german-words-replace-21
|
||||
accent-german-words-22: accent-german-words-replace-22
|
||||
accent-german-words-23: accent-german-words-replace-23
|
||||
accent-german-words-24: accent-german-words-replace-24
|
||||
accent-german-words-25: accent-german-words-replace-25
|
||||
accent-german-words-26: accent-german-words-replace-26
|
||||
accent-german-words-27: accent-german-words-replace-27
|
||||
accent-german-words-28: accent-german-words-replace-28
|
||||
accent-german-words-29: accent-german-words-replace-29
|
||||
accent-german-words-30: accent-german-words-replace-30
|
||||
accent-german-words-31: accent-german-words-replace-31
|
||||
accent-german-words-32: accent-german-words-replace-32
|
||||
accent-german-words-33: accent-german-words-replace-33
|
||||
accent-german-words-34: accent-german-words-replace-34
|
||||
accent-german-words-35: accent-german-words-replace-35
|
||||
accent-german-words-36: accent-german-words-replace-36
|
||||
accent-german-words-37: accent-german-words-replace-37
|
||||
accent-german-words-38: accent-german-words-replace-38
|
||||
accent-german-words-39: accent-german-words-replace-39
|
||||
accent-german-words-40: accent-german-words-replace-40
|
||||
@@ -11,3 +11,10 @@
|
||||
description: Ой вей, вы тоже хотите деняг?
|
||||
components:
|
||||
- type: JewishAccent
|
||||
|
||||
- type: trait
|
||||
id: German
|
||||
name: Немецкий акцент
|
||||
description: Йа йа, зер гут!
|
||||
components:
|
||||
- type: GermanAccent
|
||||
|
||||
Reference in New Issue
Block a user