diff --git a/Items/Placeables/EutrophicSand.png b/Items/Placeables/EutrophicSand.png index 2a2a517f1e..7c24e485a2 100644 Binary files a/Items/Placeables/EutrophicSand.png and b/Items/Placeables/EutrophicSand.png differ diff --git a/Items/Placeables/Navystone.png b/Items/Placeables/Navystone.png index 12fccc4cfa..03a2f5e8b3 100644 Binary files a/Items/Placeables/Navystone.png and b/Items/Placeables/Navystone.png differ diff --git a/Items/Placeables/PrismShard.png b/Items/Placeables/PrismShard.png index 4c93ed9a69..33d68d8d48 100644 Binary files a/Items/Placeables/PrismShard.png and b/Items/Placeables/PrismShard.png differ diff --git a/Items/Placeables/SeaPrism.png b/Items/Placeables/SeaPrism.png index f9ca3762ce..9d7833e531 100644 Binary files a/Items/Placeables/SeaPrism.png and b/Items/Placeables/SeaPrism.png differ diff --git a/Items/Placeables/SeaPrismBrick.cs b/Items/Placeables/SeaPrismBrick.cs new file mode 100644 index 0000000000..6f6f10905c --- /dev/null +++ b/Items/Placeables/SeaPrismBrick.cs @@ -0,0 +1,39 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class SeaPrismBrick : ModItem + { + public override void SetStaticDefaults() + { + SacrificeTotal = 100; + DisplayName.SetDefault("Sea Prism Brick"); + } + + public override void SetDefaults() + { + Item.createTile = ModContent.TileType(); + Item.width = 12; + Item.height = 12; + Item.maxStack = 999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.rare = ItemRarityID.Green; + } + + public override void AddRecipes() + { + CreateRecipe(25). + AddRecipeGroup("AnyStoneBlock", 25). + AddIngredient(). + AddTile(TileID.Furnaces). + Register(); + } + } +} diff --git a/Items/Placeables/SeaPrismBrick.png b/Items/Placeables/SeaPrismBrick.png new file mode 100644 index 0000000000..c95aecad83 Binary files /dev/null and b/Items/Placeables/SeaPrismBrick.png differ diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 4cc5727940..0fb4ad3370 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -131,6 +131,7 @@ namespace CalamityMod.NPCs private static readonly string[] NurseNames = { "Farsni", + "Fanny", // <@!799749125720637460> (zombiewolf511#4581) }; private static readonly string[] PainterNames = { diff --git a/Tiles/SunkenSea/EutrophicSand.cs b/Tiles/SunkenSea/EutrophicSand.cs index 15603878d9..599d82ca79 100644 --- a/Tiles/SunkenSea/EutrophicSand.cs +++ b/Tiles/SunkenSea/EutrophicSand.cs @@ -14,6 +14,10 @@ namespace CalamityMod.Tiles.SunkenSea CalamityUtils.MergeWithGeneral(Type); CalamityUtils.MergeWithDesert(Type); + CalamityUtils.SetMerge(Type, ModContent.TileType()); + + Main.tileShine[Type] = 650; + Main.tileShine2[Type] = true; TileID.Sets.ChecksForMerge[Type] = true; TileID.Sets.CanBeDugByShovel[Type] = true; @@ -33,8 +37,7 @@ namespace CalamityMod.Tiles.SunkenSea public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - TileFraming.CustomMergeFrame(i, j, Type, TileID.Sandstone); - return false; + return TileFraming.BrimstoneFraming(i, j, resetFrame); } } } diff --git a/Tiles/SunkenSea/EutrophicSand.png b/Tiles/SunkenSea/EutrophicSand.png index 7743c95a6e..4dedca4989 100644 Binary files a/Tiles/SunkenSea/EutrophicSand.png and b/Tiles/SunkenSea/EutrophicSand.png differ diff --git a/Tiles/SunkenSea/Navystone.cs b/Tiles/SunkenSea/Navystone.cs index 954fd71546..d85108d24c 100644 --- a/Tiles/SunkenSea/Navystone.cs +++ b/Tiles/SunkenSea/Navystone.cs @@ -14,6 +14,7 @@ namespace CalamityMod.Tiles.SunkenSea CalamityUtils.MergeWithGeneral(Type); CalamityUtils.MergeWithDesert(Type); + CalamityUtils.SetMerge(Type, ModContent.TileType()); TileID.Sets.ChecksForMerge[Type] = true; DustType = 96; @@ -32,8 +33,7 @@ namespace CalamityMod.Tiles.SunkenSea public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType()); - return false; + return TileFraming.BrimstoneFraming(i, j, resetFrame); } } } diff --git a/Tiles/SunkenSea/Navystone.png b/Tiles/SunkenSea/Navystone.png index c8d67b12a2..e72385a27b 100644 Binary files a/Tiles/SunkenSea/Navystone.png and b/Tiles/SunkenSea/Navystone.png differ diff --git a/Tiles/SunkenSea/SeaPrism.cs b/Tiles/SunkenSea/SeaPrism.cs index cd44ce3479..f3cd0f7d34 100644 --- a/Tiles/SunkenSea/SeaPrism.cs +++ b/Tiles/SunkenSea/SeaPrism.cs @@ -5,8 +5,11 @@ using Terraria.ModLoader; namespace CalamityMod.Tiles.SunkenSea { + public class SeaPrism : ModTile { + private const short subsheetWidth = 450; + private const short subsheetHeight = 270; public override void SetStaticDefaults() { Main.tileSolid[Type] = true; @@ -15,6 +18,9 @@ namespace CalamityMod.Tiles.SunkenSea CalamityUtils.MergeWithGeneral(Type); CalamityUtils.MergeWithDesert(Type); + Main.tileShine[Type] = 3500; + Main.tileShine2[Type] = true; + TileID.Sets.ChecksForMerge[Type] = true; DustType = 33; ItemDrop = ModContent.ItemType(); @@ -31,11 +37,15 @@ namespace CalamityMod.Tiles.SunkenSea { num = fail ? 1 : 3; } + public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset) + { + frameXOffset = i % 2 * subsheetWidth; + frameYOffset = j % 2 * subsheetHeight; + } public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); - return false; + return TileFraming.BrimstoneFraming(i, j, resetFrame); } } } diff --git a/Tiles/SunkenSea/SeaPrism.png b/Tiles/SunkenSea/SeaPrism.png index aea69ab4af..7eed62b890 100644 Binary files a/Tiles/SunkenSea/SeaPrism.png and b/Tiles/SunkenSea/SeaPrism.png differ diff --git a/Tiles/SunkenSea/SeaPrismBrick.cs b/Tiles/SunkenSea/SeaPrismBrick.cs new file mode 100644 index 0000000000..15d657a7a1 --- /dev/null +++ b/Tiles/SunkenSea/SeaPrismBrick.cs @@ -0,0 +1,51 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.SunkenSea +{ + + public class SeaPrismBrick : ModTile + { + private static int sheetWidth = 216; + private static int sheetHeight = 72; + public override void SetStaticDefaults() + { + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = true; + CalamityUtils.MergeWithGeneral(Type); + Main.tileShine[Type] = 3500; + Main.tileShine2[Type] = true; + + TileID.Sets.ChecksForMerge[Type] = true; + DustType = 33; + ItemDrop = ModContent.ItemType(); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Sea Prism Brick"); + AddMapEntry(new Color(47, 193, 236), name); + MineResist = 3f; + HitSound = SoundID.Tink; + Main.tileSpelunker[Type] = true; + MinPick = 55; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset) + { + int xPos = i % 3; + int yPos = j % 3; + frameXOffset = xPos * sheetWidth; + frameYOffset = yPos * sheetHeight; + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + TileFraming.CompactFraming(i, j, resetFrame); + return false; + } + } +} diff --git a/Tiles/SunkenSea/SeaPrismBrick.png b/Tiles/SunkenSea/SeaPrismBrick.png new file mode 100644 index 0000000000..d3a1947126 Binary files /dev/null and b/Tiles/SunkenSea/SeaPrismBrick.png differ diff --git a/Tiles/SunkenSea/SeaPrismCrystals.cs b/Tiles/SunkenSea/SeaPrismCrystals.cs index 19f556eba6..466c3508bf 100644 --- a/Tiles/SunkenSea/SeaPrismCrystals.cs +++ b/Tiles/SunkenSea/SeaPrismCrystals.cs @@ -32,9 +32,35 @@ namespace CalamityMod.Tiles.SunkenSea public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) { - r = 0.2f; - g = 0.5f; - b = 0.5f; + var tile = Main.tile[i, j]; + float brightness = 0.7f; + if (tile.LiquidAmount > 50 && tile.LiquidType == 0) + brightness = 1.0f; + + r = 0.6f; + g = 0.9f; + b = 0.9f; + + int xframe = tile.TileFrameX / 18; + if (xframe > 7 && xframe < 14) + { + + r = 0.8f; + g = 0.7f; + b = 0.9f; + } + + if (xframe >= 14) + { + r = 0.5f; + g = 0.9f; + b = 0.7f; + } + + r *= brightness; + g *= brightness; + b *= brightness; + } public override bool CanPlace(int i, int j) diff --git a/Tiles/SunkenSea/SeaPrismCrystals.png b/Tiles/SunkenSea/SeaPrismCrystals.png index f53ca4fade..5ba9ded01b 100644 Binary files a/Tiles/SunkenSea/SeaPrismCrystals.png and b/Tiles/SunkenSea/SeaPrismCrystals.png differ diff --git a/Tiles/SunkenSea/TableCoral.cs b/Tiles/SunkenSea/TableCoral.cs index af7ba253db..ee89e12920 100644 --- a/Tiles/SunkenSea/TableCoral.cs +++ b/Tiles/SunkenSea/TableCoral.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.Enums; @@ -9,6 +9,8 @@ namespace CalamityMod.Tiles.SunkenSea { public class TableCoral : ModTile { + int subsheetHeight = 34; + int subsheetWidth = 108; public override void SetStaticDefaults() { Main.tileFrameImportant[Type] = true; @@ -34,5 +36,12 @@ namespace CalamityMod.Tiles.SunkenSea { num = fail ? 1 : 3; } + public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset) + { + int xPos = i % 1; + int yPos = j % 3; + frameXOffset = xPos * subsheetWidth; + frameYOffset = yPos * subsheetHeight; + } } } diff --git a/Tiles/SunkenSea/TableCoral.png b/Tiles/SunkenSea/TableCoral.png index 42d2201e27..68804bea84 100644 Binary files a/Tiles/SunkenSea/TableCoral.png and b/Tiles/SunkenSea/TableCoral.png differ diff --git a/Walls/EutrophicSandWall.png b/Walls/EutrophicSandWall.png index 2f53060752..a396b99d3d 100644 Binary files a/Walls/EutrophicSandWall.png and b/Walls/EutrophicSandWall.png differ diff --git a/Walls/EutrophicSandWallSafe.png b/Walls/EutrophicSandWallSafe.png index 2f53060752..a396b99d3d 100644 Binary files a/Walls/EutrophicSandWallSafe.png and b/Walls/EutrophicSandWallSafe.png differ diff --git a/Walls/NavystoneWall.png b/Walls/NavystoneWall.png index 83238b1b57..6347a5880d 100644 Binary files a/Walls/NavystoneWall.png and b/Walls/NavystoneWall.png differ diff --git a/Walls/NavystoneWallSafe.png b/Walls/NavystoneWallSafe.png index 83238b1b57..6347a5880d 100644 Binary files a/Walls/NavystoneWallSafe.png and b/Walls/NavystoneWallSafe.png differ