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

34 lines
946 B
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Tiles
{
public class ChaoticBrick : ModTile
{
public override void SetDefaults()
{
Main.tileLighted[Type] = true;
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
dustType = 105;
drop = ModContent.ItemType<Items.Placeables.ChaoticBrick>();
ModTranslation name = CreateMapEntryName();
name.SetDefault("Chaotic Brick");
AddMapEntry(new Color(255, 0, 0), name);
soundType = 21;
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
r = 0.04f;
g = 0.00f;
b = 0.00f;
}
}
}