Add loadout names (#31303)

* Add loadout names

Did it for AI, breaking change for pgsql + migrations in general. Nothing atm uses it.

* the box

* Spawning cherry pick

* Fix nit

* revert

* Final cleanup

* Real

* Name UI fix

* Migrations

* a

* Review

* Re-run migrations

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
metalgearsloth
2025-02-12 04:30:24 +11:00
committed by GitHub
parent c197d3db37
commit 15b28936df
17 changed files with 4314 additions and 5 deletions

View File

@@ -222,6 +222,7 @@ namespace Content.Server.Database
{
var loadout = new RoleLoadout(role.RoleName)
{
EntityName = role.EntityName,
};
foreach (var group in role.Groups)
@@ -319,6 +320,7 @@ namespace Content.Server.Database
var dz = new ProfileRoleLoadout()
{
RoleName = role,
EntityName = loadouts.EntityName ?? string.Empty,
};
foreach (var (group, groupLoadouts) in loadouts.SelectedLoadouts)