Also made it and it's predecessors unstackable with their predecessors (hallowed rune)
45 lines
1.5 KiB
C#
45 lines
1.5 KiB
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class HallowedRune : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Hallowed Rune");
|
|
Tooltip.SetDefault("Whenever your minions hit an enemy you will gain a random buff, does not stack with downgrades\n" +
|
|
"These buffs will either boost your defense, summon damage, or life regen for a while\n" +
|
|
"If you have the offensive boost, enemies hit by minions will sometimes be hit by stars");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 26;
|
|
item.height = 26;
|
|
item.value = Item.buyPrice(0, 36, 0, 0);
|
|
item.rare = ItemRarityID.Pink;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.Calamity().hallowedRune = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<SpiritGenerator>());
|
|
recipe.AddIngredient(ItemID.HallowedBar, 18);
|
|
recipe.AddIngredient(ItemID.SoulofFright, 5);
|
|
recipe.AddIngredient(ItemID.SoulofMight, 5);
|
|
recipe.AddIngredient(ItemID.SoulofSight, 5);
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|