diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 1c12862c41..ec4a12d4e3 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1004,6 +1004,8 @@ namespace CalamityMod.CalPlayer modPlayer.omegaBlueCooldown--; if (modPlayer.plagueReaperCooldown > 0) modPlayer.plagueReaperCooldown--; + if (modPlayer.brimflameFrenzyTimer > 0) + modPlayer.brimflameFrenzyTimer--; if (modPlayer.roverDrive) { if (modPlayer.roverDriveTimer < CalamityUtils.SecondsToFrames(30f)) diff --git a/Items/Placeables/Banners/BOHLDOHRBanner.png b/Items/Placeables/Banners/BOHLDOHRBanner.png index a02f92a9cd..b995c34dcf 100644 Binary files a/Items/Placeables/Banners/BOHLDOHRBanner.png and b/Items/Placeables/Banners/BOHLDOHRBanner.png differ diff --git a/Items/Placeables/Banners/BloatfishBanner.png b/Items/Placeables/Banners/BloatfishBanner.png index 4365c707e4..4d4542e55e 100644 Binary files a/Items/Placeables/Banners/BloatfishBanner.png and b/Items/Placeables/Banners/BloatfishBanner.png differ diff --git a/Items/Placeables/Banners/BobbitWormBanner.png b/Items/Placeables/Banners/BobbitWormBanner.png index 8bffb68f49..a0bc419f84 100644 Binary files a/Items/Placeables/Banners/BobbitWormBanner.png and b/Items/Placeables/Banners/BobbitWormBanner.png differ diff --git a/Items/Placeables/Banners/GiantSquidBanner.png b/Items/Placeables/Banners/GiantSquidBanner.png index e1cf0cf416..cb54b256db 100644 Binary files a/Items/Placeables/Banners/GiantSquidBanner.png and b/Items/Placeables/Banners/GiantSquidBanner.png differ diff --git a/Items/Placeables/Banners/LaserfishBanner.png b/Items/Placeables/Banners/LaserfishBanner.png index e9891a4483..1db3a13cdd 100644 Binary files a/Items/Placeables/Banners/LaserfishBanner.png and b/Items/Placeables/Banners/LaserfishBanner.png differ diff --git a/Items/Placeables/Banners/LuminousCorvinaBanner.png b/Items/Placeables/Banners/LuminousCorvinaBanner.png index 342691b4af..bb2d938c65 100644 Binary files a/Items/Placeables/Banners/LuminousCorvinaBanner.png and b/Items/Placeables/Banners/LuminousCorvinaBanner.png differ diff --git a/Items/Placeables/Banners/OarfishBanner.png b/Items/Placeables/Banners/OarfishBanner.png index 7dc7e0e4b3..39583d5368 100644 Binary files a/Items/Placeables/Banners/OarfishBanner.png and b/Items/Placeables/Banners/OarfishBanner.png differ diff --git a/Items/Placeables/Banners/ParaseaBanner.png b/Items/Placeables/Banners/ParaseaBanner.png index e00c958787..7fad8efcf5 100644 Binary files a/Items/Placeables/Banners/ParaseaBanner.png and b/Items/Placeables/Banners/ParaseaBanner.png differ diff --git a/Items/Placeables/Banners/SandTortoiseBanner.png b/Items/Placeables/Banners/SandTortoiseBanner.png index cc8188e39c..374fb4212a 100644 Binary files a/Items/Placeables/Banners/SandTortoiseBanner.png and b/Items/Placeables/Banners/SandTortoiseBanner.png differ diff --git a/Items/Placeables/Banners/ShockstormShuttleBanner.png b/Items/Placeables/Banners/ShockstormShuttleBanner.png index bd6afae6ee..e3a0f18f5f 100644 Binary files a/Items/Placeables/Banners/ShockstormShuttleBanner.png and b/Items/Placeables/Banners/ShockstormShuttleBanner.png differ diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs index 1581dd2df0..4d3b654b64 100644 --- a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs @@ -59,11 +59,19 @@ namespace CalamityMod.NPCs.AstrumDeus public override void SendExtraAI(BinaryWriter writer) { writer.Write(npc.dontTakeDamage); + for (int i = 0; i < 4; i++) + { + writer.Write(npc.Calamity().newAI[i]); + } } public override void ReceiveExtraAI(BinaryReader reader) { npc.dontTakeDamage = reader.ReadBoolean(); + for (int i = 0; i < 4; i++) + { + npc.Calamity().newAI[i] = reader.ReadSingle(); + } } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index 98993a144f..3c8be574c8 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -74,11 +74,19 @@ namespace CalamityMod.NPCs.AstrumDeus public override void SendExtraAI(BinaryWriter writer) { writer.Write(npc.dontTakeDamage); + for (int i = 0; i < 4; i++) + { + writer.Write(npc.Calamity().newAI[i]); + } } public override void ReceiveExtraAI(BinaryReader reader) { npc.dontTakeDamage = reader.ReadBoolean(); + for (int i = 0; i < 4; i++) + { + npc.Calamity().newAI[i] = reader.ReadSingle(); + } } public override void AI() diff --git a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs index 0c0ef1fe72..70bdbf9717 100644 --- a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs @@ -59,11 +59,19 @@ namespace CalamityMod.NPCs.AstrumDeus public override void SendExtraAI(BinaryWriter writer) { writer.Write(npc.dontTakeDamage); + for (int i = 0; i < 4; i++) + { + writer.Write(npc.Calamity().newAI[i]); + } } public override void ReceiveExtraAI(BinaryReader reader) { npc.dontTakeDamage = reader.ReadBoolean(); + for (int i = 0; i < 4; i++) + { + npc.Calamity().newAI[i] = reader.ReadSingle(); + } } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 6028e516e8..70135af900 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -26,6 +26,7 @@ namespace CalamityMod.NPCs.Leviathan { int counter = 0; bool initialised = false; + int soundDelay = 0; public override void SetStaticDefaults() { @@ -95,6 +96,7 @@ namespace CalamityMod.NPCs.Leviathan writer.Write(npc.dontTakeDamage); writer.Write(counter); writer.Write(initialised); + writer.Write(soundDelay); } public override void ReceiveExtraAI(BinaryReader reader) @@ -102,6 +104,7 @@ namespace CalamityMod.NPCs.Leviathan npc.dontTakeDamage = reader.ReadBoolean(); counter = reader.ReadInt32(); initialised = reader.ReadBoolean(); + soundDelay = reader.ReadInt32(); } public override void AI() @@ -157,6 +160,9 @@ namespace CalamityMod.NPCs.Leviathan 40 }); + if (soundDelay > 0) + soundDelay--; + if (Main.rand.NextBool(600) && !spawnAnimation) Main.PlaySound(SoundID.Zombie, (int)npc.Center.X, (int)npc.Center.Y, (sirenAlive && !death) ? soundChoice : soundChoiceRage); @@ -346,6 +352,11 @@ namespace CalamityMod.NPCs.Leviathan vector40.X += num415 * 4f; vector40.Y += num416 * 4f; Projectile.NewProjectile(vector40.X, vector40.Y, num415, num416, projType, dmg, 0f, Main.myPlayer, 0f, 0f); + if (soundDelay <= 0) + { + soundDelay = 120; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/LeviathanRoarMeteor"), npc.Center); + } } } } diff --git a/Projectiles/Boss/LeviathanBomb.cs b/Projectiles/Boss/LeviathanBomb.cs index 3c210effe3..80e7347cf4 100644 --- a/Projectiles/Boss/LeviathanBomb.cs +++ b/Projectiles/Boss/LeviathanBomb.cs @@ -46,11 +46,6 @@ namespace CalamityMod.Projectiles.Boss projectile.rotation += 0.1f; if (visible && projectile.alpha > 0) projectile.alpha -= 15; - if (projectile.ai[1] == 0f) - { - projectile.ai[1] = 1f; - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/LeviathanRoarMeteor"), projectile.Center); - } projectile.localAI[0] += 1f; if (projectile.localAI[0] == 12f) { diff --git a/Projectiles/Ranged/NapalmArrowProj.cs b/Projectiles/Ranged/NapalmArrowProj.cs index c9bed216bd..e6ffba98a2 100644 --- a/Projectiles/Ranged/NapalmArrowProj.cs +++ b/Projectiles/Ranged/NapalmArrowProj.cs @@ -74,6 +74,9 @@ namespace CalamityMod.Projectiles.Ranged int flames = Projectile.NewProjectile(projectile.Center, velocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); Main.projectile[flames].Calamity().forceRanged = true; Main.projectile[flames].penetrate = 3; + Main.projectile[flames].usesLocalNPCImmunity = false; + Main.projectile[flames].usesIDStaticNPCImmunity = true; + Main.projectile[flames].idStaticNPCHitCooldown = 10; } } } diff --git a/Projectiles/Summon/GigaFlareFriendly.cs b/Projectiles/Summon/GigaFlareFriendly.cs deleted file mode 100644 index 3629f9c71b..0000000000 --- a/Projectiles/Summon/GigaFlareFriendly.cs +++ /dev/null @@ -1,138 +0,0 @@ -using CalamityMod.Buffs.DamageOverTime; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Summon -{ - public class GigaFlareFriendly : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Flare"); - Main.projFrames[projectile.type] = 4; - } - - public override void SetDefaults() - { - projectile.width = 20; - projectile.height = 20; - projectile.friendly = true; - projectile.penetrate = -1; - projectile.tileCollide = false; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 4; - projectile.minion = true; - projectile.minionSlots = 0f; - projectile.timeLeft = 120; - } - - public override void AI() - { - projectile.frameCounter++; - if (projectile.frameCounter > 4) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 3) - { - projectile.frame = 0; - } - Lighting.AddLight(projectile.Center, 1f, 0.7f, 0f); - float num472 = projectile.Center.X; - float num473 = projectile.Center.Y; - float num474 = 400f; - bool flag17 = false; - for (int num475 = 0; num475 < Main.maxNPCs; num475++) - { - if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) - { - float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); - float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); - float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); - if (num478 < num474) - { - num474 = num478; - num472 = num476; - num473 = num477; - flag17 = true; - } - } - } - if (flag17) - { - float num483 = 30f; - Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num484 = num472 - vector35.X; - float num485 = num473 - vector35.Y; - float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); - num486 = num483 / num486; - num484 *= num486; - num485 *= num486; - projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; - projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; - return; - } - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - Texture2D texture2D13 = Main.projectileTexture[projectile.type]; - int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; - int y6 = num214 * projectile.frame; - Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); - return false; - } - - public override void Kill(int timeLeft) - { - float spread = 90f * 0.0174f; - double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - if (projectile.owner == Main.myPlayer) - { - for (int i = 0; i < 2; i++) - { - offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - } - } - Main.PlaySound(SoundID.Item14, projectile.position); - projectile.position.X = projectile.position.X + (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); - projectile.width = 100; - projectile.height = 100; - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - for (int num621 = 0; num621 < 20; num621++) - { - int num622 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 100, default, 2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.NextBool(2)) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 35; num623++) - { - int num624 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 100, default, 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 100, default, 2f); - Main.dust[num624].velocity *= 2f; - } - CalamityUtils.ExplosionGores(projectile.Center, 3); - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(ModContent.BuffType(), 200); - } - } -} diff --git a/Projectiles/Summon/GigaFlareFriendly.png b/Projectiles/Summon/GigaFlareFriendly.png deleted file mode 100644 index 01e2bd24ca..0000000000 Binary files a/Projectiles/Summon/GigaFlareFriendly.png and /dev/null differ diff --git a/Projectiles/Summon/PhoenixFireFriendly.cs b/Projectiles/Summon/PhoenixFireFriendly.cs deleted file mode 100644 index a2eae68f58..0000000000 --- a/Projectiles/Summon/PhoenixFireFriendly.cs +++ /dev/null @@ -1,90 +0,0 @@ -using CalamityMod.Buffs.DamageOverTime; -using Microsoft.Xna.Framework; -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Summon -{ - public class PhoenixFireFriendly : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Fire"); - ProjectileID.Sets.MinionShot[projectile.type] = true; - } - - public override void SetDefaults() - { - projectile.width = 6; - projectile.height = 6; - projectile.friendly = true; - projectile.penetrate = 1; - projectile.tileCollide = true; - projectile.minion = true; - projectile.minionSlots = 0f; - projectile.timeLeft = 200; - } - - public override void AI() - { - projectile.localAI[0] += 1f; - if (projectile.localAI[0] > 4f) - { - for (int num468 = 0; num468 < 5; num468++) - { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default, 1f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } - } - float num472 = projectile.Center.X; - float num473 = projectile.Center.Y; - float num474 = 400f; - bool flag17 = false; - for (int num475 = 0; num475 < 200; num475++) - { - if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) - { - float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); - float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); - float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); - if (num478 < num474) - { - num474 = num478; - num472 = num476; - num473 = num477; - flag17 = true; - } - } - } - if (flag17) - { - float num483 = 30f; - Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num484 = num472 - vector35.X; - float num485 = num473 - vector35.Y; - float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); - num486 = num483 / num486; - num484 *= num486; - num485 *= num486; - projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; - projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; - return; - } - } - - public override void Kill(int timeLeft) - { - for (int k = 0; k < 5; k++) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - } - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(ModContent.BuffType(), 100); - } - } -} diff --git a/Projectiles/Summon/PhoenixFireFriendly.png b/Projectiles/Summon/PhoenixFireFriendly.png deleted file mode 100644 index a3192f9461..0000000000 Binary files a/Projectiles/Summon/PhoenixFireFriendly.png and /dev/null differ diff --git a/Schematics/TilePlacementHelpers.cs b/Schematics/TilePlacementHelpers.cs index d372566636..41225fbcd0 100644 --- a/Schematics/TilePlacementHelpers.cs +++ b/Schematics/TilePlacementHelpers.cs @@ -100,13 +100,7 @@ namespace CalamityMod.Schematics chestInteraction?.Invoke(chest); } } - if (tile.type == ModContent.TileType() || - tile.type == ModContent.TileType() || - tile.type == ModContent.TileType()) - { - WorldGen.PlaceTile(x + xOffset, y + yOffset, tile.type); - } - else if (tile.type == TileID.Trees || tile.type == TileID.PineTree || tile.type == TileID.Cactus) + if (tile.type == TileID.Trees || tile.type == TileID.PineTree || tile.type == TileID.Cactus) { ushort oldWall = oldTiles[x, y].wall; oldTiles[x, y] = new Tile @@ -117,6 +111,10 @@ namespace CalamityMod.Schematics else { Main.tile[x + xOffset, y + yOffset] = (Tile)SchematicTileConversion(oldTiles[x, y], tile, schematic[x, y].InternalColor).Clone(); + + // Temporary until the eldritch Tile Entity world corruption bug is killed. + if (Main.tile[x + xOffset, y + yOffset].type == ModContent.TileType()) + Main.tile[x + xOffset, y + yOffset].active(false); } Rectangle placeInArea = new Rectangle(x, y, schematic.GetLength(0), schematic.GetLength(1)); @@ -185,13 +183,7 @@ namespace CalamityMod.Schematics specialCondition = true; } } - if (tile.type == ModContent.TileType() || - tile.type == ModContent.TileType() || - tile.type == ModContent.TileType()) - { - WorldGen.PlaceTile(x + xOffset, y + yOffset, tile.type); - } - else if (tile.type == TileID.Trees || tile.type == TileID.PineTree || tile.type == TileID.Cactus) + if (tile.type == TileID.Trees || tile.type == TileID.PineTree || tile.type == TileID.Cactus) { ushort oldWall = oldTiles[x, y].wall; oldTiles[x, y] = new Tile @@ -202,6 +194,10 @@ namespace CalamityMod.Schematics else { Main.tile[x + xOffset, y + yOffset] = (Tile)SchematicTileConversion(oldTiles[x, y], tile, schematic[x, y].InternalColor).Clone(); + + // Temporary until the eldritch Tile Entity world corruption bug is killed. + if (Main.tile[x + xOffset, y + yOffset].type == ModContent.TileType()) + Main.tile[x + xOffset, y + yOffset].active(false); } Rectangle placeInArea = new Rectangle(x, y, schematic.GetLength(0), schematic.GetLength(1)); diff --git a/TileEntities/TEDraedonFieldGenerator.cs b/TileEntities/TEDraedonFieldGenerator.cs index 14014b3024..712d292fb9 100644 --- a/TileEntities/TEDraedonFieldGenerator.cs +++ b/TileEntities/TEDraedonFieldGenerator.cs @@ -66,7 +66,7 @@ namespace CalamityMod.TileEntities { var netMessage = CalamityMod.Instance.GetPacket(); netMessage.Write((byte)CalamityModMessageType.DraedonFieldGeneratorSync); - netMessage.Write(Main.LocalPlayer.Calamity().CurrentlyViewedCharger.ID); + netMessage.Write(ID); netMessage.Write(Time); netMessage.Write(ActiveTimer); netMessage.Send(); diff --git a/Tiles/CellFabricator.png b/Tiles/CellFabricator.png deleted file mode 100644 index f0f6b924f9..0000000000 Binary files a/Tiles/CellFabricator.png and /dev/null differ diff --git a/Tiles/DraedonFactoryFieldGenerator.cs b/Tiles/DraedonFactoryFieldGenerator.cs index acbcf422cd..455736be1d 100644 --- a/Tiles/DraedonFactoryFieldGenerator.cs +++ b/Tiles/DraedonFactoryFieldGenerator.cs @@ -20,6 +20,7 @@ namespace CalamityMod.Tiles Main.tileWaterDeath[Type] = false; TileObjectData.newTile.CopyFrom(TileObjectData.Style1x1); TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Field Generator"); diff --git a/Tiles/DraedonFuelFactory.cs b/Tiles/DraedonFuelFactory.cs index 0e7bef403f..1556e238eb 100644 --- a/Tiles/DraedonFuelFactory.cs +++ b/Tiles/DraedonFuelFactory.cs @@ -32,6 +32,7 @@ namespace CalamityMod.Tiles TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Fuel Factory"); diff --git a/Tiles/DraedonHologram.cs b/Tiles/DraedonHologram.cs index 72aafa5862..9d68c3c347 100644 --- a/Tiles/DraedonHologram.cs +++ b/Tiles/DraedonHologram.cs @@ -32,6 +32,7 @@ namespace CalamityMod.Tiles TileObjectData.newTile.CoordinateHeights[i] = 16; } TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); animationFrameHeight = 112; diff --git a/Tiles/DraedonItemCharger.cs b/Tiles/DraedonItemCharger.cs index 336c8cb397..1b1edb9759 100644 --- a/Tiles/DraedonItemCharger.cs +++ b/Tiles/DraedonItemCharger.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Tiles Main.tileWaterDeath[Type] = false; TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Item Charger"); @@ -42,6 +43,7 @@ namespace CalamityMod.Tiles var factory = ModTileEntity.ConstructFromType(ModContent.TileEntityType()); factory.Position = new Point16(left, top); TileEntity.ByID[TileEntity.ByID.Count] = factory; + TileEntity.ByPosition[factory.Position] = factory; } return (TEDraedonItemCharger)TileEntity.ByID.Where(tileEntity => tileEntity.Value.Position == new Point16(left, top)).First().Value; } diff --git a/Tiles/DraedonStructures/AgedLaboratoryConsole.cs b/Tiles/DraedonStructures/AgedLaboratoryConsole.cs index 22f0d08a03..abaf13d9fa 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryConsole.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryConsole.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs b/Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs index 0b6431f9a5..0cc14fdb8a 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs @@ -21,6 +21,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs b/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs index 1779b0de16..46994b7a6a 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.Origin = new Point16(0, 2); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Aged Display"); diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs index c139d4e2b6..88c6d4d7fe 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs index eca57a5ad0..ed8985c7e6 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); diff --git a/Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs b/Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs index 691e6e0774..9ea513cbed 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs @@ -20,6 +20,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/AgedLaboratoryScreen.cs b/Tiles/DraedonStructures/AgedLaboratoryScreen.cs index f2f8128850..4db2a1c1fd 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryScreen.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryScreen.cs @@ -16,6 +16,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall); TileObjectData.newTile.Height = 2; TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 }; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); diff --git a/Tiles/DraedonStructures/AgedLaboratoryServer.cs b/Tiles/DraedonStructures/AgedLaboratoryServer.cs index b375bf41dd..d1afbd35ec 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryServer.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryServer.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/AgedLaboratoryTerminal.cs b/Tiles/DraedonStructures/AgedLaboratoryTerminal.cs index c7df781b40..1bc8b5d738 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryTerminal.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryTerminal.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.Origin = new Point16(0, 2); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; diff --git a/Tiles/DraedonStructures/AgedReinforcedCrate.cs b/Tiles/DraedonStructures/AgedReinforcedCrate.cs index 69ee0f8e4c..664e89a983 100644 --- a/Tiles/DraedonStructures/AgedReinforcedCrate.cs +++ b/Tiles/DraedonStructures/AgedReinforcedCrate.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Tiles.DraedonStructures Main.tileWaterDeath[Type] = false; Main.tileSolidTop[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Aged Reinforced Crate"); diff --git a/Tiles/DraedonStructures/LaboratoryConsole.cs b/Tiles/DraedonStructures/LaboratoryConsole.cs index 1c736617ab..7e54a2e199 100644 --- a/Tiles/DraedonStructures/LaboratoryConsole.cs +++ b/Tiles/DraedonStructures/LaboratoryConsole.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryContainmentBox.cs b/Tiles/DraedonStructures/LaboratoryContainmentBox.cs index 1f45fc75e4..d1e965e5c9 100644 --- a/Tiles/DraedonStructures/LaboratoryContainmentBox.cs +++ b/Tiles/DraedonStructures/LaboratoryContainmentBox.cs @@ -21,6 +21,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryDisplay.cs b/Tiles/DraedonStructures/LaboratoryDisplay.cs index 9ba470b74e..6342b43c0c 100644 --- a/Tiles/DraedonStructures/LaboratoryDisplay.cs +++ b/Tiles/DraedonStructures/LaboratoryDisplay.cs @@ -27,6 +27,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryDoorClosed.cs b/Tiles/DraedonStructures/LaboratoryDoorClosed.cs index f20f8aed5e..170cac3fe9 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorClosed.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorClosed.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); diff --git a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs index c76e46273b..cffc7aa927 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); diff --git a/Tiles/DraedonStructures/LaboratoryElectricPanel.cs b/Tiles/DraedonStructures/LaboratoryElectricPanel.cs index 9b0766683a..d740674727 100644 --- a/Tiles/DraedonStructures/LaboratoryElectricPanel.cs +++ b/Tiles/DraedonStructures/LaboratoryElectricPanel.cs @@ -20,6 +20,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryScreen.cs b/Tiles/DraedonStructures/LaboratoryScreen.cs index 9ad3fe319f..ea46eb46c8 100644 --- a/Tiles/DraedonStructures/LaboratoryScreen.cs +++ b/Tiles/DraedonStructures/LaboratoryScreen.cs @@ -17,6 +17,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall); TileObjectData.newTile.Height = 2; TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 }; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); diff --git a/Tiles/DraedonStructures/LaboratoryServer.cs b/Tiles/DraedonStructures/LaboratoryServer.cs index 1a8a22318c..8c13fe72e8 100644 --- a/Tiles/DraedonStructures/LaboratoryServer.cs +++ b/Tiles/DraedonStructures/LaboratoryServer.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryTerminal.cs b/Tiles/DraedonStructures/LaboratoryTerminal.cs index 13a4f07d8f..508f6cdb3e 100644 --- a/Tiles/DraedonStructures/LaboratoryTerminal.cs +++ b/Tiles/DraedonStructures/LaboratoryTerminal.cs @@ -27,6 +27,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/ReinforcedCrate.cs b/Tiles/DraedonStructures/ReinforcedCrate.cs index 6145962191..91c0308eb7 100644 --- a/Tiles/DraedonStructures/ReinforcedCrate.cs +++ b/Tiles/DraedonStructures/ReinforcedCrate.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Tiles.DraedonStructures Main.tileWaterDeath[Type] = false; Main.tileSolidTop[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Reinforced Crate"); diff --git a/Tiles/DraedonTurretTile.cs b/Tiles/DraedonTurretTile.cs index b8d0a418fc..35e2511263 100644 --- a/Tiles/DraedonTurretTile.cs +++ b/Tiles/DraedonTurretTile.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles Main.tileWaterDeath[Type] = false; TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Turret"); diff --git a/Tiles/InactiveDraedonFuelFactory.cs b/Tiles/InactiveDraedonFuelFactory.cs index 67477ff459..4bc88085ea 100644 --- a/Tiles/InactiveDraedonFuelFactory.cs +++ b/Tiles/InactiveDraedonFuelFactory.cs @@ -25,6 +25,7 @@ namespace CalamityMod.Tiles TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; TileObjectData.newTile.CoordinatePadding = 0; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Inactive Fuel Factory"); diff --git a/Tiles/MonsterBanner.png b/Tiles/MonsterBanner.png index c458c2b7fa..245ab5fbc8 100644 Binary files a/Tiles/MonsterBanner.png and b/Tiles/MonsterBanner.png differ diff --git a/World/DraedonStructures.cs b/World/DraedonStructures.cs index 7c6315ff6c..0daede3649 100644 --- a/World/DraedonStructures.cs +++ b/World/DraedonStructures.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.DraedonMisc; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Schematics; using CalamityMod.Tiles; @@ -188,6 +189,7 @@ namespace CalamityMod.World { new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(8, 14 + 1)), new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(7, 12 + 1)), + new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(2, 3 + 1)), new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)), new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)), new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)), @@ -260,6 +262,7 @@ namespace CalamityMod.World { new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(8, 14 + 1)), new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(7, 12 + 1)), + new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(2, 3 + 1)), new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)), new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)), new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)), @@ -327,6 +330,7 @@ namespace CalamityMod.World { new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(8, 14 + 1)), new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(7, 12 + 1)), + new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(2, 3 + 1)), new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)), new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)), new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)), @@ -409,6 +413,7 @@ namespace CalamityMod.World { new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(8, 14 + 1)), new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(7, 12 + 1)), + new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(2, 3 + 1)), new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)), new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)), new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)), @@ -487,6 +492,7 @@ namespace CalamityMod.World { new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(8, 14 + 1)), new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(7, 12 + 1)), + new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(2, 3 + 1)), new ChestItem(ItemID.HerbBag, WorldGen.genRand.Next(12, 17 + 1)), new ChestItem(ItemID.CorruptPlanterBox, WorldGen.genRand.Next(5, 9 + 1)), new ChestItem(ItemID.DayBloomPlanterBox, WorldGen.genRand.Next(5, 9 + 1)),