diff --git a/NPCs/VanillaNPCOverrides/Bosses/WallOfFleshAI.cs b/NPCs/VanillaNPCOverrides/Bosses/WallOfFleshAI.cs index f957b819e0..3c60113660 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/WallOfFleshAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/WallOfFleshAI.cs @@ -104,8 +104,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses while (num335 < 15 && num336 > Main.UnderworldLayer) { num336++; - int num; - for (int num337 = num332; num337 <= num333; num337 = num + 1) + for (int num337 = num332; num337 <= num333; num337++) { try { @@ -114,8 +113,6 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses } catch { num335 += 15; } - - num = num337; } } num336 += 4; @@ -139,8 +136,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses while (num335 < 15 && num336 < Main.maxTilesY - 10) { num336--; - int num; - for (int num338 = num332; num338 <= num333; num338 = num + 1) + for (int num338 = num332; num338 <= num333; num338++) { try { @@ -149,8 +145,6 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses } catch { num335 += 15; } - - num = num338; } } num336 -= 4; diff --git a/World/Planets/GrassPlanet.cs b/World/Planets/GrassPlanet.cs index 8484691ef3..45a731c617 100644 --- a/World/Planets/GrassPlanet.cs +++ b/World/Planets/GrassPlanet.cs @@ -21,9 +21,7 @@ namespace CalamityMod.World.Planets private ushort[] oreTypes = new ushort[] { WorldGen.copperBar == TileID.Copper ? (Main.getGoodWorld ? TileID.Palladium : TileID.Tin) : (Main.getGoodWorld ? TileID.Cobalt : TileID.Copper), - WorldGen.ironBar == TileID.Iron ? (Main.getGoodWorld ? TileID.Palladium : TileID.Lead) : (Main.getGoodWorld ? TileID.Cobalt : TileID.Iron), - WorldGen.silverBar == TileID.Silver ? (Main.getGoodWorld ? TileID.Orichalcum : TileID.Tungsten) : (Main.getGoodWorld ? TileID.Mythril : TileID.Silver), - WorldGen.goldBar == TileID.Gold ? (Main.getGoodWorld ? TileID.Titanium : TileID.Platinum) : (Main.getGoodWorld ? TileID.Adamantite : TileID.Gold) + WorldGen.ironBar == TileID.Iron ? (Main.getGoodWorld ? TileID.Palladium : TileID.Lead) : (Main.getGoodWorld ? TileID.Cobalt : TileID.Iron) }; public override bool Place(Point origin, StructureMap structures) diff --git a/World/Planets/HeartPlanet.cs b/World/Planets/HeartPlanet.cs index 5e2f363d29..fbdd815df1 100644 --- a/World/Planets/HeartPlanet.cs +++ b/World/Planets/HeartPlanet.cs @@ -43,7 +43,7 @@ namespace CalamityMod.World.Planets })); //Place gems - ushort gemType = _random.Next(new ushort[] { TileID.Amethyst, TileID.Emerald, TileID.Topaz, TileID.Ruby, TileID.Sapphire, TileID.Diamond }); + ushort gemType = _random.Next(new ushort[] { TileID.Amethyst, TileID.Topaz }); //Using Tile Runner as it has a wider spread WorldGen.TileRunner(origin.X, origin.Y, _random.NextFloat(6f, 9f), _random.Next(8, 18), gemType); diff --git a/World/Planets/MudPlanet.cs b/World/Planets/MudPlanet.cs index b7d2e063ed..01c040edb1 100644 --- a/World/Planets/MudPlanet.cs +++ b/World/Planets/MudPlanet.cs @@ -212,8 +212,8 @@ namespace CalamityMod.World.Planets private int[] BarLoot = new int[] { - WorldGen.silverBar == TileID.Silver ? ItemID.SilverBar : ItemID.TungstenBar, - WorldGen.goldBar == TileID.Gold ? ItemID.GoldBar : ItemID.PlatinumBar + WorldGen.copperBar == TileID.Copper ? ItemID.CopperBar : ItemID.TinBar, + WorldGen.ironBar == TileID.Iron ? ItemID.IronBar : ItemID.LeadBar }; private void FillChest(int id) diff --git a/World/Planets/Planetoid.cs b/World/Planets/Planetoid.cs index a48c3fd394..ddab42bdbf 100644 --- a/World/Planets/Planetoid.cs +++ b/World/Planets/Planetoid.cs @@ -17,9 +17,9 @@ namespace CalamityMod.World.Planets progress.Message = "Enriching low Terraria orbit"; var config2 = WorldGenConfiguration.FromEmbeddedPath("Terraria.GameContent.WorldBuilding.Configuration.json"); - int GrassPlanetoidCount = Main.maxTilesX / 1100; - int LCPlanetoidCount = Main.maxTilesX / 800; - int MudPlanetoidCount = Main.maxTilesX / 1100; + int GrassPlanetoidCount = Main.maxTilesX / 750; + int LCPlanetoidCount = Main.maxTilesX / 1500; + int MudPlanetoidCount = Main.maxTilesX / 1000; const int MainPlanetoidAttempts = 3000; int i = 0; @@ -120,6 +120,7 @@ namespace CalamityMod.World.Planets } return true; } + public bool CheckIfPlaceable(Point origin, int radius, StructureMap structures) { //Fluff is used to create padding between the planets. this is the minimum distance between planets (they can't be within "fluff" blocks)