Revert biome rework (#38724)
* Revert "Fix world generation (#38713)" This reverts commit10fa6ff4af. * Revert "Biome rework (#37735)" This reverts commitfe7b96147c.
This commit is contained in:
committed by
GitHub
parent
047a49a505
commit
e99fc501a6
@@ -28,7 +28,7 @@ public sealed partial class DungeonJob
|
||||
Random random)
|
||||
{
|
||||
var tiles = new List<(Vector2i, Tile)>();
|
||||
var matrix = Matrix3Helpers.CreateTranslation(_position + position);
|
||||
var matrix = Matrix3Helpers.CreateTranslation(position);
|
||||
|
||||
foreach (var layer in dungen.Layers)
|
||||
{
|
||||
@@ -76,9 +76,7 @@ public sealed partial class DungeonJob
|
||||
break;
|
||||
}
|
||||
|
||||
var tile = new Tile(tileDef.TileId, variant: variant);
|
||||
tiles.Add((adjusted, tile));
|
||||
AddLoadedTile(adjusted, tile);
|
||||
tiles.Add((adjusted, new Tile(tileDef.TileId, variant: variant)));
|
||||
roomTiles.Add(adjusted);
|
||||
break;
|
||||
}
|
||||
@@ -103,8 +101,6 @@ public sealed partial class DungeonJob
|
||||
{
|
||||
switch (distance)
|
||||
{
|
||||
case DunGenDistanceSquared:
|
||||
return dx * dx + dy * dy;
|
||||
case DunGenEuclideanSquaredDistance:
|
||||
return MathF.Min(1f, (dx * dx + dy * dy) / MathF.Sqrt(2));
|
||||
case DunGenSquareBump:
|
||||
|
||||
Reference in New Issue
Block a user