Randomizes more humanoid appearances (#27997)

This commit is contained in:
Verm
2024-05-31 23:51:07 -05:00
committed by GitHub
parent a1a8f04036
commit a9a65b7e0d
5 changed files with 58 additions and 114 deletions

View File

@@ -25,6 +25,9 @@ public sealed class RandomHumanoidAppearanceSystem : EntitySystem
}
var profile = HumanoidCharacterProfile.RandomWithSpecies(humanoid.Species);
//If we have a specified hair style, change it to this
if(component.Hair != null)
profile = profile.WithCharacterAppearance(profile.Appearance.WithHairStyleName(component.Hair));
_humanoid.LoadProfile(uid, profile, humanoid);