Files
CalamityModPublic/Walls/EutrophicSandWall.cs
T
Ozzatron 9e9fe7e493 Renamed WallTiles back to Walls.
Moved all wall placeables into the Placeables/Walls folder.
2019-10-20 18:58:04 -04:00

28 lines
592 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class EutrophicSandWall : ModWall
{
public override void SetDefaults()
{
dustType = 108;
}
public override void RandomUpdate(int i, int j)
{
if (Main.tile[i, j].liquid <= 0)
{
Main.tile[i, j].liquid = 255;
Main.tile[i, j].lava(false);
}
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
}
}