59 lines
2.1 KiB
C#
59 lines
2.1 KiB
C#
using CalamityMod.Systems;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Tiles.SunkenSea
|
|
{
|
|
public class Runestone : ModTile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
TileID.Sets.GeneralPlacementTiles[Type] = false;
|
|
|
|
Main.tileSolid[Type] = true;
|
|
Main.tileBlockLight[Type] = true;
|
|
|
|
CalamityUtils.MergeWithGeneral(Type);
|
|
|
|
TileID.Sets.HasSlopeFrames[Type] = true;
|
|
|
|
TileID.Sets.ChecksForMerge[Type] = true;
|
|
HitSound = SoundID.Tink;
|
|
DustType = DustID.Pot;
|
|
AddMapEntry(new Color(162, 98, 85));
|
|
Main.tileShine2[Type] = false;
|
|
|
|
TileID.Sets.CanBeDugByShovel[Type] = true;
|
|
|
|
//Stone merges
|
|
this.RegisterBlendMergeWith(ModContent.TileType<Shellstone>());
|
|
this.RegisterBlendMergeWith(ModContent.TileType<Navystone>());
|
|
this.RegisterBlendMergeWith(ModContent.TileType<Runestone>());
|
|
|
|
//Sand merges
|
|
this.RegisterBlendMergeWith(ModContent.TileType<PolypSand>());
|
|
this.RegisterBlendMergeWith(ModContent.TileType<Dunesand>());
|
|
this.RegisterBlendMergeWith(ModContent.TileType<ScarletSeaGrassTile>());
|
|
this.RegisterBlendMergeWith(ModContent.TileType<EutrophicSand>());
|
|
this.RegisterBlendMergeWith(ModContent.TileType<VolcanicSand>());
|
|
this.RegisterBlendMergeWith(ModContent.TileType<AridSoil>());
|
|
this.RegisterBlendMergeWith(TileID.Sandstone);
|
|
this.RegisterBlendMergeWith(TileID.Sand);
|
|
this.RegisterBlendMergeWith(TileID.HardenedSand);
|
|
|
|
//Normal merges
|
|
this.RegisterBlendMergeWith(TileID.Stone);
|
|
this.RegisterBlendMergeWith(TileID.Dirt);
|
|
this.RegisterBlendMergeWith(TileID.Ash);
|
|
this.RegisterBlendMergeWith(TileID.Mud);
|
|
}
|
|
|
|
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
|
{
|
|
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
|
|
}
|
|
}
|
|
}
|