39 lines
938 B
C#
39 lines
938 B
C#
using CalamityMod.Dusts;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ObjectData;
|
|
|
|
namespace CalamityMod.Tiles.Abyss
|
|
{
|
|
public class SulphurousPots : ModTile
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Main.tileFrameImportant[Type] = true;
|
|
Main.tileLavaDeath[Type] = true;
|
|
Main.tileWaterDeath[Type] = false;
|
|
Main.tileValue[Type] = (short)100;
|
|
Main.tileSpelunker[Type] = true;
|
|
Main.tileCut[Type] = true;
|
|
|
|
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
|
TileObjectData.newTile.DrawYOffset = 4;
|
|
TileObjectData.addTile(Type);
|
|
|
|
ModTranslation name = CreateMapEntryName();
|
|
name.SetDefault("Pot");
|
|
AddMapEntry(new Color(226, 205, 101), name);
|
|
|
|
dustType = (int)CalamityDusts.SulfurousSeaAcid;
|
|
soundType = SoundID.Shatter;
|
|
}
|
|
|
|
public override void NumDust(int i, int j, bool fail, ref int num)
|
|
{
|
|
num = fail ? 1 : 3;
|
|
}
|
|
}
|
|
}
|