2 - Re-enable universal tile merging system. 3 - Move all tile framing into a ModSystem for consistent unloading. 4 - Move all recipe management into a ModSystem. 5 - Moved some framing stuff from CalamityGlobalTile into the sealed GlobalTile. 6 - CalamityRecipes and TileFraming no longer exist (they are now RecipeSystem and TileFramingSystem).
42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using CalamityMod.Systems;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Tiles.SunkenSea
|
|
{
|
|
public class Shellstone : ModTile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
TileID.Sets.GeneralPlacementTiles[Type] = false;
|
|
|
|
Main.tileSolid[Type] = true;
|
|
Main.tileBlockLight[Type] = true;
|
|
TileID.Sets.HasSlopeFrames[Type] = true;
|
|
|
|
CalamityUtils.MergeWithGeneral(Type);
|
|
CalamityUtils.MergeWithDesert(Type);
|
|
|
|
TileID.Sets.HasSlopeFrames[Type] = true;
|
|
TileID.Sets.ChecksForMerge[Type] = true;
|
|
HitSound = SoundID.Tink;
|
|
DustType = 17;
|
|
AddMapEntry(new Color(113, 117, 160));
|
|
|
|
// 02JUN2024: Ozzatron: RuneSand has no merge
|
|
// TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<RuneSand>(), out tileAdjacency);
|
|
|
|
this.RegisterUniversalMerge(TileID.Sandstone, "CalamityMod/Tiles/Merges/SandstoneMerge");
|
|
this.RegisterUniversalMerge(TileID.Sand, "CalamityMod/Tiles/Merges/SandMerge");
|
|
this.RegisterUniversalMerge(TileID.HardenedSand, "CalamityMod/Tiles/Merges/HardenedSandMerge");
|
|
}
|
|
|
|
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
|
{
|
|
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
|
|
}
|
|
}
|
|
}
|