mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 05:59:03 +03:00
## 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>
43 lines
964 B
C#
43 lines
964 B
C#
using Content.Shared.Maps;
|
|
using Content.Shared.Procedural.DungeonGenerators;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Procedural.PostGeneration;
|
|
|
|
// Ime a worm
|
|
/// <summary>
|
|
/// Generates worm corridors.
|
|
/// </summary>
|
|
public sealed partial class WormCorridorPostGen : IPostDunGen
|
|
{
|
|
[DataField]
|
|
public int PathLimit = 2048;
|
|
|
|
/// <summary>
|
|
/// How many times to run the worm
|
|
/// </summary>
|
|
[DataField]
|
|
public int Count = 20;
|
|
|
|
/// <summary>
|
|
/// How long to make each worm
|
|
/// </summary>
|
|
[DataField]
|
|
public int Length = 20;
|
|
|
|
/// <summary>
|
|
/// Maximum amount the angle can change in a single step.
|
|
/// </summary>
|
|
[DataField]
|
|
public Angle MaxAngleChange = Angle.FromDegrees(45);
|
|
|
|
[DataField]
|
|
public ProtoId<ContentTileDefinition> Tile = "FloorSteel";
|
|
|
|
/// <summary>
|
|
/// How wide to make the corridor.
|
|
/// </summary>
|
|
[DataField]
|
|
public float Width = 3f;
|
|
}
|