Skip to content

Commit

Permalink
Hotfix v0.2.1 - temporarily removes structures (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
shnakamura committed Sep 17, 2024
1 parent ff27b08 commit f18f31d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 26 deletions.
17 changes: 0 additions & 17 deletions src/Aurora/Common/World/_Biomes/TundraRuinsMicroBiome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,6 @@ public override bool Place(Point origin, StructureMap structures) {

var terrainCount = 0;
var airCount = 0;

for (int i = 0; i < scan.Width; i++) {
for (int j = 0; j < scan.Height; j++) {
var tile = Framing.GetTileSafely(scan.X + i, scan.Y + j);

if (j < scan.Height - scan.Height / 3) {
if (!WorldGen.SolidTile(tile) && !tile.HasWall()) {
airCount++;
}
}
else {
if (WorldGen.SolidTile(tile)) {
terrainCount++;
}
}
}
}

var threshold = 10;

Expand Down
12 changes: 6 additions & 6 deletions src/Aurora/Common/World/_Generation/TundraRuinsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ public override void ModifyWorldGenTasks(List<GenPass> tasks, ref double totalWe
if (index == -1) {
return;
}
tasks.Insert(index + 1, new PassLegacy($"{nameof(Aurora)}:{nameof(TundraRuinsMicroBiome)}", GenerateTundraRuins));

// tasks.Insert(index + 1, new PassLegacy($"{nameof(Aurora)}:{nameof(TundraRuinsMicroBiome)}", GenerateTundraRuins));
}

private static void GenerateTundraRuins(GenerationProgress progress, GameConfiguration configuration) {
progress.Message = "Generating ruins...";

var tundraStart = 0;
var tundraEnd = 0;

for (var i = Main.maxTilesX; i > 0; i--) {
for (var j = 0; j < Main.maxTilesY; j++) {
var tile = Framing.GetTileSafely(i, j);
Expand Down Expand Up @@ -60,7 +60,7 @@ private static void GenerateTundraRuins(GenerationProgress progress, GameConfigu
break;
}
}

var biome = GenVars.configuration.CreateBiome<TundraRuinsMicroBiome>();
var biomeGenerated = false;

Expand All @@ -69,7 +69,7 @@ private static void GenerateTundraRuins(GenerationProgress progress, GameConfigu

WorldUtils.Find(new Point(x, 0),
Searches.Chain(
new Searches.Down((int)Main.worldSurface + 200),
new Searches.Down((int)Main.worldSurface + 200),
new Conditions.IsSolid(),
new Conditions.IsTile(TileID.IceBlock, TileID.SnowBlock)
),
Expand Down
5 changes: 2 additions & 3 deletions src/Aurora/build.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
displayName = Aurora
author = nakamurash
version = 0.0.1
homepage = https://discord.gg/WzpbgbUkKe
version = 0.2.1
homepage = https://discord.gg/WzpbgbUkKe

hideCode = false
hideResources = false
Expand All @@ -12,4 +12,3 @@ includeSource = true
modReferences = StructureHelper
dllReferences = StructureHelper

buildIgnore = .track, .footstep
File renamed without changes.

0 comments on commit f18f31d

Please sign in to comment.