Vastly increased readability of all tile code, reorganized functions into different classes and made all functions either internal or guaranteed stable when called independently.
35 lines
951 B
C#
35 lines
951 B
C#
|
|
using CalamityMod.Items.Placeables.Ores;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Tiles.Ores
|
|
{
|
|
public class ExodiumOre : ModTile
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Main.tileSolid[Type] = true;
|
|
Main.tileBlockLight[Type] = true;
|
|
|
|
CalamityUtils.MergeWithGeneral(Type);
|
|
|
|
ModTranslation name = CreateMapEntryName();
|
|
name.SetDefault("Exodium Ore");
|
|
AddMapEntry(new Color(51, 48, 68), name);
|
|
mineResist = 5f;
|
|
minPick = 225;
|
|
soundType = 21;
|
|
Main.tileValue[Type] = 760;
|
|
Main.tileSpelunker[Type] = true;
|
|
drop = ModContent.ItemType<ExodiumClusterOre>();
|
|
base.SetDefaults();
|
|
}
|
|
|
|
public override void NumDust(int i, int j, bool fail, ref int num)
|
|
{
|
|
num = fail ? 2 : 4;
|
|
}
|
|
}
|
|
}
|