Files
CalamityModPublic/Tiles/Ores/PerennialOre.cs
T
Andrew Marheine bdbfa05877 1 - All the changelog stuff on main.
2 - Certain ores can no longer be bombed because they had old bomb resist code that makes no sense anymore.
3 - Bumbledoge mount nerf.
4 - Terra Arrows have had their aistyle removed so they no longer behave like normal arrows.
2020-10-28 20:36:52 -05:00

49 lines
1.3 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Tiles.Ores
{
public class PerennialOre : ModTile
{
public override void SetDefaults()
{
Main.tileLighted[Type] = true;
Main.tileSolid[Type] = true;
Main.tileMergeDirt[Type] = true;
Main.tileBlockLight[Type] = true;
Main.tileValue[Type] = 710;
CalamityUtils.MergeWithGeneral(Type);
drop = ModContent.ItemType<Items.Placeables.Ores.PerennialOre>();
ModTranslation name = CreateMapEntryName();
name.SetDefault("Perennial Ore");
AddMapEntry(new Color(200, 250, 100), name);
mineResist = 3f;
minPick = 200;
soundType = SoundID.Tink;
Main.tileSpelunker[Type] = true;
}
public override bool CanExplode(int i, int j)
{
return false;
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
r = 0.04f;
g = 0.10f;
b = 0.02f;
}
}
}