]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Expedition mining spawn adjustments (#15581)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 20 Apr 2023 13:32:06 +0000 (23:32 +1000)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2023 13:32:06 +0000 (23:32 +1000)
Content.Server/Parallax/BiomeSystem.cs
Content.Shared/Parallax/Biomes/Markers/BiomeMarkerLayerPrototype.cs

index e7227c0045c0576a7add90cb6afc502b0bbbe567..66a0a6cf22c91d9e823eec15bebf2ed82b301920 100644 (file)
@@ -193,7 +193,7 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
         if (!TryComp<BiomeComponent>(targetMapUid, out var biome))
             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);
     }
 
@@ -346,8 +346,8 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
                     for (var j = 0; j < 5; j++)
                     {
                         var point = new Vector2(
-                            chunk.X + buffer * rand.NextFloat() * (layerProto.Size - buffer),
-                            chunk.Y + buffer * rand.NextFloat() * (layerProto.Size - buffer));
+                            chunk.X + buffer + rand.NextFloat() * (layerProto.Size - buffer),
+                            chunk.Y + buffer + rand.NextFloat() * (layerProto.Size - buffer));
 
                         var coords = new EntityCoordinates(gridUid, point);
                         var tile = grid.LocalToTile(coords);
index e70f0541beb345bca0ab21ede38900819d98697b..cff75ad91796b9546915d9d15a01ae2ef9f1ebe3 100644 (file)
@@ -14,7 +14,7 @@ public sealed class BiomeMarkerLayerPrototype : IBiomeMarkerLayer
 
     /// <inheritdoc />
     [DataField("radius")]
-    public float Radius { get; } = 12f;
+    public float Radius { get; } = 32f;
 
     /// <summary>
     /// How many mobs to spawn in one group.
@@ -24,5 +24,5 @@ public sealed class BiomeMarkerLayerPrototype : IBiomeMarkerLayer
 
     /// <inheritdoc />
     [DataField("size")]
-    public int Size { get; } = 64;
+    public int Size { get; } = 128;
 }