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:
lzk
2025-04-18 04:32:03 +02:00
committed by GitHub
parent c3e43a78f3
commit 8ff7767c85
2 changed files with 19 additions and 14 deletions

View File

@@ -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);

View File

@@ -26,10 +26,10 @@
- GroupSpeciesBreathTool
# Silicons
#- type: roleLoadout
# id: JobBorg
# nameDataset: roleloadout doesn't support both so need to update that first.
# canCustomizeName: true
- type: roleLoadout
id: JobBorg
nameDataset: NamesBorg
canCustomizeName: true
- type: roleLoadout
id: JobStationAi
@@ -159,6 +159,7 @@
- type: roleLoadout
id: JobClown
canCustomizeName: true
groups:
- GroupTankHarness
- ClownHead
@@ -172,6 +173,7 @@
- type: roleLoadout
id: JobMime
canCustomizeName: true
groups:
- GroupTankHarness
- MimeHead