Files
CalamityModPublic/Tiles/ChaoticBrick.cs
T
DominicKarma42 55e89c9b98 Replaced (hopefully) every magic number with a constant
Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
2020-05-30 17:56:36 -04:00

36 lines
976 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>();
ModTranslation name = CreateMapEntryName();
name.SetDefault("Chaotic Brick");
AddMapEntry(new Color(255, 0, 0), name);
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;
}
}
}