Lizard name datasets (#7890)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
T-Stalker
2022-05-12 20:43:15 -03:00
committed by GitHub
parent 9217cc02af
commit d750e7b599
7 changed files with 565 additions and 26 deletions

View File

@@ -29,9 +29,8 @@ namespace Content.Client.Preferences.UI
private void RandomizeName()
{
if (Profile == null) return;
var firstName = _random.Pick(Profile.Sex.FirstNames(_prototypeManager).Values);
var lastName = _random.Pick(_prototypeManager.Index<DatasetPrototype>("names_last"));
SetName($"{firstName} {lastName}");
var name = Profile.Sex.GetName(Profile.Species, _prototypeManager, _random);
SetName(name);
UpdateNameEdit();
}
}