@@ -1,3 +1,5 @@
|
||||
using System.Linq;
|
||||
using Content.Shared.Humanoid.Prototypes;
|
||||
using Content.Shared.Preferences;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
@@ -9,7 +11,12 @@ namespace Content.Client.Preferences.UI
|
||||
|
||||
private void RandomizeEverything()
|
||||
{
|
||||
Profile = HumanoidCharacterProfile.Random();
|
||||
var species = _prototypeManager.EnumeratePrototypes<SpeciesPrototype>();
|
||||
|
||||
//Пиздец
|
||||
var ignoredSpecies = species.Except(_speciesList).Select(x=> x.ID).ToHashSet();
|
||||
|
||||
Profile = HumanoidCharacterProfile.Random(ignoredSpecies);
|
||||
UpdateControls();
|
||||
IsDirty = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user