36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class TheFirstShadowflame : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("The First Shadowflame");
|
|
Tooltip.SetDefault("It is said that in the past, Prometheus descended from the heavens to grant man fire.\n" +
|
|
"If that were true, then it is surely the demons of hell that would have risen from below to do the same.\n" +
|
|
"Increases max minions by 1 and minions inflict the Shadowflame debuff on enemies.");
|
|
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 26;
|
|
item.height = 26;
|
|
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
|
item.rare = ItemRarityID.Pink;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.shadowMinions = true;
|
|
}
|
|
}
|
|
}
|