From caaa598b73c613efd8d82cd6f7225eef32c6ed96 Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Tue, 21 Jul 2020 21:50:13 -0500 Subject: [PATCH] 1 - Added a region. 2 - Fixed an issue in TilePlacementHelpers.cs where oldWalls was declared twice and causing an error. --- NPCs/CalamityGlobalNPC.cs | 2 ++ Schematics/TilePlacementHelpers.cs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 3ec1e0003d..a3dad836ab 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -5667,6 +5667,7 @@ namespace CalamityMod.NPCs } #endregion + #region Buff Town NPC public override void BuffTownNPC(ref float damageMult, ref int defense) { if (NPC.downedMoonlord) @@ -5700,6 +5701,7 @@ namespace CalamityMod.NPCs defense += 20; } } + #endregion #region Shop Stuff public override void SetupShop(int type, Chest shop, ref int nextSlot) diff --git a/Schematics/TilePlacementHelpers.cs b/Schematics/TilePlacementHelpers.cs index 2d2c4b69ba..16e683b2f9 100644 --- a/Schematics/TilePlacementHelpers.cs +++ b/Schematics/TilePlacementHelpers.cs @@ -32,7 +32,6 @@ namespace CalamityMod.Schematics { PilePlacementMaps.TryGetValue(mapKey, out PilePlacementFunction pilePlacementFunction); Tile[,] tiles = TileMaps[mapKey]; - ushort[,] oldWalls = new ushort[tiles.GetLength(0), tiles.GetLength(1)]; int xOffset = placementPosition.X; int yOffset = placementPosition.Y; // Top-left is the default for terraria. There is no need to include it in this switch.