Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
metalgearsloth committed Aug 25, 2024
1 parent b19ce4e commit d388ae5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,13 +1009,6 @@ private void OpenLoadout(JobPrototype? jobProto, RoleLoadout roleLoadout, RoleLo
_loadoutWindow.RefreshLoadouts(roleLoadout, session, collection);
_loadoutWindow.OpenCenteredLeft();

_loadoutWindow.OnNameChanged += name =>
{
roleLoadout.EntityName = name;
Profile = Profile.WithLoadout(roleLoadout);
SetDirty();
};

_loadoutWindow.OnLoadoutPressed += (loadoutGroup, loadoutProto) =>
{
roleLoadout.AddLoadout(loadoutGroup, loadoutProto, _prototypeManager);
Expand Down
1 change: 0 additions & 1 deletion Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ namespace Content.Client.Lobby.UI.Loadouts;
[GenerateTypedNameReferences]
public sealed partial class LoadoutWindow : FancyWindow
{
public event Action<string>? OnNameChanged;
public event Action<ProtoId<LoadoutGroupPrototype>, ProtoId<LoadoutPrototype>>? OnLoadoutPressed;
public event Action<ProtoId<LoadoutGroupPrototype>, ProtoId<LoadoutPrototype>>? OnLoadoutUnpressed;

Expand Down
3 changes: 0 additions & 3 deletions Content.Server/Database/ServerDbBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ private static HumanoidCharacterProfile ConvertProfiles(Profile profile)
{
var loadout = new RoleLoadout(role.RoleName)
{
// Validate later if it's even possible.
EntityName = role.CustomName,
};

foreach (var group in role.Groups)
Expand Down Expand Up @@ -321,7 +319,6 @@ private static Profile ConvertProfiles(HumanoidCharacterProfile humanoid, int sl
var dz = new ProfileRoleLoadout()
{
RoleName = role,
CustomName = loadouts.EntityName,
};

foreach (var (group, groupLoadouts) in loadouts.SelectedLoadouts)
Expand Down

0 comments on commit d388ae5

Please sign in to comment.