Files
CalamityModPublic/Tiles/AerialiteBrick.cs
T
Ozzatron ac3c348ae3 1 - Fix memory leak in universal tile merging system.
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).
2024-06-06 21:18:08 -04:00

38 lines
1.2 KiB
C#

using System.Collections.Generic;
using CalamityMod.Systems;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Tiles
{
public class AerialiteBrick : ModTile
{
public override void SetStaticDefaults()
{
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
HitSound = SoundID.Tink;
AddMapEntry(new Color(68, 58, 145));
this.RegisterUniversalMerge(TileID.Dirt, "CalamityMod/Tiles/Merges/DirtMerge");
this.RegisterUniversalMerge(TileID.Stone, "CalamityMod/Tiles/Merges/StoneMerge");
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
{
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
}
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Stone, 0f, 0f, 1, new Color(119, 102, 255), 1f);
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Gold, 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
}
}