Allow clown mime and borg customize names (#35170)
* Allow clown mime and borg customize name * how * uh * 3 * good commit
This commit is contained in:
@@ -162,6 +162,17 @@ public sealed class StationSpawningSystem : SharedStationSpawningSystem
|
||||
profile = HumanoidCharacterProfile.RandomWithSpecies(speciesId);
|
||||
}
|
||||
|
||||
if (profile != null)
|
||||
{
|
||||
_humanoidSystem.LoadProfile(entity.Value, profile);
|
||||
_metaSystem.SetEntityName(entity.Value, profile.Name);
|
||||
|
||||
if (profile.FlavorText != "" && _configurationManager.GetCVar(CCVars.FlavorText))
|
||||
{
|
||||
AddComp<DetailExaminableComponent>(entity.Value).Content = profile.FlavorText;
|
||||
}
|
||||
}
|
||||
|
||||
if (loadout != null)
|
||||
{
|
||||
EquipRoleLoadout(entity.Value, loadout, roleProto!);
|
||||
@@ -176,17 +187,9 @@ public sealed class StationSpawningSystem : SharedStationSpawningSystem
|
||||
var gearEquippedEv = new StartingGearEquippedEvent(entity.Value);
|
||||
RaiseLocalEvent(entity.Value, ref gearEquippedEv);
|
||||
|
||||
if (profile != null)
|
||||
if (prototype != null && TryComp<MetaDataComponent>(entity.Value, out var metaData))
|
||||
{
|
||||
if (prototype != null)
|
||||
SetPdaAndIdCardData(entity.Value, profile.Name, prototype, station);
|
||||
|
||||
_humanoidSystem.LoadProfile(entity.Value, profile);
|
||||
_metaSystem.SetEntityName(entity.Value, profile.Name);
|
||||
if (profile.FlavorText != "" && _configurationManager.GetCVar(CCVars.FlavorText))
|
||||
{
|
||||
AddComp<DetailExaminableComponent>(entity.Value).Content = profile.FlavorText;
|
||||
}
|
||||
SetPdaAndIdCardData(entity.Value, metaData.EntityName, prototype, station);
|
||||
}
|
||||
|
||||
DoJobSpecials(job, entity.Value);
|
||||
|
||||
Reference in New Issue
Block a user