Skip to content

Commit

Permalink
ChemMaster Sorting (#1310)
Browse files Browse the repository at this point in the history
<!--
This is a semi-strict format, you can add/remove sections as needed but
the order/format should be kept the same
Remove these comments before submitting
-->

# Description

<!--
Explain this PR in as much detail as applicable

Some example prompts to consider:
How might this affect the game? The codebase?
What might be some alternatives to this?
How/Who does this benefit/hurt [the game/codebase]?
-->

[Ports this Frontier
PR.](new-frontiers-14/frontier-station-14#2498 (comment))

---

# Changelog

<!--
You can add an author after the `:cl:` to change the name that appears
in the changelog (ex: `:cl: Death`)
Leaving it blank will default to your GitHub display name
This includes all available types for the changelog
-->

:cl: DmitriTheDemon
- tweak: The ChemMaster is now sorted.

---------

Signed-off-by: Remuchi <[email protected]>
Co-authored-by: Dmitri <[email protected]>
Co-authored-by: Whatstone <[email protected]>
Co-authored-by: Remuchi <[email protected]>
  • Loading branch information
4 people authored Dec 5, 2024
1 parent 1b15668 commit 32e17a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Content.Client/Chemistry/UI/ChemMasterWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private void UpdatePanelInfo(ChemMasterBoundUserInterfaceState state)
};
bufferHBox.AddChild(bufferVol);

foreach (var (reagent, quantity) in state.BufferReagents)
foreach (var (reagent, quantity) in state.BufferReagents.OrderBy(x => x.Reagent.Prototype))
{
// Try to get the prototype for the given reagent. This gives us its name.
_prototypeManager.TryIndex(reagent.Prototype, out ReagentPrototype? proto);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#When an admin adds a game rule
# When an admin adds a game rule
add-gamerule-admin = Game rule({$rule}) added - {$admin}
list-gamerule-admin-header = | Time | Rule added
list-gamerule-admin-no-rules = No game rules have been added.
Expand Down

0 comments on commit 32e17a6

Please sign in to comment.