@@ -9,20 +9,19 @@ public sealed class RoleplayInfoSystem : SharedRoleplaySystem
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<RoleplayInfoComponent,ExaminedEvent>(OnExamined);
|
||||
SubscribeLocalEvent<RoleplayInfoComponent, ExaminedEvent>(OnExamined);
|
||||
}
|
||||
|
||||
private void OnExamined(EntityUid uid, RoleplayInfoComponent component, ExaminedEvent args)
|
||||
{
|
||||
if(component.Data.Count == 0)
|
||||
if (component.Data.Count == 0)
|
||||
return;
|
||||
|
||||
|
||||
args.PushText($"\n{Loc.GetString("roleplay-info")}",-1);
|
||||
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);
|
||||
args.PushMarkup($"[bold]{Loc.GetString("roleplay-name-" + data.Name.ToLower())}[/bold] - {Loc.GetString("roleplay-" + data.RoleplaySelection.ToString().ToLower())}", -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user