diff --git a/CalamityMod.cs b/CalamityMod.cs index 7359a47873..a90926c3fd 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -148,7 +148,7 @@ namespace CalamityMod internal Mod wikithis = null; //hell background - private List loadCache; + //private List loadCache; #region Load public override void Load() @@ -246,6 +246,8 @@ namespace CalamityMod BaseIdleHoldoutProjectile.LoadAll(); PlayerDashManager.Load(); + /* + //keep this disabled for now, hell bg system isnt used and there is a better way to load it //hell background loading HellBGManager.Load(); @@ -265,6 +267,7 @@ namespace CalamityMod { loadCache[k].Load(); } + */ } private void LoadClient() @@ -454,6 +457,7 @@ namespace CalamityMod manaOriginal = null; carpetOriginal = null; + /* //unload hell background stuff HellBGManager.Unload(); @@ -466,6 +470,7 @@ namespace CalamityMod } loadCache = null; + */ ILChanges.Unload(); Instance = null; diff --git a/Items/Pets/SeaSlugCerata.cs b/Items/Pets/SeaSlugCerata.cs index 21a88cddfb..5933d6c8aa 100644 --- a/Items/Pets/SeaSlugCerata.cs +++ b/Items/Pets/SeaSlugCerata.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Pets SacrificeTotal = 1; DisplayName.SetDefault("Sea Slug Cerata"); Tooltip.SetDefault("Summons a bioluminescent sea slug to follow you" - + "\nThe sea slug will change colors in different aquatic environments"); + + "\nThe sea slug will change colors in different environments"); } public override void SetDefaults() diff --git a/Items/Placeables/ScorchedBone.cs b/Items/Placeables/ScorchedBone.cs index 336df54330..298787cbd8 100644 --- a/Items/Placeables/ScorchedBone.cs +++ b/Items/Placeables/ScorchedBone.cs @@ -29,11 +29,12 @@ namespace CalamityMod.Items.Placeables Item.createTile = ModContent.TileType(); } - /*public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) + public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) { itemGroup = ContentSamples.CreativeHelper.ItemGroup.Wood; - }*/ + } + //i assume this is supposed to be for when the platforms and walls for this tile are finished /*public override void AddRecipes() { CreateRecipe(). diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 5b79b43e3f..d0788d953c 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -1136,7 +1136,7 @@ namespace CalamityMod.NPCs.HiveMind { string key = "Mods.CalamityMod.SkyOreText"; Color messageColor = Color.Cyan; - SpawnAerialiteOre(); + CalamityUtils.SpawnAerialiteOre(); CalamityUtils.DisplayLocalizedText(key, messageColor); } @@ -1146,24 +1146,6 @@ namespace CalamityMod.NPCs.HiveMind CalamityNetcode.SyncWorld(); } - //i love making a separate method since ore runner does not work on clouds :) - public static void SpawnAerialiteOre() - { - if (Main.netMode != NetmodeID.MultiplayerClient) - { - for (int x = 5; x < Main.maxTilesX - 5; x++) - { - for (int y = 5; y < 300; y++) - { - if (WorldGen.genRand.Next(350) == 0 && Main.tile[x, y].TileType == TileID.Cloud) - { - CalamityUtils.NaturalCircle(x, y, WorldGen.genRand.Next(1, 4), ModContent.TileType()); - } - } - } - } - } - public override void ModifyNPCLoot(NPCLoot npcLoot) { npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType())); diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 89565994e4..7797c8a362 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -521,7 +521,7 @@ namespace CalamityMod.NPCs.Perforator { string key = "Mods.CalamityMod.SkyOreText"; Color messageColor = Color.Cyan; - SpawnAerialiteOre(); + CalamityUtils.SpawnAerialiteOre(); CalamityUtils.DisplayLocalizedText(key, messageColor); } @@ -531,24 +531,6 @@ namespace CalamityMod.NPCs.Perforator CalamityNetcode.SyncWorld(); } - //i love making a separate method since ore runner does not work on clouds :) - public static void SpawnAerialiteOre() - { - if (Main.netMode != NetmodeID.MultiplayerClient) - { - for (int x = 5; x < Main.maxTilesX - 5; x++) - { - for (int y = 5; y < 300; y++) - { - if (WorldGen.genRand.Next(350) == 0 && Main.tile[x, y].TileType == TileID.Cloud) - { - CalamityUtils.NaturalCircle(x, y, WorldGen.genRand.Next(1, 4), ModContent.TileType()); - } - } - } - } - } - public override void ModifyNPCLoot(NPCLoot npcLoot) { npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType())); diff --git a/Projectiles/Pets/SeaSlug.cs b/Projectiles/Pets/SeaSlug.cs index c8d0abc31c..086a022db8 100644 --- a/Projectiles/Pets/SeaSlug.cs +++ b/Projectiles/Pets/SeaSlug.cs @@ -16,10 +16,7 @@ namespace CalamityMod.Projectiles.Pets private Form SeaSlugColor = Form.Normal; private enum Form { - Normal, - Sulphur, - Abyss, - Sunken, + Normal, Sulphur, Abyss, Sunken, Astral, Crags, Snow, Desert, Jungle } public override void SetStaticDefaults() @@ -55,6 +52,26 @@ namespace CalamityMod.Projectiles.Pets { SeaSlugColor = Form.Sunken; } + else if (player.InAstral()) + { + SeaSlugColor = Form.Astral; + } + else if (player.InCalamity()) + { + SeaSlugColor = Form.Crags; + } + else if (player.ZoneSnow) + { + SeaSlugColor = Form.Snow; + } + else if (player.ZoneDesert) + { + SeaSlugColor = Form.Desert; + } + else if (player.ZoneJungle) + { + SeaSlugColor = Form.Jungle; + } else { SeaSlugColor = Form.Normal; @@ -63,22 +80,35 @@ namespace CalamityMod.Projectiles.Pets public override bool PreDraw(ref Color lightColor) { - Drawing(lightColor, ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlug").Value, - ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugSulphur").Value, - ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugAbyss").Value, - ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugSunken").Value); + Draw(lightColor, ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlug").Value); return false; } public override void PostDraw(Color lightColor) { - Drawing(Color.White, ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlug_Glow").Value, + DrawGlowmask(Color.White, ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlug_Glow").Value, ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugSulphur_Glow").Value, ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugAbyss_Glow").Value, - ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugSunken_Glow").Value); + ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugSunken_Glow").Value, + ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugAstral_Glow").Value, + ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugCrags_Glow").Value, + ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugSnow_Glow").Value, + ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugDesert_Glow").Value, + ModContent.Request("CalamityMod/Projectiles/Pets/SeaSlugJungle_Glow").Value); } - private void Drawing(Color color, Texture2D normal, Texture2D sulphur, Texture2D abyss, Texture2D sunken) + private void Draw(Color color, Texture2D texture) + { + int height = texture.Height / Main.projFrames[Projectile.type]; + int frameHeight = height * Projectile.frame; + SpriteEffects spriteEffects = SpriteEffects.None; + if (Projectile.spriteDirection == -1) + spriteEffects = SpriteEffects.FlipHorizontally; + + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), color, Projectile.rotation, new Vector2(texture.Width / 2f, height / 2f), Projectile.scale, spriteEffects, 0); + } + + private void DrawGlowmask(Color color, Texture2D normal, Texture2D sulphur, Texture2D abyss, Texture2D sunken, Texture2D astral, Texture2D crags, Texture2D snow, Texture2D desert, Texture2D jungle) { Texture2D texture = normal; switch (SeaSlugColor) @@ -95,6 +125,21 @@ namespace CalamityMod.Projectiles.Pets case Form.Sunken: texture = sunken; break; + case Form.Astral: + texture = astral; + break; + case Form.Crags: + texture = crags; + break; + case Form.Snow: + texture = snow; + break; + case Form.Desert: + texture = desert; + break; + case Form.Jungle: + texture = jungle; + break; } int height = texture.Height / Main.projFrames[Projectile.type]; diff --git a/Projectiles/Pets/SeaSlug.png b/Projectiles/Pets/SeaSlug.png index 687e71e1d3..7d13907832 100644 Binary files a/Projectiles/Pets/SeaSlug.png and b/Projectiles/Pets/SeaSlug.png differ diff --git a/Projectiles/Pets/SeaSlugAbyss.png b/Projectiles/Pets/SeaSlugAbyss.png deleted file mode 100644 index 54a53213a2..0000000000 Binary files a/Projectiles/Pets/SeaSlugAbyss.png and /dev/null differ diff --git a/Projectiles/Pets/SeaSlugAstral_Glow.png b/Projectiles/Pets/SeaSlugAstral_Glow.png new file mode 100644 index 0000000000..79ca874914 Binary files /dev/null and b/Projectiles/Pets/SeaSlugAstral_Glow.png differ diff --git a/Projectiles/Pets/SeaSlugCrags_Glow.png b/Projectiles/Pets/SeaSlugCrags_Glow.png new file mode 100644 index 0000000000..a48ae83743 Binary files /dev/null and b/Projectiles/Pets/SeaSlugCrags_Glow.png differ diff --git a/Projectiles/Pets/SeaSlugDesert_Glow.png b/Projectiles/Pets/SeaSlugDesert_Glow.png new file mode 100644 index 0000000000..ab66005a3a Binary files /dev/null and b/Projectiles/Pets/SeaSlugDesert_Glow.png differ diff --git a/Projectiles/Pets/SeaSlugJungle_Glow.png b/Projectiles/Pets/SeaSlugJungle_Glow.png new file mode 100644 index 0000000000..867ca38784 Binary files /dev/null and b/Projectiles/Pets/SeaSlugJungle_Glow.png differ diff --git a/Projectiles/Pets/SeaSlugSnow_Glow.png b/Projectiles/Pets/SeaSlugSnow_Glow.png new file mode 100644 index 0000000000..7d1a29a4a2 Binary files /dev/null and b/Projectiles/Pets/SeaSlugSnow_Glow.png differ diff --git a/Projectiles/Pets/SeaSlugSulphur.png b/Projectiles/Pets/SeaSlugSulphur.png deleted file mode 100644 index 3e96575788..0000000000 Binary files a/Projectiles/Pets/SeaSlugSulphur.png and /dev/null differ diff --git a/Projectiles/Pets/SeaSlugSunken.png b/Projectiles/Pets/SeaSlugSunken.png deleted file mode 100644 index b1bde2cdfc..0000000000 Binary files a/Projectiles/Pets/SeaSlugSunken.png and /dev/null differ diff --git a/Systems/HellBackgroundSystem.cs b/Systems/HellBackgroundSystem.cs index eb1674eb7d..da2600efed 100644 --- a/Systems/HellBackgroundSystem.cs +++ b/Systems/HellBackgroundSystem.cs @@ -1,4 +1,5 @@ -using Terraria; +/* +using Terraria; using Terraria.ModLoader; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -220,7 +221,6 @@ namespace CalamityMod.Systems } } - /* //example hell background using the system public class SpookyHellBG : HellBGType { @@ -235,5 +235,5 @@ namespace CalamityMod.Systems public override Color DrawColor => Color.Gray; //draw color of the bg } - */ -} \ No newline at end of file +} +*/ \ No newline at end of file diff --git a/Tiles/Crags/ScorchedRemainsGrass.cs b/Tiles/Crags/ScorchedRemainsGrass.cs index 8dd2054086..0f1e287685 100644 --- a/Tiles/Crags/ScorchedRemainsGrass.cs +++ b/Tiles/Crags/ScorchedRemainsGrass.cs @@ -59,22 +59,18 @@ namespace CalamityMod.Tiles.Crags } } - //do this in animate tile because its the only hook that updates a tile constantly unlike random update - public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset) - { - //convert this tile back into scorched remains if any liquid is above it - //will change this to only check for lava if necessary - if (Main.tile[i, j - 1].LiquidAmount > 0) - { - Main.tile[i, j].TileType = (ushort)ModContent.TileType(); - } - } - public override void RandomUpdate(int i, int j) { Tile up = Main.tile[i, j - 1]; Tile up2 = Main.tile[i, j - 2]; + //convert this tile back into scorched remains if any liquid is above it + //will change this to only check for lava if necessary + if (up.LiquidAmount > 0) + { + Main.tile[i, j].TileType = (ushort)ModContent.TileType(); + } + if (WorldGen.genRand.Next(5) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount == 0) { up.TileType = (ushort)ModContent.TileType(); diff --git a/Tiles/Crags/Spike/CragStalactite.cs b/Tiles/Crags/Spike/CragStalactite.cs deleted file mode 100644 index 66521464f9..0000000000 --- a/Tiles/Crags/Spike/CragStalactite.cs +++ /dev/null @@ -1,141 +0,0 @@ -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; -using Terraria.DataStructures; -using Terraria.Enums; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; - -namespace CalamityMod.Tiles.Crags.Spike -{ - //all stalactites are coded are, i made each one separate because i do not feel like messing with frames for tiles this big, please dont kill me :( - public class CragStalactiteGiant1 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 4; - TileObjectData.newTile.Height = 8; - TileObjectData.newTile.Origin = new Point16(2, 1); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16, 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.AnchorBottom = default(AnchorData); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = -3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } - - public class CragStalactiteGiant2 : CragStalactiteGiant1 - { - } - - public class CragStalactiteGiant3 : CragStalactiteGiant1 - { - } - - public class CragStalactiteLarge1 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 5; - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.AnchorBottom = default(AnchorData); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = -3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } - - public class CragStalactiteLarge2 : CragStalactiteLarge1 - { - } - - public class CragStalactiteLarge3 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 4; - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.AnchorBottom = default(AnchorData); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = -3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } - - public class CragStalactiteSmall1 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.AnchorBottom = default(AnchorData); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = -3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } - - public class CragStalactiteSmall2 : CragStalactiteSmall1 - { - } - - public class CragStalactiteSmall3 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.AnchorBottom = default(AnchorData); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = -3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } -} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalactiteGiant.cs b/Tiles/Crags/Spike/CragStalactiteGiant.cs new file mode 100644 index 0000000000..d52cc6bbff --- /dev/null +++ b/Tiles/Crags/Spike/CragStalactiteGiant.cs @@ -0,0 +1,42 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalactiteGiant1 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.Width = 4; + TileObjectData.newTile.Height = 8; + TileObjectData.newTile.Origin = new Point16(2, 1); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16, 16, 16, 16 }; + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.AnchorBottom = default(AnchorData); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = -3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } + + public class CragStalactiteGiant2 : CragStalactiteGiant1 + { + } + + public class CragStalactiteGiant3 : CragStalactiteGiant1 + { + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalactiteLarge2x4.cs b/Tiles/Crags/Spike/CragStalactiteLarge2x4.cs new file mode 100644 index 0000000000..91516d13e9 --- /dev/null +++ b/Tiles/Crags/Spike/CragStalactiteLarge2x4.cs @@ -0,0 +1,34 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalactiteLarge3 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.Width = 2; + TileObjectData.newTile.Height = 4; + TileObjectData.newTile.Origin = new Point16(1, 1); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.AnchorBottom = default(AnchorData); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = -3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalactiteLarge2x5.cs b/Tiles/Crags/Spike/CragStalactiteLarge2x5.cs new file mode 100644 index 0000000000..43a568b671 --- /dev/null +++ b/Tiles/Crags/Spike/CragStalactiteLarge2x5.cs @@ -0,0 +1,38 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalactiteLarge1 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.Width = 2; + TileObjectData.newTile.Height = 5; + TileObjectData.newTile.Origin = new Point16(1, 1); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16 }; + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.AnchorBottom = default(AnchorData); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = -3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } + + public class CragStalactiteLarge2 : CragStalactiteLarge1 + { + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalactiteSmall2x2.cs b/Tiles/Crags/Spike/CragStalactiteSmall2x2.cs new file mode 100644 index 0000000000..b907a41a74 --- /dev/null +++ b/Tiles/Crags/Spike/CragStalactiteSmall2x2.cs @@ -0,0 +1,32 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalactiteSmall3 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(1, 1); + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.AnchorBottom = default(AnchorData); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = -3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalactiteSmall2x3.cs b/Tiles/Crags/Spike/CragStalactiteSmall2x3.cs new file mode 100644 index 0000000000..aa16d21c4a --- /dev/null +++ b/Tiles/Crags/Spike/CragStalactiteSmall2x3.cs @@ -0,0 +1,38 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalactiteSmall1 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.Width = 2; + TileObjectData.newTile.Height = 3; + TileObjectData.newTile.Origin = new Point16(1, 1); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.AnchorBottom = default(AnchorData); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = -3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } + + public class CragStalactiteSmall2 : CragStalactiteSmall1 + { + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalagmite.cs b/Tiles/Crags/Spike/CragStalagmite.cs deleted file mode 100644 index e76c0f1831..0000000000 --- a/Tiles/Crags/Spike/CragStalagmite.cs +++ /dev/null @@ -1,136 +0,0 @@ -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; -using Terraria.DataStructures; -using Terraria.Enums; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; - -namespace CalamityMod.Tiles.Crags.Spike -{ - //all stalagmites are here, i made each one separate because i do not feel like messing with frames for tiles this big, please dont kill me :( - public class CragStalagmiteGiant1 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 4; - TileObjectData.newTile.Height = 8; - TileObjectData.newTile.Origin = new Point16(2, 7); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16, 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = 3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } - - public class CragStalagmiteGiant2 : CragStalagmiteGiant1 - { - } - - public class CragStalagmiteGiant3 : CragStalagmiteGiant1 - { - } - - public class CragStalagmiteLarge1 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 5; - TileObjectData.newTile.Origin = new Point16(1, 4); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = 3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } - - public class CragStalagmiteLarge2 : CragStalagmiteLarge1 - { - } - - public class CragStalagmiteLarge3 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 4; - TileObjectData.newTile.Origin = new Point16(1, 3); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = 3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } - - public class CragStalagmiteSmall1 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(1, 2); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = 3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } - - public class CragStalagmiteSmall2 : CragStalagmiteSmall1 - { - } - - public class CragStalagmiteSmall3 : ModTile - { - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileSolid[Type] = false; - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.DrawYOffset = 3; - TileObjectData.addTile(Type); - AddMapEntry(new Color(43, 23, 46)); - DustType = 155; - HitSound = SoundID.Tink; - } - } -} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalagmiteGiant.cs b/Tiles/Crags/Spike/CragStalagmiteGiant.cs new file mode 100644 index 0000000000..96c7270acc --- /dev/null +++ b/Tiles/Crags/Spike/CragStalagmiteGiant.cs @@ -0,0 +1,41 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalagmiteGiant1 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.Width = 4; + TileObjectData.newTile.Height = 8; + TileObjectData.newTile.Origin = new Point16(2, 7); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16, 16, 16, 16 }; + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = 3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } + + public class CragStalagmiteGiant2 : CragStalagmiteGiant1 + { + } + + public class CragStalagmiteGiant3 : CragStalagmiteGiant1 + { + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalagmiteLarge2x4.cs b/Tiles/Crags/Spike/CragStalagmiteLarge2x4.cs new file mode 100644 index 0000000000..2d00e16c06 --- /dev/null +++ b/Tiles/Crags/Spike/CragStalagmiteLarge2x4.cs @@ -0,0 +1,33 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalagmiteLarge3 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.Width = 2; + TileObjectData.newTile.Height = 4; + TileObjectData.newTile.Origin = new Point16(1, 3); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = 3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalagmiteLarge2x5.cs b/Tiles/Crags/Spike/CragStalagmiteLarge2x5.cs new file mode 100644 index 0000000000..033f454fcb --- /dev/null +++ b/Tiles/Crags/Spike/CragStalagmiteLarge2x5.cs @@ -0,0 +1,37 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalagmiteLarge1 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.Width = 2; + TileObjectData.newTile.Height = 5; + TileObjectData.newTile.Origin = new Point16(1, 4); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16 }; + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = 3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } + + public class CragStalagmiteLarge2 : CragStalagmiteLarge1 + { + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalagmiteSmall2x2.cs b/Tiles/Crags/Spike/CragStalagmiteSmall2x2.cs new file mode 100644 index 0000000000..051fa823a2 --- /dev/null +++ b/Tiles/Crags/Spike/CragStalagmiteSmall2x2.cs @@ -0,0 +1,31 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalagmiteSmall3 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(1, 1); + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = 3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } +} \ No newline at end of file diff --git a/Tiles/Crags/Spike/CragStalagmiteSmall2x3.cs b/Tiles/Crags/Spike/CragStalagmiteSmall2x3.cs new file mode 100644 index 0000000000..0ffa4e555d --- /dev/null +++ b/Tiles/Crags/Spike/CragStalagmiteSmall2x3.cs @@ -0,0 +1,37 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.Enums; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.Crags.Spike +{ + public class CragStalagmiteSmall1 : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.Width = 2; + TileObjectData.newTile.Height = 3; + TileObjectData.newTile.Origin = new Point16(1, 2); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; + TileObjectData.newTile.StyleWrapLimit = 36; + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.DrawYOffset = 3; + TileObjectData.addTile(Type); + AddMapEntry(new Color(43, 23, 46)); + DustType = 155; + HitSound = SoundID.Tink; + } + } + + public class CragStalagmiteSmall2 : CragStalagmiteSmall1 + { + } +} \ No newline at end of file diff --git a/Tiles/Crags/Tree/SpineTree.cs b/Tiles/Crags/Tree/SpineTree.cs index 5f12881e5f..23bd0fbcc2 100644 --- a/Tiles/Crags/Tree/SpineTree.cs +++ b/Tiles/Crags/Tree/SpineTree.cs @@ -64,16 +64,8 @@ namespace CalamityMod.Tiles.Crags.Tree Main.tileSolid[Framing.GetTileSafely(i, j).TileType]); } - public static bool Spawn(int i, int j, int type = -1, int minSize = 5, int maxSize = 18, bool leaves = false, int leavesType = -1, bool saplingExists = false) + public static bool Spawn(int i, int j, int minSize = 5, int maxSize = 18, bool leaves = false, int leavesType = -1, bool saplingExists = false) { - //set this tree to the type - //TODO: left over from my other tree system, but this can probably just be changed to an int inside this method - //too lazy right now so im leaving it as is - if (type == -1) - { - type = ModContent.TileType(); - } - //if this tree grew from a sapling, then kill the sapling its growing from if (saplingExists) { @@ -126,7 +118,7 @@ namespace CalamityMod.Tiles.Crags.Tree { if (extraPlaces[k + 2]) { - WorldGen.PlaceTile(i + k, j, type, true); + WorldGen.PlaceTile(i + k, j, ModContent.TileType(), true); } else { @@ -147,7 +139,7 @@ namespace CalamityMod.Tiles.Crags.Tree for (int k = 1; k < height; k++) { - WorldGen.PlaceTile(i, j - k, type, true); + WorldGen.PlaceTile(i, j - k, ModContent.TileType(), true); if (branchSegmentDelay > 0) { @@ -260,22 +252,12 @@ namespace CalamityMod.Tiles.Crags.Tree int belowFrame = Framing.GetTileSafely(i, j + 1).TileFrameX; - /* - //if theres any remaining segments below the segment you broke, turn it into a stub top segment - //probably not needed for this custom tree but ill keep it here just incase - - if (belowFrame == 0 || belowFrame == 16) - { - Framing.GetTileSafely(i, j + 1).TileFrameX = 36; - } - */ - SoundEngine.PlaySound(SoundID.DD2_SkeletonHurt, (new Vector2(i, j) * 16)); //here is where you can make effects happen when the tree segments break, like adding dust, dropping gore, ect /* - //TODO: save this since this tree will also produce bone gores when broken + //TODO: save this since this tree will also produce bone gores when broken (gores for this tree still need assets) Gore.NewGore(new EntitySource_TileInteraction(Main.LocalPlayer, i, j), (new Vector2(i, j - 2) * 16), new Vector2(Main.rand.Next(-3, 3), Main.rand.Next(-3, 3)), ModContent.Find("CalamityMod/WhateverGore").Type); */ diff --git a/Utilities/WorldgenUtils.cs b/Utilities/WorldgenUtils.cs index b69b04a133..87cd55f6fa 100644 --- a/Utilities/WorldgenUtils.cs +++ b/Utilities/WorldgenUtils.cs @@ -1,5 +1,6 @@ using Terraria; using Terraria.ID; +using Terraria.ModLoader; using Terraria.DataStructures; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -60,6 +61,24 @@ namespace CalamityMod } } + //for some reason orerunner wasnt working with clouds, so just have a seperate thing for aerialite here + public static void SpawnAerialiteOre() + { + if (Main.netMode != NetmodeID.MultiplayerClient) + { + for (int x = 5; x < Main.maxTilesX - 5; x++) + { + for (int y = 5; y < 300; y++) + { + if (WorldGen.genRand.Next(350) == 0 && Main.tile[x, y].TileType == TileID.Cloud) + { + NaturalCircle(x, y, WorldGen.genRand.Next(1, 4), ModContent.TileType()); + } + } + } + } + } + /// /// Settles all liquids in the world. /// diff --git a/World/BrimstoneCrag.cs b/World/BrimstoneCrag.cs index 6a1289a5b7..530e9fc9f9 100644 --- a/World/BrimstoneCrag.cs +++ b/World/BrimstoneCrag.cs @@ -328,7 +328,7 @@ namespace CalamityMod.World //grow spine tree if (WorldGen.genRand.Next(12) == 0 && TreeDelay == 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock) { - SpineTree.Spawn(x, y - 1, -1, 22, 28, false, -1, false); + SpineTree.Spawn(x, y - 1, 22, 28, false, -1, false); TreeDelay = 15; } } diff --git a/World/SunkenSea.cs b/World/SunkenSea.cs index 04e0763276..afb937ad4c 100644 --- a/World/SunkenSea.cs +++ b/World/SunkenSea.cs @@ -361,30 +361,6 @@ namespace CalamityMod.World } } - //place a circular clump of tiles - public static void NaturalCircle(int i, int j, int size, int tileType, bool killTile) - { - int BaseRadius = size; - int radius = BaseRadius; - - for (int y = j - radius; y <= j + radius; y++) - { - for (int x = i - radius; x <= i + radius + 1; x++) - { - if ((int)Vector2.Distance(new Vector2(x, y), new Vector2(i, j)) <= radius && WorldGen.InWorld(x, y)) - { - Tile tile = Framing.GetTileSafely(x, y); - - WorldGen.KillTile(x, y); - WorldGen.PlaceTile(x, y, tileType); - tile.Slope = 0; - } - } - - radius = BaseRadius - WorldGen.genRand.Next(-1, 2); - } - } - // Adds tile variation to generated tile clusters and generates open areas with sea prism ore called "Tits" // Generates sea prism crystals on prism ore and occasionally on navystone private static void AddGeodes(ClusterGroup clusters, Point start, Vector2 terrainApplicationScaleVector, float overallBiomeScale)