The Reclaimer MK2 returns! (#5245)

* The Reclaimer returns

* Added the ability to name GridSpawns with a specific name

* formatting

---------

Co-authored-by: Vanessa <vanessalouwagie@gmail.com>
This commit is contained in:
Field Command 2026-02-01 21:20:37 +01:00 committed by GitHub
parent fcaef97833
commit 5595912c53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1880 additions and 0 deletions

View File

@ -55,6 +55,11 @@ public interface IGridSpawnGroup
/// </summary>
public bool NameGrid { get; set; }
/// <summary>
/// DeltaV - If <see cref="NameGrid"> is true and this is not null, the grid will use this name instead of the file name.
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Should we add this to the station's grids (if possible / relevant).
/// </summary>
@ -92,6 +97,9 @@ public sealed partial class DungeonSpawnGroup : IGridSpawnGroup
/// <inheritdoc />
public bool NameGrid { get; set; } = false;
/// <inheritdoc />
public string? Name { get; set; } = null; // DeltaV
/// <inheritdoc />
public bool StationGrid { get; set; } = false;
}
@ -112,6 +120,9 @@ public sealed partial class GridSpawnGroup : IGridSpawnGroup
public ComponentRegistry AddComponents { get; set; } = new();
public bool Hide { get; set; } = false;
public bool NameGrid { get; set; } = true;
/// <inheritdoc />
public string? Name { get; set; } = null; // DeltaV
public bool StationGrid { get; set; } = true;
}

View File

@ -144,6 +144,11 @@ public sealed partial class ShuttleSystem
if (group.NameGrid)
{
var name = path.FilenameWithoutExtension;
// DeltaV - Allow grid names to be specified
if (!string.IsNullOrWhiteSpace(group.Name))
name = group.Name;
_metadata.SetEntityName(grid.Value, name);
}

File diff suppressed because it is too large Load Diff

View File

@ -61,6 +61,11 @@
# paths:
# - /Maps/Shuttles/trading_outpost.yml
# Spawn last
salvageShuttle: !type:GridSpawnGroup # DeltaV - salvage gets their own ship
paths:
- /Maps/_DV/Shuttles/Misc/reclaimer_mk2.yml
nameGrid: true
name: Reclaimer Mk2
ruins: !type:GridSpawnGroup
hide: true
nameGrid: true