Files
CalamityModPublic/Tiles/CryonicBrick.cs
T
Ozzatron b988298fe2 Errors reduced to zero. Compiles.
Unsure about TML finding "missing" textures.
2019-10-20 19:47:56 -04:00

41 lines
1.2 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Tiles
{
public class CryonicBrick : ModTile
{
int subsheetHeight = 90;
int subsheetWidth = 234;
public override void SetDefaults()
{
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
TileMerge.MergeGeneralTiles(Type);
TileMerge.MergeDecorativeTiles(Type);
soundType = 21;
minPick = 100;
drop = ModContent.ItemType<Items.Placeables.CryonicBrick>();
AddMapEntry(new Color(99, 131, 199));
}
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 176, 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
{
int xPos = i % 2;
int yPos = j % 4;
frameXOffset = xPos * subsheetWidth;
frameYOffset = yPos * subsheetHeight;
;
}
}
}