Files
wwdpublic/Content.Shared/Procedural/PostGeneration/CorridorPostGen.cs
SimpleStation14 3b635f1729 Mirror: haunted dungeon template (#321)
## Mirror of PR #23768: [haunted dungeon
template](https://github.com/space-wizards/space-station-14/pull/23768)
from <img src="https://avatars.githubusercontent.com/u/10567778?v=4"
alt="space-wizards" width="22"/>
[space-wizards](https://github.com/space-wizards)/[space-station-14](https://github.com/space-wizards/space-station-14)

###### `952b7f4c4e8e957c0c3765f7b20f2745c9297e27`

PR opened by <img
src="https://avatars.githubusercontent.com/u/99158783?v=4"
width="16"/><a href="https://github.com/Emisse"> Emisse</a> at
2024-01-09 07:36:29 UTC

---

PR changed 17 files with 4009 additions and 67 deletions.

The PR had the following labels:


---

<details open="true"><summary><h1>Original Body</h1></summary>

> also for sloth when he gets to it
> 
> Requires https://github.com/space-wizards/RobustToolbox/pull/4980


</details>

Co-authored-by: SimpleStation14 <Unknown>
2024-05-11 23:14:58 -04:00

29 lines
738 B
C#

using Content.Shared.Maps;
using Robust.Shared.Prototypes;
namespace Content.Shared.Procedural.PostGeneration;
/// <summary>
/// Connects room entrances via corridor segments.
/// </summary>
public sealed partial class CorridorPostGen : IPostDunGen
{
/// <summary>
/// How far we're allowed to generate a corridor before calling it.
/// </summary>
/// <remarks>
/// Given the heavy weightings this needs to be fairly large for larger dungeons.
/// </remarks>
[DataField]
public int PathLimit = 2048;
[DataField]
public ProtoId<ContentTileDefinition> Tile = "FloorSteel";
/// <summary>
/// How wide to make the corridor.
/// </summary>
[DataField]
public float Width = 3f;
}