- fix: Fix ling transform & closet skeleton. (#160)

This commit is contained in:
Aviu00
2024-03-02 18:10:00 +09:00
committed by GitHub
parent 50031ab5a9
commit d0e3d191eb
3 changed files with 73 additions and 12 deletions

View File

@@ -208,6 +208,7 @@ namespace Content.Shared.Preferences
var bodyType = SharedHumanoidAppearanceSystem.DefaultBodyType;
if (prototypeManager.TryIndex<SpeciesPrototype>(species, out var speciesPrototype))
{
bodyType = speciesPrototype.BodyTypes[0];
sex = random.Pick(speciesPrototype.Sexes);
age = random.Next(speciesPrototype.MinAge,
speciesPrototype