Files
tbd-station-14/Content.Server/GameObjects/Components/Mobs/Speech/MouseAccentComponent.cs
Swept 87aced8392 Adds mice (#3594)
* Initial

* Mmm

* Adds them to map

* Makes mice grindable

* meta.json looking nice

* Mice go squeak

* Ye

* E

* Review

* Update Content.Server/GameObjects/Components/Mobs/Speech/MouseAccentComponent.cs

Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
2021-03-11 01:06:57 +01:00

25 lines
686 B
C#

using System;
using Robust.Shared.GameObjects;
using System.Collections.Generic;
using Robust.Shared.Random;
using Robust.Shared.IoC;
namespace Content.Server.GameObjects.Components.Mobs.Speech
{
[RegisterComponent]
public class MouseAccentComponent : Component, IAccentComponent
{
[Dependency] private readonly IRobustRandom _random = default!;
public override string Name => "MouseAccent";
private static readonly IReadOnlyList<string> Squeek = new List<string>{
"Squeak!", "Piep!", "Chuu!"
}.AsReadOnly();
public string Accentuate(string message)
{
return _random.Pick(Squeek);
}
}
}