Всякое (#66)

Co-authored-by: Mona Hmiza <>
This commit is contained in:
RavMorgan
2023-05-16 14:55:14 +03:00
committed by Aviu00
parent aa9bd80610
commit c1439eb6fc
2 changed files with 39 additions and 13 deletions

View File

@@ -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;
}