Adjusted Planetoid spawns, gem and ore types.

This commit is contained in:
mountaindrew10 committed 2023-02-27 12:07:38 -06:00
1 parent 3a8406a8d0
commit cc27da580b
5 files changed
+10 -17

No files matched your search

@@ -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;
+1 -3
View File
@@ -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)
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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)
+4 -3
View File
@@ -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)