Skip to content

Commit

Permalink
fix job playtime requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Jul 23, 2024
1 parent 634e9e1 commit 9053fb7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -16,16 +17,19 @@
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;
using Robust.Client.Utility;
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;
Expand Down Expand Up @@ -1412,7 +1416,7 @@ private void UpdateTraits(bool showUnusable)
trait.Requirements,
highJob?.Proto ?? new JobPrototype(),
Profile ?? HumanoidCharacterProfile.DefaultWithSpecies(),
new Dictionary<string, TimeSpan>(), //TODO Make this use real playtimes
_requirements.GetPlayTimes(),
_entityManager,
_prototypeManager,
_configurationManager,
Expand All @@ -1427,7 +1431,7 @@ out _
trait.Requirements,
highJob?.Proto ?? new JobPrototype(),
Profile ?? HumanoidCharacterProfile.DefaultWithSpecies(),
new Dictionary<string, TimeSpan>(),
_requirements.GetPlayTimes(),
_entityManager,
_prototypeManager,
_configurationManager,
Expand Down Expand Up @@ -1671,7 +1675,7 @@ private void UpdateLoadouts(bool showUnusable)
loadout.Requirements,
highJob?.Proto ?? new JobPrototype(),
Profile ?? HumanoidCharacterProfile.DefaultWithSpecies(),
new Dictionary<string, TimeSpan>(), //TODO Make this use real playtimes
_requirements.GetPlayTimes(),
_entityManager,
_prototypeManager,
_configurationManager,
Expand All @@ -1686,7 +1690,7 @@ out _
loadout.Requirements,
highJob?.Proto ?? new JobPrototype(),
Profile ?? HumanoidCharacterProfile.DefaultWithSpecies(),
new Dictionary<string, TimeSpan>(),
_requirements.GetPlayTimes(),
_entityManager,
_prototypeManager,
_configurationManager,
Expand Down

0 comments on commit 9053fb7

Please sign in to comment.