Files
OldThink/Content.Server/_Amour/RoleplayInfo/RoleplayInfoSystem.cs
Cinkafox 95054e072a Fixes (#73)
* - fix: Genitals sprite shit and meow for tajaran

* - add: fart sound if kicked from server

* - tweak: vulpies and tajaran now for donaters!!!

* - fix: Fart on exit

* - add: roleplay think

* - fix: database shit and loc

* - add: ears for slime

* - fix: LOC interaction fix

* - add: height setting

* - fix: height for felinids

* - fix: nigga fix

* - fix: no bitches on captain

* - fix: interaction panel animation shit
2024-03-11 11:13:33 +03:00

29 lines
854 B
C#

using Content.Server.Humanoid;
using Content.Shared._Amour.RoleplayInfo;
using Content.Shared.Examine;
namespace Content.Server._Amour.RoleplayInfo;
public sealed class RoleplayInfoSystem : SharedRoleplaySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<RoleplayInfoComponent,ExaminedEvent>(OnExamined);
}
private void OnExamined(EntityUid uid, RoleplayInfoComponent component, ExaminedEvent args)
{
if(component.Data.Count == 0)
return;
args.PushText($"\n{Loc.GetString("roleplay-info")}",-1);
foreach (var data in component.Data)
{
args.PushMarkup($"[bold]{Loc.GetString("roleplay-name-" + data.Name.ToLower())}[/bold] - {Loc.GetString("roleplay-" + data.RoleplaySelection.ToString().ToLower())}",-1);
}
}
}