From 418f913e38ea3254ecbf8a82b97beb14c014f9bd Mon Sep 17 00:00:00 2001 From: DominicKarma <51094361+DominicKarma@users.noreply.github.com> Date: Wed, 6 Apr 2022 17:04:40 -0500 Subject: [PATCH] Bunch of tile fixes --- Items/CalamityGlobalItemLoot.cs | 1 - Tiles/AstralDesert/AstralPalmSapling.cs | 3 +-- Tiles/AstralDesert/AstralPalmTree.cs | 6 +++--- Tiles/AstralDesert/AstralSand.cs | 12 +++++------- Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs | 2 +- Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs | 2 +- Tiles/DraedonStructures/DraedonLabTurret.cs | 2 +- Tiles/DraedonStructures/LaboratoryDoorClosed.cs | 2 +- Tiles/DraedonStructures/LaboratoryDoorOpen.cs | 2 +- Tiles/FurnitureAbyss/AbyssBed.cs | 1 - Tiles/FurnitureAbyss/AbyssDoorClosed.cs | 2 +- Tiles/FurnitureAbyss/AbyssDoorOpen.cs | 2 +- Tiles/FurnitureAcidwood/AcidwoodBedTile.cs | 1 - Tiles/FurnitureAcidwood/AcidwoodDoorClosed.cs | 2 +- Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs | 2 +- Tiles/FurnitureAncient/AncientBed.cs | 3 +-- Tiles/FurnitureAncient/AncientDoorClosed.cs | 2 +- Tiles/FurnitureAncient/AncientDoorOpen.cs | 2 +- Tiles/FurnitureAshen/AshenBed.cs | 3 +-- Tiles/FurnitureAshen/AshenDoorClosed.cs | 2 +- Tiles/FurnitureAshen/AshenDoorOpen.cs | 2 +- Tiles/FurnitureAstral/MonolithBathtub.cs | 2 +- Tiles/FurnitureAstral/MonolithBed.cs | 3 +-- Tiles/FurnitureAstral/MonolithBench.cs | 2 +- Tiles/FurnitureAstral/MonolithBookcase.cs | 2 +- Tiles/FurnitureAstral/MonolithCandelabra.cs | 4 ++-- Tiles/FurnitureAstral/MonolithCandle.cs | 6 +++--- Tiles/FurnitureAstral/MonolithChair.cs | 2 +- Tiles/FurnitureAstral/MonolithChandelier.cs | 4 ++-- Tiles/FurnitureAstral/MonolithChest.cs | 2 +- Tiles/FurnitureAstral/MonolithClock.cs | 2 +- Tiles/FurnitureAstral/MonolithDoorClosed.cs | 4 ++-- Tiles/FurnitureAstral/MonolithDoorOpen.cs | 4 ++-- Tiles/FurnitureAstral/MonolithDresser.cs | 8 ++++---- Tiles/FurnitureAstral/MonolithLamp.cs | 4 ++-- Tiles/FurnitureAstral/MonolithLantern.cs | 4 ++-- Tiles/FurnitureAstral/MonolithPiano.cs | 2 +- Tiles/FurnitureAstral/MonolithSink.cs | 2 +- Tiles/FurnitureAstral/MonolithTable.cs | 2 +- Tiles/FurnitureAstral/MonolithWorkbench.cs | 2 +- Tiles/FurnitureBotanic/BotanicBed.cs | 1 - Tiles/FurnitureBotanic/BotanicDoorClosed.cs | 2 +- Tiles/FurnitureBotanic/BotanicDoorOpen.cs | 2 +- Tiles/FurnitureCosmilite/CosmiliteBed.cs | 1 - Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs | 2 +- Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs | 2 +- Tiles/FurnitureEutrophic/EutrophicBed.cs | 1 - Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs | 2 +- Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs | 2 +- Tiles/FurnitureExo/ExoBedTile.cs | 1 - Tiles/FurnitureExo/ExoDoorClosed.cs | 2 +- Tiles/FurnitureExo/ExoDoorOpen.cs | 2 +- Tiles/FurnitureOccult/OccultBed.cs | 1 - Tiles/FurnitureOccult/OccultDoorClosed.cs | 2 +- Tiles/FurnitureOccult/OccultDoorOpen.cs | 2 +- Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs | 1 - .../FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs | 2 +- Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs | 2 +- Tiles/FurnitureProfaned/ProfanedBed.cs | 1 - Tiles/FurnitureProfaned/ProfanedDoorClosed.cs | 2 +- Tiles/FurnitureProfaned/ProfanedDoorOpen.cs | 2 +- Tiles/FurnitureSilva/SilvaBed.cs | 1 - Tiles/FurnitureSilva/SilvaDoorClosed.cs | 2 +- Tiles/FurnitureSilva/SilvaDoorOpen.cs | 2 +- Tiles/FurnitureStatigel/StatigelBed.cs | 1 - Tiles/FurnitureStatigel/StatigelDoorClosed.cs | 2 +- Tiles/FurnitureStatigel/StatigelDoorOpen.cs | 2 +- Tiles/FurnitureStratus/StratusBed.cs | 1 - Tiles/FurnitureStratus/StratusDoorClosed.cs | 2 +- Tiles/FurnitureStratus/StratusDoorOpen.cs | 2 +- Tiles/FurnitureVoid/VoidBed.cs | 1 - Tiles/FurnitureVoid/VoidDoorClosed.cs | 2 +- Tiles/FurnitureVoid/VoidDoorOpen.cs | 2 +- 73 files changed, 76 insertions(+), 96 deletions(-) diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index 8891833124..53fbe45c7f 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -16,7 +16,6 @@ namespace CalamityMod.Items public class CalamityGlobalItemLoot : GlobalItem { public override bool InstancePerEntity => false; - public override bool CloneNewInstances => false; // NOTE: this function applies to all right-click-to-open items, even modded ones (despite the name). // This means it applies to boss bags, crates, lockboxes, herb bags, goodie bags, and presents. diff --git a/Tiles/AstralDesert/AstralPalmSapling.cs b/Tiles/AstralDesert/AstralPalmSapling.cs index 491f3a7f94..5415fe8841 100644 --- a/Tiles/AstralDesert/AstralPalmSapling.cs +++ b/Tiles/AstralDesert/AstralPalmSapling.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -35,7 +35,6 @@ namespace CalamityMod.Tiles.AstralDesert TileObjectData.newTile.LavaDeath = true; TileObjectData.newTile.RandomStyleRange = 3; TileObjectData.addTile(Type); - sapling = true; ModTranslation name = CreateMapEntryName(); name.SetDefault("Sapling"); AddMapEntry(new Color(200, 200, 200), name); diff --git a/Tiles/AstralDesert/AstralPalmTree.cs b/Tiles/AstralDesert/AstralPalmTree.cs index 2ca33e750c..12681ef988 100644 --- a/Tiles/AstralDesert/AstralPalmTree.cs +++ b/Tiles/AstralDesert/AstralPalmTree.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework.Graphics; using Terraria.ModLoader; namespace CalamityMod.Tiles.AstralDesert @@ -7,12 +7,12 @@ namespace CalamityMod.Tiles.AstralDesert { public override Texture2D GetTexture() { - return ModContent.Request("CalamityMod/Tiles/AstralDesert/AstralPalmTree"); + return ModContent.Request("CalamityMod/Tiles/AstralDesert/AstralPalmTree").Value; } public override Texture2D GetTopTextures() { - return ModContent.Request("CalamityMod/Tiles/AstralDesert/AstralPalmTree_Tops"); + return ModContent.Request("CalamityMod/Tiles/AstralDesert/AstralPalmTree_Tops").Value; } public override int DropWood() diff --git a/Tiles/AstralDesert/AstralSand.cs b/Tiles/AstralDesert/AstralSand.cs index d6453524c5..24b0bb63b3 100644 --- a/Tiles/AstralDesert/AstralSand.cs +++ b/Tiles/AstralDesert/AstralSand.cs @@ -1,9 +1,10 @@ - + using CalamityMod.Projectiles.Typeless; using CalamityMod.Tiles.Astral; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -44,16 +45,13 @@ namespace CalamityMod.Tiles.AstralDesert public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - if (Main.tile[i, j] is null) - return true; - if (j < Main.maxTilesY) { // tile[i, j+1] can still be null if it's on the edge of a chunk - if (Main.tile[i, j + 1] != null && !Main.tile[i, j + 1].HasTile) + if (!Main.tile[i, j + 1].HasTile) { - Main.tile[i, j].active(false); - Projectile.NewProjectile(new Vector2(i * 16f + 8f, j * 16f + 8f), Vector2.Zero, ModContent.ProjectileType(), 15, 0f); + Main.tile[i, j].Get().HasTile = false; + Projectile.NewProjectile(new EntitySource_TileBreak(i, j), new Vector2(i * 16f + 8f, j * 16f + 8f), Vector2.Zero, ModContent.ProjectileType(), 15, 0f); WorldGen.SquareTileFrame(i, j); return false; } diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs index be840aad64..390cbc296c 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; DustType = 8; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool Slope(int i, int j) => false; diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs index 22dc623166..b9d528a7cc 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; DustType = 8; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool Slope(int i, int j) => false; diff --git a/Tiles/DraedonStructures/DraedonLabTurret.cs b/Tiles/DraedonStructures/DraedonLabTurret.cs index 963d94e0d4..88693e5aae 100644 --- a/Tiles/DraedonStructures/DraedonLabTurret.cs +++ b/Tiles/DraedonStructures/DraedonLabTurret.cs @@ -86,7 +86,7 @@ namespace CalamityMod.Tiles.DraedonStructures int drawDirection = te.Direction; Color drawColor = Lighting.GetColor(i, j); - Texture2D tex = ModContent.Request("CalamityMod/Projectiles/DraedonsArsenal/PulseTurret"); + Texture2D tex = ModContent.Request("CalamityMod/Projectiles/DraedonsArsenal/PulseTurret").Value; Vector2 screenOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + screenOffset; drawOffset.Y -= 2f; diff --git a/Tiles/DraedonStructures/LaboratoryDoorClosed.cs b/Tiles/DraedonStructures/LaboratoryDoorClosed.cs index 038fb1b5b7..17678f564e 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorClosed.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorClosed.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; DustType = 8; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool Slope(int i, int j) => false; diff --git a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs index ac3ec7507f..ac98f45f20 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; DustType = 8; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool Slope(int i, int j) => false; diff --git a/Tiles/FurnitureAbyss/AbyssBed.cs b/Tiles/FurnitureAbyss/AbyssBed.cs index a7c2cb12d0..5c85937788 100644 --- a/Tiles/FurnitureAbyss/AbyssBed.cs +++ b/Tiles/FurnitureAbyss/AbyssBed.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAbyss/AbyssDoorClosed.cs b/Tiles/FurnitureAbyss/AbyssDoorClosed.cs index e22b2482ce..4a104181b2 100644 --- a/Tiles/FurnitureAbyss/AbyssDoorClosed.cs +++ b/Tiles/FurnitureAbyss/AbyssDoorClosed.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAbyss/AbyssDoorOpen.cs b/Tiles/FurnitureAbyss/AbyssDoorOpen.cs index 183e7454f1..e186908843 100644 --- a/Tiles/FurnitureAbyss/AbyssDoorOpen.cs +++ b/Tiles/FurnitureAbyss/AbyssDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAcidwood/AcidwoodBedTile.cs b/Tiles/FurnitureAcidwood/AcidwoodBedTile.cs index 338595bdbc..ca69e359b3 100644 --- a/Tiles/FurnitureAcidwood/AcidwoodBedTile.cs +++ b/Tiles/FurnitureAcidwood/AcidwoodBedTile.cs @@ -18,7 +18,6 @@ namespace CalamityMod.Tiles.FurnitureAcidwood AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAcidwood/AcidwoodDoorClosed.cs b/Tiles/FurnitureAcidwood/AcidwoodDoorClosed.cs index 72e346e957..2939d2a5ed 100644 --- a/Tiles/FurnitureAcidwood/AcidwoodDoorClosed.cs +++ b/Tiles/FurnitureAcidwood/AcidwoodDoorClosed.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs b/Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs index 1c2470323d..4b93d0edb6 100644 --- a/Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs +++ b/Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAncient/AncientBed.cs b/Tiles/FurnitureAncient/AncientBed.cs index 53e148c366..88db57fe6b 100644 --- a/Tiles/FurnitureAncient/AncientBed.cs +++ b/Tiles/FurnitureAncient/AncientBed.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.GameContent.ObjectInteractions; @@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureAncient AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAncient/AncientDoorClosed.cs b/Tiles/FurnitureAncient/AncientDoorClosed.cs index 92f68def85..cc4c99abf7 100644 --- a/Tiles/FurnitureAncient/AncientDoorClosed.cs +++ b/Tiles/FurnitureAncient/AncientDoorClosed.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureAncient AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAncient/AncientDoorOpen.cs b/Tiles/FurnitureAncient/AncientDoorOpen.cs index 7bcb715b80..b77791dcb0 100644 --- a/Tiles/FurnitureAncient/AncientDoorOpen.cs +++ b/Tiles/FurnitureAncient/AncientDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureAncient AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAshen/AshenBed.cs b/Tiles/FurnitureAshen/AshenBed.cs index 39b0d578d7..d688424f0e 100644 --- a/Tiles/FurnitureAshen/AshenBed.cs +++ b/Tiles/FurnitureAshen/AshenBed.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.GameContent.ObjectInteractions; @@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureAshen AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAshen/AshenDoorClosed.cs b/Tiles/FurnitureAshen/AshenDoorClosed.cs index c11a3e0bdf..193fce147c 100644 --- a/Tiles/FurnitureAshen/AshenDoorClosed.cs +++ b/Tiles/FurnitureAshen/AshenDoorClosed.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureAshen AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAshen/AshenDoorOpen.cs b/Tiles/FurnitureAshen/AshenDoorOpen.cs index 960e0ddec7..df035ef21a 100644 --- a/Tiles/FurnitureAshen/AshenDoorOpen.cs +++ b/Tiles/FurnitureAshen/AshenDoorOpen.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureAshen AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAstral/MonolithBathtub.cs b/Tiles/FurnitureAstral/MonolithBathtub.cs index f382a9ffae..713bc4bb9e 100644 --- a/Tiles/FurnitureAstral/MonolithBathtub.cs +++ b/Tiles/FurnitureAstral/MonolithBathtub.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithBathtubGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithBathtubGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithBed.cs b/Tiles/FurnitureAstral/MonolithBed.cs index 6750e60b1c..bfaa48fe13 100644 --- a/Tiles/FurnitureAstral/MonolithBed.cs +++ b/Tiles/FurnitureAstral/MonolithBed.cs @@ -19,7 +19,6 @@ namespace CalamityMod.Tiles.FurnitureAstral AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) @@ -37,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithBedGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithBedGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithBench.cs b/Tiles/FurnitureAstral/MonolithBench.cs index 01b21b51df..e22e84ec06 100644 --- a/Tiles/FurnitureAstral/MonolithBench.cs +++ b/Tiles/FurnitureAstral/MonolithBench.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithBenchGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithBenchGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithBookcase.cs b/Tiles/FurnitureAstral/MonolithBookcase.cs index a7463e918d..c8e479783e 100644 --- a/Tiles/FurnitureAstral/MonolithBookcase.cs +++ b/Tiles/FurnitureAstral/MonolithBookcase.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithBookcaseGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithBookcaseGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithCandelabra.cs b/Tiles/FurnitureAstral/MonolithCandelabra.cs index 0d5c6aefa6..10bc4fcce7 100644 --- a/Tiles/FurnitureAstral/MonolithCandelabra.cs +++ b/Tiles/FurnitureAstral/MonolithCandelabra.cs @@ -35,13 +35,13 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithCandelabraGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithCandelabraGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); - Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithCandelabraFlame"); + Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithCandelabraFlame").Value; Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); } diff --git a/Tiles/FurnitureAstral/MonolithCandle.cs b/Tiles/FurnitureAstral/MonolithCandle.cs index 594ac35656..85db298af3 100644 --- a/Tiles/FurnitureAstral/MonolithCandle.cs +++ b/Tiles/FurnitureAstral/MonolithCandle.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -35,13 +35,13 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithCandleGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithCandleGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y - 4) + zero; Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 20)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); - Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithCandleFlame"); + Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithCandleFlame").Value; Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 20)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); } diff --git a/Tiles/FurnitureAstral/MonolithChair.cs b/Tiles/FurnitureAstral/MonolithChair.cs index fa289150f1..a56db98c49 100644 --- a/Tiles/FurnitureAstral/MonolithChair.cs +++ b/Tiles/FurnitureAstral/MonolithChair.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithChairGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithChairGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithChandelier.cs b/Tiles/FurnitureAstral/MonolithChandelier.cs index 4e5fdcb6d7..3d6115c951 100644 --- a/Tiles/FurnitureAstral/MonolithChandelier.cs +++ b/Tiles/FurnitureAstral/MonolithChandelier.cs @@ -33,13 +33,13 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithChandelierGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithChandelierGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); - Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithChandelierFlame"); + Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithChandelierFlame").Value; Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); } diff --git a/Tiles/FurnitureAstral/MonolithChest.cs b/Tiles/FurnitureAstral/MonolithChest.cs index 0f9f2a5c06..2c5a3c4ac3 100644 --- a/Tiles/FurnitureAstral/MonolithChest.cs +++ b/Tiles/FurnitureAstral/MonolithChest.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithChestGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithChestGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithClock.cs b/Tiles/FurnitureAstral/MonolithClock.cs index e61aeb7a35..13d095cb02 100644 --- a/Tiles/FurnitureAstral/MonolithClock.cs +++ b/Tiles/FurnitureAstral/MonolithClock.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithClockGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithClockGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithDoorClosed.cs b/Tiles/FurnitureAstral/MonolithDoorClosed.cs index 5dd93d28c8..65a46155b0 100644 --- a/Tiles/FurnitureAstral/MonolithDoorClosed.cs +++ b/Tiles/FurnitureAstral/MonolithDoorClosed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles.FurnitureAstral AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithDoorClosedGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithDoorClosedGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithDoorOpen.cs b/Tiles/FurnitureAstral/MonolithDoorOpen.cs index 063f68baa2..f0f64f980c 100644 --- a/Tiles/FurnitureAstral/MonolithDoorOpen.cs +++ b/Tiles/FurnitureAstral/MonolithDoorOpen.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles.FurnitureAstral AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithDoorOpenGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithDoorOpenGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithDresser.cs b/Tiles/FurnitureAstral/MonolithDresser.cs index 101454280d..c328e83bfa 100644 --- a/Tiles/FurnitureAstral/MonolithDresser.cs +++ b/Tiles/FurnitureAstral/MonolithDresser.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.FurnitureAstral AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Dressers }; - dresser = "Monolith Dresser"; + ContainerName.SetDefault("Monolith Dresser"); DresserDrop = ModContent.ItemType(); } @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithDresserGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithDresserGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; @@ -62,12 +62,12 @@ namespace CalamityMod.Tiles.FurnitureAstral public override void MouseOverFar(int i, int j) { - CalamityUtils.DresserMouseFar(chest); + CalamityUtils.DresserMouseFar(ContainerName.GetDefault()); } public override void MouseOver(int i, int j) { - CalamityUtils.DresserMouseOver(chest); + CalamityUtils.DresserMouseOver(ContainerName.GetDefault()); } public override void NumDust(int i, int j, bool fail, ref int num) diff --git a/Tiles/FurnitureAstral/MonolithLamp.cs b/Tiles/FurnitureAstral/MonolithLamp.cs index b311cd0127..719e640aeb 100644 --- a/Tiles/FurnitureAstral/MonolithLamp.cs +++ b/Tiles/FurnitureAstral/MonolithLamp.cs @@ -40,13 +40,13 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithLampGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithLampGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); - Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithLampFlame"); + Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithLampFlame").Value; Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); } diff --git a/Tiles/FurnitureAstral/MonolithLantern.cs b/Tiles/FurnitureAstral/MonolithLantern.cs index 7e9be7a254..5fcb65a2f6 100644 --- a/Tiles/FurnitureAstral/MonolithLantern.cs +++ b/Tiles/FurnitureAstral/MonolithLantern.cs @@ -35,13 +35,13 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithLanternGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithLanternGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); - Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithLanternFlame"); + Texture2D glowmaskBright = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithLanternFlame").Value; Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); } diff --git a/Tiles/FurnitureAstral/MonolithPiano.cs b/Tiles/FurnitureAstral/MonolithPiano.cs index c7727f3f89..9d6618afd4 100644 --- a/Tiles/FurnitureAstral/MonolithPiano.cs +++ b/Tiles/FurnitureAstral/MonolithPiano.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithPianoGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithPianoGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithSink.cs b/Tiles/FurnitureAstral/MonolithSink.cs index 97321fa6dc..6ba93bdc5e 100644 --- a/Tiles/FurnitureAstral/MonolithSink.cs +++ b/Tiles/FurnitureAstral/MonolithSink.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithSinkGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithSinkGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithTable.cs b/Tiles/FurnitureAstral/MonolithTable.cs index a7014805ff..c504e6f34a 100644 --- a/Tiles/FurnitureAstral/MonolithTable.cs +++ b/Tiles/FurnitureAstral/MonolithTable.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithTableGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithTableGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureAstral/MonolithWorkbench.cs b/Tiles/FurnitureAstral/MonolithWorkbench.cs index f53a2e5785..9f5913c76d 100644 --- a/Tiles/FurnitureAstral/MonolithWorkbench.cs +++ b/Tiles/FurnitureAstral/MonolithWorkbench.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { int xPos = Main.tile[i, j].TileFrameX; int yPos = Main.tile[i, j].TileFrameY; - Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithWorkBenchGlow"); + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAstral/MonolithWorkBenchGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100)); Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; diff --git a/Tiles/FurnitureBotanic/BotanicBed.cs b/Tiles/FurnitureBotanic/BotanicBed.cs index 76d192f5ab..d42ef68a74 100644 --- a/Tiles/FurnitureBotanic/BotanicBed.cs +++ b/Tiles/FurnitureBotanic/BotanicBed.cs @@ -18,7 +18,6 @@ namespace CalamityMod.Tiles.FurnitureBotanic AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureBotanic/BotanicDoorClosed.cs b/Tiles/FurnitureBotanic/BotanicDoorClosed.cs index ee6b23bef9..d7de878ef7 100644 --- a/Tiles/FurnitureBotanic/BotanicDoorClosed.cs +++ b/Tiles/FurnitureBotanic/BotanicDoorClosed.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureBotanic/BotanicDoorOpen.cs b/Tiles/FurnitureBotanic/BotanicDoorOpen.cs index 365ca27100..40a6a970e1 100644 --- a/Tiles/FurnitureBotanic/BotanicDoorOpen.cs +++ b/Tiles/FurnitureBotanic/BotanicDoorOpen.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureCosmilite/CosmiliteBed.cs b/Tiles/FurnitureCosmilite/CosmiliteBed.cs index 27098e7e50..b6f554c31e 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteBed.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteBed.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureCosmilite AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs b/Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs index 9a512540f2..506767b8d4 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs b/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs index 5924901078..e4b7959e8b 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureEutrophic/EutrophicBed.cs b/Tiles/FurnitureEutrophic/EutrophicBed.cs index f6d02c3deb..25a03c95b0 100644 --- a/Tiles/FurnitureEutrophic/EutrophicBed.cs +++ b/Tiles/FurnitureEutrophic/EutrophicBed.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureEutrophic AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs b/Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs index 9dc7fb0e58..321efc7341 100644 --- a/Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs +++ b/Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs b/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs index a00e13f4f0..b884355146 100644 --- a/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs +++ b/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureExo/ExoBedTile.cs b/Tiles/FurnitureExo/ExoBedTile.cs index 1f22acee5a..f157dc98b3 100644 --- a/Tiles/FurnitureExo/ExoBedTile.cs +++ b/Tiles/FurnitureExo/ExoBedTile.cs @@ -19,7 +19,6 @@ namespace CalamityMod.Tiles.FurnitureExo AddMapEntry(new Color(71, 95, 114), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CanExplode(int i, int j) => false; diff --git a/Tiles/FurnitureExo/ExoDoorClosed.cs b/Tiles/FurnitureExo/ExoDoorClosed.cs index c3edb12194..2c9c8770de 100644 --- a/Tiles/FurnitureExo/ExoDoorClosed.cs +++ b/Tiles/FurnitureExo/ExoDoorClosed.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurnitureExo TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; DustType = 8; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool Slope(int i, int j) => false; diff --git a/Tiles/FurnitureExo/ExoDoorOpen.cs b/Tiles/FurnitureExo/ExoDoorOpen.cs index 52d92f0e9f..1555da915c 100644 --- a/Tiles/FurnitureExo/ExoDoorOpen.cs +++ b/Tiles/FurnitureExo/ExoDoorOpen.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurnitureExo TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; DustType = 8; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool Slope(int i, int j) => false; diff --git a/Tiles/FurnitureOccult/OccultBed.cs b/Tiles/FurnitureOccult/OccultBed.cs index 6a0931fb9b..33abab1785 100644 --- a/Tiles/FurnitureOccult/OccultBed.cs +++ b/Tiles/FurnitureOccult/OccultBed.cs @@ -18,7 +18,6 @@ namespace CalamityMod.Tiles.FurnitureOccult AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureOccult/OccultDoorClosed.cs b/Tiles/FurnitureOccult/OccultDoorClosed.cs index 3fe20e8634..e039d3ba25 100644 --- a/Tiles/FurnitureOccult/OccultDoorClosed.cs +++ b/Tiles/FurnitureOccult/OccultDoorClosed.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureOccult AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureOccult/OccultDoorOpen.cs b/Tiles/FurnitureOccult/OccultDoorOpen.cs index 7c41525036..619d30302e 100644 --- a/Tiles/FurnitureOccult/OccultDoorOpen.cs +++ b/Tiles/FurnitureOccult/OccultDoorOpen.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureOccult AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs index d4474332af..b19d032239 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs @@ -24,7 +24,6 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair); } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs index 1423dd1e38..810f665b2a 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs index 1d5285db1e..3d4cd1f8e2 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureProfaned/ProfanedBed.cs b/Tiles/FurnitureProfaned/ProfanedBed.cs index b6812841d2..23fc79151a 100644 --- a/Tiles/FurnitureProfaned/ProfanedBed.cs +++ b/Tiles/FurnitureProfaned/ProfanedBed.cs @@ -18,7 +18,6 @@ namespace CalamityMod.Tiles.FurnitureProfaned AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureProfaned/ProfanedDoorClosed.cs b/Tiles/FurnitureProfaned/ProfanedDoorClosed.cs index 45df7dbc92..9e6be50c7b 100644 --- a/Tiles/FurnitureProfaned/ProfanedDoorClosed.cs +++ b/Tiles/FurnitureProfaned/ProfanedDoorClosed.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs b/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs index 26c193c706..b82e3ab781 100644 --- a/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs +++ b/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureSilva/SilvaBed.cs b/Tiles/FurnitureSilva/SilvaBed.cs index 5f67c9131e..e692966e87 100644 --- a/Tiles/FurnitureSilva/SilvaBed.cs +++ b/Tiles/FurnitureSilva/SilvaBed.cs @@ -18,7 +18,6 @@ namespace CalamityMod.Tiles.FurnitureSilva AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureSilva/SilvaDoorClosed.cs b/Tiles/FurnitureSilva/SilvaDoorClosed.cs index 721f5ec0eb..3942b9e18b 100644 --- a/Tiles/FurnitureSilva/SilvaDoorClosed.cs +++ b/Tiles/FurnitureSilva/SilvaDoorClosed.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureSilva AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureSilva/SilvaDoorOpen.cs b/Tiles/FurnitureSilva/SilvaDoorOpen.cs index 8d8f6fee71..d95c065c4c 100644 --- a/Tiles/FurnitureSilva/SilvaDoorOpen.cs +++ b/Tiles/FurnitureSilva/SilvaDoorOpen.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureSilva AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureStatigel/StatigelBed.cs b/Tiles/FurnitureStatigel/StatigelBed.cs index 7e3570a220..dee6198311 100644 --- a/Tiles/FurnitureStatigel/StatigelBed.cs +++ b/Tiles/FurnitureStatigel/StatigelBed.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureStatigel AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureStatigel/StatigelDoorClosed.cs b/Tiles/FurnitureStatigel/StatigelDoorClosed.cs index 2216ee42d6..f5fd9b5d75 100644 --- a/Tiles/FurnitureStatigel/StatigelDoorClosed.cs +++ b/Tiles/FurnitureStatigel/StatigelDoorClosed.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureStatigel/StatigelDoorOpen.cs b/Tiles/FurnitureStatigel/StatigelDoorOpen.cs index 36bbfffe72..febbf25310 100644 --- a/Tiles/FurnitureStatigel/StatigelDoorOpen.cs +++ b/Tiles/FurnitureStatigel/StatigelDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureStratus/StratusBed.cs b/Tiles/FurnitureStratus/StratusBed.cs index 4a7435ee62..ee062a690d 100644 --- a/Tiles/FurnitureStratus/StratusBed.cs +++ b/Tiles/FurnitureStratus/StratusBed.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureStratus AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureStratus/StratusDoorClosed.cs b/Tiles/FurnitureStratus/StratusDoorClosed.cs index 51fef24788..b722ed19c3 100644 --- a/Tiles/FurnitureStratus/StratusDoorClosed.cs +++ b/Tiles/FurnitureStratus/StratusDoorClosed.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureStratus AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureStratus/StratusDoorOpen.cs b/Tiles/FurnitureStratus/StratusDoorOpen.cs index 72df9f0c51..aa85753f15 100644 --- a/Tiles/FurnitureStratus/StratusDoorOpen.cs +++ b/Tiles/FurnitureStratus/StratusDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureStratus AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureVoid/VoidBed.cs b/Tiles/FurnitureVoid/VoidBed.cs index b9c1f7c9c1..18522fe05a 100644 --- a/Tiles/FurnitureVoid/VoidBed.cs +++ b/Tiles/FurnitureVoid/VoidBed.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureVoid AddMapEntry(new Color(191, 142, 111), name); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.Beds }; - bed = true; } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureVoid/VoidDoorClosed.cs b/Tiles/FurnitureVoid/VoidDoorClosed.cs index 3b6f16c518..c51520c493 100644 --- a/Tiles/FurnitureVoid/VoidDoorClosed.cs +++ b/Tiles/FurnitureVoid/VoidDoorClosed.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureVoid AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = ModContent.TileType(); + OpenDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureVoid/VoidDoorOpen.cs b/Tiles/FurnitureVoid/VoidDoorOpen.cs index eed0cbac48..8b3c26fccc 100644 --- a/Tiles/FurnitureVoid/VoidDoorOpen.cs +++ b/Tiles/FurnitureVoid/VoidDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureVoid AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Door")); TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = ModContent.TileType(); + CloseDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type)