Corals for the reefs
This commit is contained in:
1 parent
a30286f18e
commit
834911e870
13 files changed
+294
No files matched your search
@@ -0,0 +1,37 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables
|
||||
{
|
||||
public class CyanCoral : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
Item.height = 12;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<Tiles.SunkenSea.CyanCoral>();
|
||||
}
|
||||
|
||||
//public override void AddRecipes()
|
||||
//{
|
||||
// CreateRecipe(4).
|
||||
// AddIngredient(ItemID.PinkPearl).
|
||||
// AddTile(TileID.HeavyWorkBench).
|
||||
// Register();
|
||||
//}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 367 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables
|
||||
{
|
||||
public class MagentaCoral : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
Item.height = 12;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<Tiles.SunkenSea.MagentaCoral>();
|
||||
}
|
||||
|
||||
//public override void AddRecipes()
|
||||
//{
|
||||
// CreateRecipe(4).
|
||||
// AddIngredient(ItemID.PinkPearl).
|
||||
// AddTile(TileID.HeavyWorkBench).
|
||||
// Register();
|
||||
//}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 362 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables
|
||||
{
|
||||
public class OrangeCoral : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
Item.height = 12;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<Tiles.SunkenSea.OrangeCoral>();
|
||||
}
|
||||
|
||||
//public override void AddRecipes()
|
||||
//{
|
||||
// CreateRecipe(4).
|
||||
// AddIngredient(ItemID.PinkPearl).
|
||||
// AddTile(TileID.HeavyWorkBench).
|
||||
// Register();
|
||||
//}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 364 B |
@@ -3508,3 +3508,18 @@ WaterTurret: {
|
||||
Cannot attack while a boss is alive
|
||||
'''
|
||||
}
|
||||
|
||||
CyanCoral: {
|
||||
DisplayName: Cyan Coral
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
MagentaCoral: {
|
||||
DisplayName: Magenta Coral
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
OrangeCoral: {
|
||||
DisplayName: Orange Coral
|
||||
Tooltip: ""
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace CalamityMod.Tiles.SunkenSea
|
||||
{
|
||||
public class CyanCoral : ModTile
|
||||
{
|
||||
public byte[,] tileAdjacency;
|
||||
public byte[,] secondTileAdjacency;
|
||||
public byte[,] thirdTileAdjacency;
|
||||
public byte[,] fourthTileAdjacency;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
TileID.Sets.HasSlopeFrames[Type] = true;
|
||||
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
HitSound = SoundID.Shatter;
|
||||
DustType = 119;
|
||||
AddMapEntry(new Color(204, 143, 174));
|
||||
Main.tileShine2[Type] = true;
|
||||
|
||||
TileID.Sets.CanBeDugByShovel[Type] = true;
|
||||
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<TimelessSand>(), out tileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<Shellstone>(), out secondTileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<EutrophicSand>(), out thirdTileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<Navystone>(), out fourthTileAdjacency);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
//TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/Merges/TimelessSandMerge");
|
||||
//TileFraming.DrawUniversalMergeFrames(i, j, secondTileAdjacency, "CalamityMod/Tiles/Merges/ShellstoneMerge");
|
||||
TileFraming.DrawUniversalMergeFrames(i, j, thirdTileAdjacency, "CalamityMod/Tiles/Merges/EutrophicSandMerge");
|
||||
TileFraming.DrawUniversalMergeFrames(i, j, fourthTileAdjacency, "CalamityMod/Tiles/Merges/NavystoneMerge");
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<TimelessSand>(), out tileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<Shellstone>(), out secondTileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<EutrophicSand>(), out thirdTileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<Navystone>(), out fourthTileAdjacency[i, j]);
|
||||
return TileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,56 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace CalamityMod.Tiles.SunkenSea
|
||||
{
|
||||
public class MagentaCoral : ModTile
|
||||
{
|
||||
public byte[,] tileAdjacency;
|
||||
public byte[,] secondTileAdjacency;
|
||||
public byte[,] thirdTileAdjacency;
|
||||
public byte[,] fourthTileAdjacency;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
TileID.Sets.HasSlopeFrames[Type] = true;
|
||||
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
HitSound = SoundID.Shatter;
|
||||
DustType = 119;
|
||||
AddMapEntry(new Color(204, 143, 174));
|
||||
Main.tileShine2[Type] = true;
|
||||
|
||||
TileID.Sets.CanBeDugByShovel[Type] = true;
|
||||
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<TimelessSand>(), out tileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<Shellstone>(), out secondTileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<EutrophicSand>(), out thirdTileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<Navystone>(), out fourthTileAdjacency);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
//TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/Merges/TimelessSandMerge");
|
||||
//TileFraming.DrawUniversalMergeFrames(i, j, secondTileAdjacency, "CalamityMod/Tiles/Merges/ShellstoneMerge");
|
||||
TileFraming.DrawUniversalMergeFrames(i, j, thirdTileAdjacency, "CalamityMod/Tiles/Merges/EutrophicSandMerge");
|
||||
TileFraming.DrawUniversalMergeFrames(i, j, fourthTileAdjacency, "CalamityMod/Tiles/Merges/NavystoneMerge");
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<TimelessSand>(), out tileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<Shellstone>(), out secondTileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<EutrophicSand>(), out thirdTileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<Navystone>(), out fourthTileAdjacency[i, j]);
|
||||
return TileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1,56 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace CalamityMod.Tiles.SunkenSea
|
||||
{
|
||||
public class OrangeCoral : ModTile
|
||||
{
|
||||
public byte[,] tileAdjacency;
|
||||
public byte[,] secondTileAdjacency;
|
||||
public byte[,] thirdTileAdjacency;
|
||||
public byte[,] fourthTileAdjacency;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
TileID.Sets.HasSlopeFrames[Type] = true;
|
||||
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
HitSound = SoundID.Shatter;
|
||||
DustType = 119;
|
||||
AddMapEntry(new Color(204, 143, 174));
|
||||
Main.tileShine2[Type] = true;
|
||||
|
||||
TileID.Sets.CanBeDugByShovel[Type] = true;
|
||||
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<TimelessSand>(), out tileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<Shellstone>(), out secondTileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<EutrophicSand>(), out thirdTileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<Navystone>(), out fourthTileAdjacency);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
//TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/Merges/TimelessSandMerge");
|
||||
//TileFraming.DrawUniversalMergeFrames(i, j, secondTileAdjacency, "CalamityMod/Tiles/Merges/ShellstoneMerge");
|
||||
TileFraming.DrawUniversalMergeFrames(i, j, thirdTileAdjacency, "CalamityMod/Tiles/Merges/EutrophicSandMerge");
|
||||
TileFraming.DrawUniversalMergeFrames(i, j, fourthTileAdjacency, "CalamityMod/Tiles/Merges/NavystoneMerge");
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<TimelessSand>(), out tileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<Shellstone>(), out secondTileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<EutrophicSand>(), out thirdTileAdjacency[i, j]);
|
||||
TileFraming.GetAdjacencyData(i, j, ModContent.TileType<Navystone>(), out fourthTileAdjacency[i, j]);
|
||||
return TileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Reference in new issue
Block a user