This commit is contained in:
mountaindrew10 committed 2023-01-10 19:34:33 -06:00
commit 7aae7f802b
23 files changed
+149 -10

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 407 B

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 B

After

Width:  |  Height:  |  Size: 251 B

+39
View File
@@ -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<Tiles.SunkenSea.SeaPrismBrick>();
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<SeaPrism>().
AddTile(TileID.Furnaces).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

+1
View File
@@ -131,6 +131,7 @@ namespace CalamityMod.NPCs
private static readonly string[] NurseNames =
{
"Farsni",
"Fanny", // <@!799749125720637460> (zombiewolf511#4581)
};
private static readonly string[] PainterNames =
{
+5 -2
View File
@@ -14,6 +14,10 @@ namespace CalamityMod.Tiles.SunkenSea
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeWithDesert(Type);
CalamityUtils.SetMerge(Type, ModContent.TileType<Navystone>());
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);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 18 KiB

+2 -2
View File
@@ -14,6 +14,7 @@ namespace CalamityMod.Tiles.SunkenSea
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeWithDesert(Type);
CalamityUtils.SetMerge(Type, ModContent.TileType<EutrophicSand>());
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<EutrophicSand>());
return false;
return TileFraming.BrimstoneFraming(i, j, resetFrame);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 19 KiB

+12 -2
View File
@@ -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<Items.Placeables.SeaPrism>();
@@ -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<Navystone>(), false, false, false, false, resetFrame);
return false;
return TileFraming.BrimstoneFraming(i, j, resetFrame);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 61 KiB

+51
View File
@@ -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<Items.Placeables.SeaPrismBrick>();
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;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

+29 -3
View File
@@ -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)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

+10 -1
View File
@@ -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;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB