Let species prototypes define valid sexes (Sex Refactor) (#11520)

This commit is contained in:
Rane
2022-10-15 17:45:47 -04:00
committed by GitHub
parent 0e18ba567c
commit c70e423ff6
14 changed files with 161 additions and 97 deletions

View File

@@ -22,7 +22,7 @@ namespace Content.Client.Preferences.UI
private void RandomizeName()
{
if (Profile == null) return;
var name = Profile.Sex.GetName(Profile.Species, _prototypeManager, _random);
var name = HumanoidCharacterProfile.GetName(Profile.Species, Profile.Gender);
SetName(name);
UpdateNameEdit();
}