Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
No files matched your search
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 229 B |
|
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 209 B |
|
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 208 B |
|
Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 251 B |
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 185 B |
@@ -131,6 +131,7 @@ namespace CalamityMod.NPCs
|
||||
private static readonly string[] NurseNames =
|
||||
{
|
||||
"Farsni",
|
||||
"Fanny", // <@!799749125720637460> (zombiewolf511#4581)
|
||||
};
|
||||
private static readonly string[] PainterNames =
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 18 KiB |
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 19 KiB |
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 61 KiB |
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 11 KiB |
@@ -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)
|
||||
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 3.6 KiB |
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 6.9 KiB |