34 lines
868 B
C#
34 lines
868 B
C#
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
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>();
|
|
AddMapEntry(new Color(255, 0, 0));
|
|
soundType = SoundID.Tink;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|