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(); 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; } } }