public int MinCount = 1;
public int MaxCount = 1;
+ /// <summary>
+ /// Hide the IFF of the grid.
+ /// </summary>
+ public bool Hide = false;
+
+ /// <summary>
+ /// Should we set the metadata name of a grid. Useful for admin purposes.
+ /// </summary>
+ public bool NameGrid = false;
+
public GridSpawnGroup()
{
}
using Content.Server.Station.Events;
using Content.Shared.Cargo.Components;
using Content.Shared.CCVar;
+using Content.Shared.Shuttles.Components;
using Robust.Shared.Random;
using Robust.Shared.Utility;
if (_loader.TryLoad(mapId, path.ToString(), out var ent) && ent.Count == 1)
{
+ if (group.Hide)
+ {
+ var iffComp = EnsureComp<IFFComponent>(ent[0]);
+ iffComp.Flags |= IFFFlags.Hide;
+ Dirty(ent[0], iffComp);
+ }
+
if (TryComp<ShuttleComponent>(ent[0], out var shuttle))
{
TryFTLProximity(ent[0], shuttle, targetGrid.Value);
{
valid = false;
}
+
+ if (group.NameGrid)
+ {
+ var name = path.FilenameWithoutExtension;
+ _metadata.SetEntityName(ent[0], name);
+ }
}
else
{
paths:
- /Maps/Shuttles/mining.yml
ruins:
+ hide: true
+ nameGrid: true
+ minCount: 2
+ maxCount: 2
paths:
- /Maps/Ruins/derelict.yml
- /Maps/Ruins/djstation.yml
- /Maps/Ruins/relaystation.yml
- /Maps/Ruins/whiteship_ancient.yml
- /Maps/Ruins/whiteship_bluespacejumper.yml
-
+
- type: entity
paths:
- /Maps/Shuttles/mining.yml
ruins:
+ hide: true
+ nameGrid: true
+ minCount: 2
+ maxCount: 2
paths:
- /Maps/Ruins/derelict.yml
- /Maps/Ruins/djstation.yml