-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37ea0dd
commit 97800ae
Showing
77 changed files
with
2,181 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Content.Server.Speech.EntitySystems; | ||
|
||
namespace Content.Server.Speech.Components; | ||
|
||
[RegisterComponent] | ||
[Access(typeof(GoblinAccentSystem))] | ||
public sealed partial class GoblinAccentComponent : Component {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Content.Server.Speech.Components; | ||
using Robust.Shared.Random; | ||
using System.Text.RegularExpressions; | ||
|
||
namespace Content.Server.Speech.EntitySystems; | ||
|
||
public sealed class GoblinAccentSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly ReplacementAccentSystem _replacement = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<GoblinAccentComponent, AccentGetEvent>(OnAccentGet); | ||
} | ||
|
||
// converts left word when typed into the right word. For example typing you becomes ye. | ||
public string Accentuate(string message, GoblinAccentComponent component) | ||
{ | ||
var msg = message; | ||
|
||
msg = _replacement.ApplyReplacements(msg, "goblin"); | ||
return msg; | ||
} | ||
|
||
private void OnAccentGet(EntityUid uid, GoblinAccentComponent component, AccentGetEvent args) | ||
{ | ||
args.Message = Accentuate(args.Message, component); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
- files: ["goblin-cackle-01.ogg, goblin-cackle-02.ogg, goblin-cackle-03.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by SnowFightStudios (https://freesound.org/people/SnowFightStudios/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: "https://freesound.org/people/SnowFightStudios/sounds/643664/" | ||
- files: ["goblin-cackle-04.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by spookymodem (https://freesound.org/people/spookymodem/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: "https://freesound.org/people/spookymodem/sounds/202096/" | ||
- files: ["goblin-cackle-05.ogg"] | ||
license: "CC BY 4.0" | ||
copyright: "Original file made by Nanakisan (https://freesound.org/people/Nanakisan/)" | ||
source: "https://freesound.org/people/Nanakisan/sounds/253532/" | ||
- files: ["goblin-scream-01.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by SnowFightStudios (https://freesound.org/people/SnowFightStudios/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: "https://freesound.org/people/SnowFightStudios/sounds/643655/" | ||
- files: ["goblin-scream-02.ogg, goblin-scream-03.ogg, goblin-scream-04.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by Duisterwho (https://freesound.org/people/Duisterwho/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: "https://freesound.org/people/Duisterwho/sounds/643497/" | ||
- files: ["goblin-cry-01.ogg, goblin-cry-02.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by SnowFightStudios (https://freesound.org/people/SnowFightStudios/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: https://freesound.org/people/SnowFightStudios/sounds/643657/ | ||
- files: ["goblin-chatter-01.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by Fenodyrie (https://freesound.org/people/Fenodyrie/)" | ||
source: https://freesound.org/people/Fenodyrie/sounds/565923/ | ||
- files: ["goblin-hiss-01.ogg"] | ||
license: "CC BY 4.0" | ||
copyright: "Original file made by LittleRobotSoundFactory (https://freesound.org/people/LittleRobotSoundFactory/)" | ||
source: https://freesound.org/people/LittleRobotSoundFactory/sounds/270389/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
- files: ["goblin-cackle-01.ogg, goblin-cackle-02.ogg, goblin-cackle-03.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by SnowFightStudios (https://freesound.org/people/SnowFightStudios/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: "https://freesound.org/people/SnowFightStudios/sounds/643664/" | ||
- files: ["goblin-cackle-04.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by spookymodem (https://freesound.org/people/spookymodem/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: "https://freesound.org/people/spookymodem/sounds/202096/" | ||
- files: ["goblin-cackle-05.ogg"] | ||
license: "CC BY 4.0" | ||
copyright: "Original file made by Nanakisan (https://freesound.org/people/Nanakisan/)" | ||
source: "https://freesound.org/people/Nanakisan/sounds/253532/" | ||
- files: ["goblin-scream-01.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by SnowFightStudios (https://freesound.org/people/SnowFightStudios/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: "https://freesound.org/people/SnowFightStudios/sounds/643655/" | ||
- files: ["goblin-scream-02.ogg, goblin-scream-03.ogg, goblin-scream-04.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by Duisterwho (https://freesound.org/people/Duisterwho/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: "https://freesound.org/people/Duisterwho/sounds/643497/" | ||
- files: ["goblin-cry-01.ogg, goblin-cry-02.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by SnowFightStudios (https://freesound.org/people/SnowFightStudios/), edited (cropped) by erhardsteinhauer (discord/github)" | ||
source: https://freesound.org/people/SnowFightStudios/sounds/643657/ | ||
- files: ["goblin-chatter-01.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Original file made by Fenodyrie (https://freesound.org/people/Fenodyrie/)" | ||
source: https://freesound.org/people/Fenodyrie/sounds/565923/ | ||
- files: ["goblin-hiss-01.ogg"] | ||
license: "CC BY 4.0" | ||
copyright: "Original file made by LittleRobotSoundFactory (https://freesound.org/people/LittleRobotSoundFactory/)" | ||
source: https://freesound.org/people/LittleRobotSoundFactory/sounds/270389/ |
Oops, something went wrong.