Dungeon fixes (#14563)
This commit is contained in:
@@ -157,7 +157,12 @@ public sealed partial class DungeonJob
|
|||||||
ClearDoor(dungeon, grid, entrancePos);
|
ClearDoor(dungeon, grid, entrancePos);
|
||||||
var gridCoords = grid.GridTileToLocal(entrancePos);
|
var gridCoords = grid.GridTileToLocal(entrancePos);
|
||||||
// Need to offset the spawn to avoid spawning in the room.
|
// Need to offset the spawn to avoid spawning in the room.
|
||||||
_entManager.SpawnEntity(gen.Door, gridCoords);
|
|
||||||
|
foreach (var ent in gen.Entities)
|
||||||
|
{
|
||||||
|
_entManager.SpawnEntity(ent, gridCoords);
|
||||||
|
}
|
||||||
|
|
||||||
count--;
|
count--;
|
||||||
|
|
||||||
// Clear out any biome tiles nearby to avoid blocking it
|
// Clear out any biome tiles nearby to avoid blocking it
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using Content.Shared.Maps;
|
using Content.Shared.Maps;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||||
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||||
|
|
||||||
namespace Content.Shared.Procedural.PostGeneration;
|
namespace Content.Shared.Procedural.PostGeneration;
|
||||||
|
|
||||||
@@ -15,8 +16,11 @@ public sealed class EntrancePostGen : IPostDunGen
|
|||||||
[DataField("count")]
|
[DataField("count")]
|
||||||
public int Count = 1;
|
public int Count = 1;
|
||||||
|
|
||||||
[DataField("door", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
[DataField("entities", customTypeSerializer: typeof(PrototypeIdListSerializer<EntityPrototype>))]
|
||||||
public string Door = "AirlockGlass";
|
public List<string> Entities = new()
|
||||||
|
{
|
||||||
|
"AirlockGlass"
|
||||||
|
};
|
||||||
|
|
||||||
[DataField("tile", customTypeSerializer:typeof(PrototypeIdSerializer<ContentTileDefinition>))]
|
[DataField("tile", customTypeSerializer:typeof(PrototypeIdSerializer<ContentTileDefinition>))]
|
||||||
public string Tile = "FloorSteel";
|
public string Tile = "FloorSteel";
|
||||||
|
|||||||
@@ -278,8 +278,8 @@
|
|||||||
frequency: 1
|
frequency: 1
|
||||||
decals:
|
decals:
|
||||||
- grasssnowa1
|
- grasssnowa1
|
||||||
- grassnowa2
|
- grasssnowa2
|
||||||
- grassnowa3
|
- grasssnowa3
|
||||||
- grasssnowb1
|
- grasssnowb1
|
||||||
- grasssnowb2
|
- grasssnowb2
|
||||||
- grasssnowb3
|
- grasssnowb3
|
||||||
|
|||||||
Reference in New Issue
Block a user