Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Positive traits 2 - Actually adding them #223

Merged
merged 6 commits into from
Jan 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix trait ordering
  • Loading branch information
Doctor-Cpu committed Jan 18, 2025
commit a50a00072fe3e9d05ccd937382fdd7bacd429bc2
2 changes: 1 addition & 1 deletion Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ public void RefreshTraits()
TraitsList.DisposeAllChildren();

// need negative traits first as they give us points
var traits = _prototypeManager.EnumeratePrototypes<TraitPrototype>().OrderBy(c => c.Cost).OrderBy(t => Loc.GetString(t.Name)).ToList();
var traits = _prototypeManager.EnumeratePrototypes<TraitPrototype>().OrderByDescending(c => c.Cost).ThenBy(t => Loc.GetString(t.Name)).ToList();
TabContainer.SetTabTitle(3, Loc.GetString("humanoid-profile-editor-traits-tab"));

if (traits.Count < 1)
Expand Down