diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index 7ced95cacbf..771d928ebf9 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -5,6 +5,7 @@ using Content.Client.Lobby; using Content.Client.Message; using Content.Client.Players.PlayTimeTracking; +using Content.Client.Roles; using Content.Client.UserInterface.Systems.Guidebook; using Content.Shared.CCVar; using Content.Shared.Clothing.Loadouts.Prototypes; @@ -16,9 +17,11 @@ using Content.Shared.Humanoid.Prototypes; using Content.Shared.Preferences; using Content.Shared.Roles; +using Content.Shared.Roles.Jobs; using Content.Shared.Traits; using Robust.Client.AutoGenerated; using Robust.Client.Graphics; +using Robust.Client.Player; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.XAML; @@ -26,6 +29,7 @@ using Robust.Shared.Configuration; using Robust.Shared.Enums; using Robust.Shared.Physics; +using Robust.Shared.Player; using Robust.Shared.Prototypes; using Robust.Shared.Utility; using Direction = Robust.Shared.Maths.Direction; @@ -1412,7 +1416,7 @@ private void UpdateTraits(bool showUnusable) trait.Requirements, highJob?.Proto ?? new JobPrototype(), Profile ?? HumanoidCharacterProfile.DefaultWithSpecies(), - new Dictionary(), //TODO Make this use real playtimes + _requirements.GetPlayTimes(), _entityManager, _prototypeManager, _configurationManager, @@ -1427,7 +1431,7 @@ out _ trait.Requirements, highJob?.Proto ?? new JobPrototype(), Profile ?? HumanoidCharacterProfile.DefaultWithSpecies(), - new Dictionary(), + _requirements.GetPlayTimes(), _entityManager, _prototypeManager, _configurationManager, @@ -1671,7 +1675,7 @@ private void UpdateLoadouts(bool showUnusable) loadout.Requirements, highJob?.Proto ?? new JobPrototype(), Profile ?? HumanoidCharacterProfile.DefaultWithSpecies(), - new Dictionary(), //TODO Make this use real playtimes + _requirements.GetPlayTimes(), _entityManager, _prototypeManager, _configurationManager, @@ -1686,7 +1690,7 @@ out _ loadout.Requirements, highJob?.Proto ?? new JobPrototype(), Profile ?? HumanoidCharacterProfile.DefaultWithSpecies(), - new Dictionary(), + _requirements.GetPlayTimes(), _entityManager, _prototypeManager, _configurationManager,