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>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user