Also using return false on Drop for Walls doesn't seem to stop the unsafe wall from dropping
26 lines
773 B
C#
26 lines
773 B
C#
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Walls
|
|
{
|
|
[LegacyName("HardenedAstralSandWallSafe")]
|
|
public class HardenedAstralSandWall : ModWall
|
|
{
|
|
public override string Texture => "CalamityMod/Walls/HardenedAstralSandWall";
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
// TODO -- Change this dust to be one more befitting Hardened Astral Sand.
|
|
DustType = DustID.Shadowflame;
|
|
Main.wallHouse[Type] = true;
|
|
|
|
WallID.Sets.Conversion.HardenedSand[Type] = true;
|
|
|
|
AddMapEntry(new Color(10, 9, 21));
|
|
}
|
|
|
|
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
|
|
}
|
|
}
|