Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

жужащий ацент #115

Merged
merged 5 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 19 additions & 31 deletions Content.Server/Speech/EntitySystems/MothAccentSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,26 @@ private void OnAccent(EntityUid uid, MothAccentComponent component, AccentGetEve
{
var message = args.Message;

// buzzz
message = RegexLowerBuzz.Replace(message, "zzz");
// buZZZ
message = RegexUpperBuzz.Replace(message, "ZZZ");

// Corvax-Localization-Start
// ж => жжж
message = Regex.Replace(
message,
"ж+",
_random.Pick(new List<string>() { "жж", "жжж" })
);
// Ж => ЖЖЖ
message = Regex.Replace(
message,
"Ж+",
_random.Pick(new List<string>() { "ЖЖ", "ЖЖЖ" })
);
// з => ссс
message = Regex.Replace(
message,
"з+",
_random.Pick(new List<string>() { "зз", "ззз" })
);
// З => CCC
message = Regex.Replace(
message,
"З+",
_random.Pick(new List<string>() { "ЗЗ", "ЗЗЗ" })
);
// Corvax-Localization-End
// Changed By 1Stepka1 Moth_speech start

message = Regex.Replace(message, "з{1,3}", "ззз");

message = Regex.Replace(message, "с{1,3}", "зз");

message = Regex.Replace(message, "ц{1,3}", "зз");

message = Regex.Replace(message, "ж{1,3}", "жзж");

message = Regex.Replace(message, "З{1,3}", "ЗЗЗ");

message = Regex.Replace(message, "С{1,3}", "ЗЗ");

message = Regex.Replace(message, "Ц{1,3}", "ЗЗ");

message = Regex.Replace(message, "Ж{1,3}", "ЖЗЖ");

// Changed By 1Stepka1 Moth_speech end

args.Message = message;
}
}
11 changes: 11 additions & 0 deletions Resources/Locale/ru-RU/ADT/traits/neutral.ftl
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@

trait-tall-name = Высокий
trait-tall-desc = Вы слегка выше других представителей своего вида.

trait-short-name = Низкий
trait-short-desc = Вы слегка ниже других представителей своего вида.

trait-moth-accent-name = Жужжащий акцент
trait-moth-accent-desc = Вам либо нравятся моли, либо вы ботаник

trait-deutsch-accent-name = Немецкий акцент
trait-deutsch-accent-desc = Неизвестно, как вы получили этот акцент. Может быть, вы пересмотрели слишком много фильмов о Второй мировой войне?

9 changes: 8 additions & 1 deletion Resources/Prototypes/ADT/Traits/neutral.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
- type: trait
id: ADTMothAccent
name: trait-moth-accent-name
description: trait-moth-accent-desc
components:
- type: MothAccent

- type: trait
id: ADTGermanAccent
name: trait-deutsch-accent-name
description: trait-deutsch-accent-desc
components:
- type: DeutschAccent
- type: DeutschAccent
Loading