Files
CalamityModPublic/Tiles/Ores/ExodiumOre.cs
T
Ozzatron 88c6fd68ec Refactored all tile code, mostly null safety
Vastly increased readability of all tile code, reorganized functions into different classes and made all functions either internal or guaranteed stable when called independently.
2019-11-30 13:57:32 -05:00

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;
}
}
}