Localize ai dataset names (#33608)

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
MilenVolf
2024-12-06 18:38:00 +03:00
committed by GitHub
parent e244472546
commit b66fd98514
5 changed files with 147 additions and 114 deletions

View File

@@ -70,7 +70,7 @@ public abstract class SharedStationSpawningSystem : EntitySystem
if (string.IsNullOrEmpty(name) && PrototypeManager.TryIndex(roleProto.NameDataset, out var nameData))
{
name = _random.Pick(nameData.Values);
name = Loc.GetString(_random.Pick(nameData.Values));
}
if (!string.IsNullOrEmpty(name))
@@ -150,7 +150,7 @@ public abstract class SharedStationSpawningSystem : EntitySystem
foreach (var (slotName, entProtos) in startingGear.Storage)
{
if (entProtos == null || entProtos.Count == 0)
if (entProtos == null || entProtos.Count == 0)
continue;
if (inventoryComp != null &&