Sunken Sea massively toned down + Hardened Eutrophic Sand

This commit is contained in:
Heart-Plus-Up committed 2023-03-08 01:58:20 -07:00
1 parent f87ac8b733
commit bc115da2c0
15 files changed
+100 -5

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
using CalamityMod.Items.Placeables.Walls;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Placeables
{
public class HardenedEutrophicSand : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 100;
DisplayName.SetDefault("Hardened Eutrophic Sand");
}
public override void SetDefaults()
{
Item.createTile = ModContent.TileType<Tiles.SunkenSea.HardenedEutrophicSand>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.width = 13;
Item.height = 10;
Item.maxStack = 999;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<EutrophicSand>(1).
AddIngredient(TileID.Dirt).
AddTile(TileID.Solidifier).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

+3 -3
View File
@@ -18,8 +18,8 @@ namespace CalamityMod.Tiles.SunkenSea
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeWithDesert(Type); // Tile blends with sandstone, which it is set to merge with here
Main.tileShine[Type] = 650;
Main.tileShine2[Type] = true;
Main.tileShine[Type] = 1800;
Main.tileShine2[Type] = false;
TileID.Sets.ChecksForMerge[Type] = true;
TileID.Sets.CanBeDugByShovel[Type] = true;
@@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.SunkenSea
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
{
TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/SunkenSea/EutrophicSand_Blend");
TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/SunkenSea/SandstoneMerge");
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

+57
View File
@@ -0,0 +1,57 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Tiles.SunkenSea
{
public class HardenedEutrophicSand : ModTile
{
public byte[,] tileAdjacency;
public byte[,] secondTileAdjacency;
public override void SetStaticDefaults()
{
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeWithDesert(Type);
Main.tileShine[Type] = 2200;
Main.tileShine2[Type] = false;
TileID.Sets.ChecksForMerge[Type] = true;
TileID.Sets.CanBeDugByShovel[Type] = true;
DustType = 108;
ItemDrop = ModContent.ItemType<Items.Placeables.HardenedEutrophicSand>();
ModTranslation name = CreateMapEntryName();
name.SetDefault("Hardened Eutrophic Sand");
AddMapEntry(new Color(67, 107, 143), name);
MineResist = 2f;
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<EutrophicSand>(), out tileAdjacency);
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<Navystone>(), out secondTileAdjacency);
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
{
TileFraming.DrawUniversalMergeFrames(i, j, secondTileAdjacency, "CalamityMod/Tiles/SunkenSea/NavystoneMerge");
TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/SunkenSea/EutrophicSandMerge");
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
{
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<EutrophicSand>(), out tileAdjacency[i, j]);
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<Navystone>(), out secondTileAdjacency[i, j]);
return TileFraming.BrimstoneFraming(i, j, resetFrame);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.SunkenSea
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
{
TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/SunkenSea/Navystone_Blend");
TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/SunkenSea/EutrophicSandMerge");
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

+1 -1
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.Tiles.SunkenSea
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
{
TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/SunkenSea/SeaPrism_Blend");
TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/SunkenSea/NavystoneMerge");
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB