Vastly increased readability of all tile code, reorganized functions into different classes and made all functions either internal or guaranteed stable when called independently.
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Tiles.Ores
|
|
{
|
|
public class AerialiteOre : ModTile
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Main.tileValue[Type] = 450;
|
|
Main.tileSolid[Type] = true;
|
|
Main.tileMergeDirt[Type] = true;
|
|
Main.tileBlockLight[Type] = true;
|
|
|
|
CalamityUtils.MergeWithGeneral(Type);
|
|
drop = ModContent.ItemType<Items.Placeables.Ores.AerialiteOre>();
|
|
ModTranslation name = CreateMapEntryName();
|
|
name.SetDefault("Aerialite Ore");
|
|
AddMapEntry(new Color(0, 255, 255), name);
|
|
mineResist = 2f;
|
|
minPick = 65;
|
|
soundType = 21;
|
|
Main.tileSpelunker[Type] = true;
|
|
}
|
|
|
|
public override bool CanExplode(int i, int j)
|
|
{
|
|
return NPC.downedBoss2;
|
|
}
|
|
|
|
public override void NumDust(int i, int j, bool fail, ref int num)
|
|
{
|
|
num = fail ? 1 : 3;
|
|
}
|
|
}
|
|
}
|