- Consistent cage map colors to vanilla - Consistent map entry with Thank You painting - Removed map entry names from vines - Removed map entry names from some common decorative blocks - Cleaned up the other furnitures and item drops
52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
using CalamityMod.Items.Placeables.DraedonStructures;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.Enums;
|
|
using Terraria.Localization;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ObjectData;
|
|
|
|
namespace CalamityMod.Tiles.DraedonStructures
|
|
{
|
|
public class LaboratoryContainmentBox : ModTile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Main.tileLighted[Type] = true;
|
|
Main.tileFrameImportant[Type] = true;
|
|
Main.tileNoAttach[Type] = true;
|
|
Main.tileLavaDeath[Type] = false;
|
|
Main.tileWaterDeath[Type] = false;
|
|
Main.tileSolidTop[Type] = true;
|
|
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
|
TileObjectData.newTile.StyleWrapLimit = 2;
|
|
TileObjectData.newTile.StyleMultiplier = 2;
|
|
TileObjectData.newTile.StyleHorizontal = true;
|
|
TileObjectData.newTile.LavaDeath = false;
|
|
|
|
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
|
|
|
|
TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
|
|
TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceLeft;
|
|
TileObjectData.addAlternate(1);
|
|
TileObjectData.addTile(Type);
|
|
|
|
AddMapEntry(new Color(82, 67, 66), CalamityUtils.GetText("Tiles.ContainmentBox"));
|
|
}
|
|
|
|
public override bool CanExplode(int i, int j) => false;
|
|
|
|
public override bool CreateDust(int i, int j, ref int type)
|
|
{
|
|
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 182);
|
|
return false;
|
|
}
|
|
|
|
public override void NumDust(int i, int j, bool fail, ref int num)
|
|
{
|
|
num = fail ? 1 : 3;
|
|
}
|
|
}
|
|
}
|