Expedition mining spawn adjustments (#15581)
This commit is contained in:
@@ -193,7 +193,7 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
|
|||||||
if (!TryComp<BiomeComponent>(targetMapUid, out var biome))
|
if (!TryComp<BiomeComponent>(targetMapUid, out var biome))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var targetArea = new Box2(targetMap.Position - 64f, targetMap.Position + 64f);
|
var targetArea = new Box2(targetMap.Position - 32f, targetMap.Position + 32f);
|
||||||
Preload(targetMapUid, biome, targetArea);
|
Preload(targetMapUid, biome, targetArea);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,8 +346,8 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
|
|||||||
for (var j = 0; j < 5; j++)
|
for (var j = 0; j < 5; j++)
|
||||||
{
|
{
|
||||||
var point = new Vector2(
|
var point = new Vector2(
|
||||||
chunk.X + buffer * rand.NextFloat() * (layerProto.Size - buffer),
|
chunk.X + buffer + rand.NextFloat() * (layerProto.Size - buffer),
|
||||||
chunk.Y + buffer * rand.NextFloat() * (layerProto.Size - buffer));
|
chunk.Y + buffer + rand.NextFloat() * (layerProto.Size - buffer));
|
||||||
|
|
||||||
var coords = new EntityCoordinates(gridUid, point);
|
var coords = new EntityCoordinates(gridUid, point);
|
||||||
var tile = grid.LocalToTile(coords);
|
var tile = grid.LocalToTile(coords);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public sealed class BiomeMarkerLayerPrototype : IBiomeMarkerLayer
|
|||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
[DataField("radius")]
|
[DataField("radius")]
|
||||||
public float Radius { get; } = 12f;
|
public float Radius { get; } = 32f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// How many mobs to spawn in one group.
|
/// How many mobs to spawn in one group.
|
||||||
@@ -24,5 +24,5 @@ public sealed class BiomeMarkerLayerPrototype : IBiomeMarkerLayer
|
|||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
[DataField("size")]
|
[DataField("size")]
|
||||||
public int Size { get; } = 64;
|
public int Size { get; } = 128;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user