diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 25b01033b9..1af1af19be 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -492,6 +492,7 @@ namespace CalamityMod.CalPlayer { int astralOreID = ModContent.TileType(); int auricOreID = ModContent.TileType(); + int chaotiOreID = ModContent.TileType(); int auricRejectionDamage = 300; float auricRejectionKB = Player.noKnockback ? 20f : 40f; @@ -506,6 +507,10 @@ namespace CalamityMod.CalPlayer if (tile.TileType == astralOreID) Player.AddBuff(ModContent.BuffType(), 2); + // You will need to set each resistant item here for burning as it gets bypassed for somereason + if (tile.TileType == chaotiOreID) + Player.AddBuff(BuffID.Burning, 2); + // Auric Ore causes an Auric Rejection unless you are wearing Auric Armor // Auric Rejection causes an electrical explosion that yeets the player a considerable distance else if (tile.TileType == auricOreID && !auricSet) diff --git a/Tiles/Ores/ChaoticOre.cs b/Tiles/Ores/ChaoticOre.cs index a78a100c17..221e1320c2 100644 --- a/Tiles/Ores/ChaoticOre.cs +++ b/Tiles/Ores/ChaoticOre.cs @@ -6,6 +6,8 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.ModLoader.PlayerDrawLayer; + namespace CalamityMod.Tiles.Ores { public class ChaoticOre : ModTile @@ -34,6 +36,21 @@ namespace CalamityMod.Tiles.Ores public override void NearbyEffects(int i, int j, bool closer) { + Tile tile = Main.tile[i, j]; + Tile up = Main.tile[i, j - 1]; + Tile up2 = Main.tile[i, j - 2]; + if (closer && Main.rand.NextBool(30) && !up.HasTile && !up2.HasTile) + { + Dust dust; + dust = Main.dust[Dust.NewDust(new Vector2(i * 16f, j * 16f), 16, 16, 127, 0f, -10f, 47, new Color(255, 255, 255), 1.0465117f)]; + dust.noGravity = true; + dust.fadeIn = 1.2209302f; + + dust = Main.dust[Dust.NewDust(new Vector2(i * 16f, j * 16f), 16, 16, 31, 0f, -1.9069767f, 195, new Color(255, 255, 255), 1f)]; + dust.noGravity = false; + dust.fadeIn = 1.4209302f; + + } if (!closer && j < Main.maxTilesY - 205) { if (Main.tile[i, j].LiquidAmount <= 0) @@ -71,8 +88,7 @@ namespace CalamityMod.Tiles.Ores { num = fail ? 1 : 3; } - - public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) { r = 0.04f; g = 0.00f;