Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
32 lines
1015 B
C#
32 lines
1015 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Materials
|
|
{
|
|
public class DivineGeode : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Divine Geode");
|
|
Tooltip.SetDefault("A chunk of crystallized holy energy");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 15;
|
|
item.height = 12;
|
|
item.maxStack = 999;
|
|
item.rare = 10;
|
|
item.value = Item.buyPrice(0, 6, 50, 0);
|
|
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
|
}
|
|
|
|
public override void Update(ref float gravity, ref float maxFallSpeed)
|
|
{
|
|
float num = (float)Main.rand.Next(90, 111) * 0.01f;
|
|
num *= Main.essScale;
|
|
Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.45f * num, 0.3f * num, 0f * num);
|
|
}
|
|
}
|
|
}
|