Definition at line 6741 of file WorldGen.cs.
6742 {
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753 ushort
type = (ushort)SavedOreTiers.Copper;
6755 {
6756 type = (ushort)SavedOreTiers.Iron;
6757 }
6761 {
6763 if ((
double)
num2 > Main.worldSurface)
6764 {
6765 return false;
6766 }
6767 }
6769 {
6770 return false;
6771 }
6772 if (Main.tile[num,
num2].wall > 0)
6773 {
6774 return false;
6775 }
6776 for (
int i = num - 10;
i <= num + 10;
i++)
6777 {
6779 {
6781 {
6782 return false;
6783 }
6784 }
6785 }
6788 Main.tile[num,
num2].active(active:
true);
6791 {
6793 }
6796 {
6800 {
6802 }
6804 Main.tile[num,
num2].active(active:
true);
6807 {
6809 }
6811 {
6818 {
6820 }
6821 }
6822 }
6826 val2.X =
genRand.NextDouble() * 0.6 - 0.3;
6827 val2.Y =
genRand.NextDouble() * 0.5 + 0.5;
6831 {
6833 }
6835 {
6837 }
6839 {
6841 for (
int k = num - (
int)
num6 * 4; (double)
k <= (
double)num +
num6 * 4.0;
k++)
6842 {
6844 {
6848 {
6850 }
6853 {
6854 Main.tile[
k,
l].active(active:
false);
6855 }
6857 {
6858 Main.tile[
k,
l].type =
type;
6860 {
6861 Main.tile[
k,
l].active(active:
true);
6862 }
6865 {
6867 }
6868 }
6869 }
6870 }
6872 val2.X +=
genRand.NextDouble() * 0.2 - 0.1;
6873 val2.Y +=
genRand.NextDouble() * 0.2 - 0.1;
6874 Utils.Clamp(
val2.X, -0.3, 0.3);
6875 Utils.Clamp(
val2.Y, 0.5, 1.0);
6876 }
6877 return true;
6878 }
static void OreHelper(int X, int Y)
static UnifiedRandom genRand
static void SquareTileFrame(int i, int j, bool resetFrame=true)
References Terraria.ID.TileID.Sets.Clouds, Terraria.WorldGen.SavedOreTiers.Copper, Terraria.WorldGen.gen, Terraria.WorldGen.genRand, Terraria.ID.TileID.Sets.Conversion.Grass, Terraria.WorldGen.SavedOreTiers.Iron, Terraria.WorldGen.OreHelper(), Terraria.ID.TileID.Sets.Conversion.Sand, Terraria.Enums.SolidTile, Terraria.WorldGen.SquareTileFrame(), Terraria.Main.tile, Terraria.Main.tileDungeon, System.type, Terraria.Main.worldSurface, System.X, and System.Y.