Salvage dungeons (#14520)
This commit is contained in:
23
Content.Shared/Procedural/PostGeneration/WallMountPostGen.cs
Normal file
23
Content.Shared/Procedural/PostGeneration/WallMountPostGen.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Content.Shared.Maps;
|
||||
using Content.Shared.Storage;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Procedural.PostGeneration;
|
||||
|
||||
/// <summary>
|
||||
/// Spawns on the boundary tiles of rooms.
|
||||
/// </summary>
|
||||
public sealed class WallMountPostGen : IPostDunGen
|
||||
{
|
||||
[DataField("tile", customTypeSerializer:typeof(PrototypeIdSerializer<ContentTileDefinition>))]
|
||||
public string Tile = "FloorSteel";
|
||||
|
||||
[DataField("spawns")]
|
||||
public List<EntitySpawnEntry> Spawns = new();
|
||||
|
||||
/// <summary>
|
||||
/// Chance per free tile to spawn a wallmount.
|
||||
/// </summary>
|
||||
[DataField("prob")]
|
||||
public double Prob = 0.1;
|
||||
}
|
||||
Reference in New Issue
Block a user