adapt codebase

This commit is contained in:
Ed
2025-09-29 14:14:07 +03:00
parent d6a8c169b2
commit 58b6f3d64e
5 changed files with 21 additions and 5 deletions

View File

@@ -138,6 +138,16 @@ public sealed class IdentitySystem : EntitySystem
var representation = GetIdentityRepresentation(ent.Owner);
var name = GetIdentityName(ent, representation);
//CP14 override character name
if (TryComp<HumanoidAppearanceComponent>(ent, out var humanoid))
{
var species = _humanoid.GetSpeciesRepresentation(humanoid.Species).ToLower();
var age = _humanoid.GetAgeRepresentation(humanoid.Species, humanoid.Age);
name = age + " " + species;
}
//CP14 end
// Clone the old entity's grammar to the identity entity, for loc purposes.
if (TryComp<GrammarComponent>(ent, out var grammar))
{