diff --git a/NPCs/NormalNPCs/Eidolist.cs b/NPCs/NormalNPCs/Eidolist.cs index fd6bb5701e..ebe360e15d 100644 --- a/NPCs/NormalNPCs/Eidolist.cs +++ b/NPCs/NormalNPCs/Eidolist.cs @@ -56,7 +56,7 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.Calamity().VulnerableToSickness = true; NPC.Calamity().VulnerableToElectricity = true; NPC.Calamity().VulnerableToWater = false; - SpawnModBiomes = new int[1] { ModContent.GetInstance().Type }; + SpawnModBiomes = new int[2] { ModContent.GetInstance().Type, ModContent.GetInstance().Type }; } public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) @@ -319,7 +319,11 @@ namespace CalamityMod.NPCs.NormalNPCs } if (spawnInfo.Player.Calamity().ZoneAbyssLayer3 && spawnInfo.Water) { - return 0.1f; + return 0.25f; + } + if (spawnInfo.Player.Calamity().ZoneAbyssLayer4 && spawnInfo.Water) + { + return 0.5f; } return 0f; } diff --git a/Schematics/VernalPass.csch b/Schematics/VernalPass.csch index 155bbbd423..378f15bd31 100644 Binary files a/Schematics/VernalPass.csch and b/Schematics/VernalPass.csch differ diff --git a/Tiles/Abyss/ShaleColumns.cs b/Tiles/Abyss/ShaleColumns.cs new file mode 100644 index 0000000000..096807ca37 --- /dev/null +++ b/Tiles/Abyss/ShaleColumns.cs @@ -0,0 +1,63 @@ +using CalamityMod.Dusts; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.Enums; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.Abyss +{ + public class ShaleColumns : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileSolid[Type] = false; + Main.tileSolidTop[Type] = true; + TileObjectData.newTile.Width = 2; + TileObjectData.newTile.Height = 3; + TileObjectData.newTile.Origin = new Point16(1, 2); + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); + TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.CoordinateHeights = new int[] + { + 16, + 16, + 16 + }; + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.WaterDeath = false; + TileObjectData.newTile.LavaDeath = true; + TileObjectData.addTile(Type); + AddMapEntry(new Color(37, 24, 63)); + DustType = 33; + + base.SetStaticDefaults(); + } + + public override void NearbyEffects(int i, int j, bool closer) + { + Tile t = CalamityUtils.ParanoidTileRetrieval(i, j); + Tile left = CalamityUtils.ParanoidTileRetrieval(i - 1, j); + Tile right = CalamityUtils.ParanoidTileRetrieval(i + 1, j); + if (t.TileFrameX % 36 == 0 && !right.HasTile) + WorldGen.KillTile(i, j); + if (t.TileFrameX % 36 == 18 && !left.HasTile) + WorldGen.KillTile(i, j); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + if (Main.netMode == NetmodeID.Server) + return; + } + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 2; + } + } +} diff --git a/Tiles/Abyss/ShaleColumns.png b/Tiles/Abyss/ShaleColumns.png new file mode 100644 index 0000000000..eff561644c Binary files /dev/null and b/Tiles/Abyss/ShaleColumns.png differ diff --git a/Tiles/Crags/Tree/SpineSapling.cs b/Tiles/Crags/Tree/SpineSapling.cs index f9c9c4f22a..51c2b0b2aa 100644 --- a/Tiles/Crags/Tree/SpineSapling.cs +++ b/Tiles/Crags/Tree/SpineSapling.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Tiles.Crags.Tree if (isPlayerNear && Main.tile[i, j + 1].TileType != ModContent.TileType()) { - SpineTree.Spawn(i, j, 22, 28, true); + SpineTree.Spawn(i, j + 1, 22, 28, true); } } } diff --git a/Tiles/Crags/Tree/SpineTree.cs b/Tiles/Crags/Tree/SpineTree.cs index 1f68fd9d0d..341ca298b1 100644 --- a/Tiles/Crags/Tree/SpineTree.cs +++ b/Tiles/Crags/Tree/SpineTree.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.Crags.Tree What each frame of the tree means (refer to the sprite sheet for the colors) X frame 0 (orange) = bottom segment - X frame 18 (dark purple) = main body segment, each of the three y-frame variants draws a different tree segment variant + X frame 18 (dark purple) = main tree segment, each of the three y-frame variants draws a different tree segment variant X frame 36 (light purple) = top of the tree X frame 54 (teal) = small rib branch segments X frame 72 (lime) = medium rib branch segments diff --git a/Tiles/GiantPlanteraBulb.cs b/Tiles/GiantPlanteraBulb.cs index 353f961595..da8bfebe74 100644 --- a/Tiles/GiantPlanteraBulb.cs +++ b/Tiles/GiantPlanteraBulb.cs @@ -29,12 +29,49 @@ namespace CalamityMod.Tiles TileObjectData.newTile.LavaDeath = true; TileObjectData.newTile.DrawYOffset = 2; TileObjectData.addTile(Type); + AnimationFrameHeight = 90; AddMapEntry(Main.hardMode ? new Color(243, 82, 171) : new Color(107, 125, 33)); DustType = DustID.JungleGrass; base.SetStaticDefaults(); } + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 2; + } + + public override bool CanKillTile(int i, int j, ref bool blockDamaged) + { + return Main.hardMode; + } + + public override bool CanExplode(int i, int j) + { + return Main.hardMode; + } + + public override void AnimateTile(ref int frame, ref int frameCounter) + { + if (Main.hardMode) + { + frameCounter++; + if (frameCounter > 25) + { + frameCounter = 0; + frame++; + if (frame > 6) + { + frame = 1; + } + } + } + else + { + frame = 0; + } + } + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) { if (Main.hardMode) @@ -45,9 +82,13 @@ namespace CalamityMod.Tiles } } - public override void NumDust(int i, int j, bool fail, ref int num) + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) { - num = fail ? 1 : 2; + Tile tile = Framing.GetTileSafely(i, j); + Texture2D tex = ModContent.Request("CalamityMod/Tiles/GiantPlanteraBulbGlow").Value; + Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange, Main.offScreenRange); + + spriteBatch.Draw(tex, new Vector2(i * 16, j * 16 + 2) - Main.screenPosition + zero, new Rectangle(tile.TileFrameX, tile.TileFrameY, 16, 16), Color.Yellow); } } } diff --git a/World/Abyss.cs b/World/Abyss.cs index c2e2de5437..33b13e06d5 100644 --- a/World/Abyss.cs +++ b/World/Abyss.cs @@ -67,7 +67,7 @@ namespace CalamityMod.World //normally i would organize each layer of blocks by the order of how they are placed in the abyss //but i cannot be bothered, and when i do it, it keeps messing up or making certain parts like transitions not gen right //i have at least left comments so people reading will know what does what - if (abyssIndex2 > (rockLayer - Main.maxTilesY / 15) + 25) + if (abyssIndex2 > (rockLayer - Main.maxTilesY / 15) + 35) { //replaces blocks wand walls that can be converted if (canConvert) @@ -655,6 +655,9 @@ namespace CalamityMod.World } } } + + //ugh ill edit this later so i can customize the check positions and tiles for columns + //SulphurousSea.GenerateColumnsInCaverns(); } public static void AbyssIsland(int i, int j, int sizeMin, int sizeMax, int sizeMin2, int sizeMax2, int tileType, bool hasChest, bool hasClumps, bool hasScoria) diff --git a/World/VernalPass.cs b/World/VernalPass.cs index af573a6ca2..d9b191eab4 100644 --- a/World/VernalPass.cs +++ b/World/VernalPass.cs @@ -40,9 +40,9 @@ namespace CalamityMod.World bool canGenerateInLocation = true; float totalTiles = schematicSize.X * schematicSize.Y; - for (int x = placementPoint.X; x < placementPoint.X + schematicSize.X; x++) + for (int x = placementPoint.X - 50; x < placementPoint.X + schematicSize.X + 50; x++) { - for (int y = placementPoint.Y; y < placementPoint.Y + schematicSize.Y; y++) + for (int y = placementPoint.Y - 50; y < placementPoint.Y + schematicSize.Y + 50; y++) { Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y);