CatStation/Content.Shared/Procedural/DungeonLayers/EntityTableDunGen.cs
Jessica M dc384024ac
Fix loot not spawning on VGRoid (#39269)
* Ignore reserved tiles if we're pulling from a NestedSelector so normal items can spawn on reserved tiles.

* Make VGRoid item spawns per dungeon, so they don't only spawn inside one dungeon

* add a IgnoreReserved field instead

---------

Co-authored-by: Jessica M <jessica@maybe.sh>
2026-04-28 15:09:20 +00:00

33 lines
755 B
C#

using Content.Shared.EntityTable.EntitySelectors;
namespace Content.Shared.Procedural.DungeonLayers;
/// <summary>
/// Spawns entities inside of the dungeon randomly.
/// </summary>
public sealed partial class EntityTableDunGen : IDunGenLayer
{
// Counts separate to config to avoid some duplication.
[DataField]
public int MinCount = 1;
[DataField]
public int MaxCount = 1;
[DataField(required: true)]
public EntityTableSelector Table;
/// <summary>
/// Should the count be per dungeon or across all dungeons.
/// </summary>
[DataField]
public bool PerDungeon;
/// <summary>
/// Should the spawner ignore reserved tiles.
/// </summary>
[DataField]
public bool IgnoreReserved;
}