Files
CalamityModPublic/Items/Accessories/TheTransformer.cs
T

40 lines
1.4 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.DataStructures;
namespace CalamityMod.Items.Accessories
{
public class TheTransformer : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("The Transformer");
Tooltip.SetDefault("Multiplies all electricity-based debuff damage by 1.5\n" +
"Taking damage releases a blast of sparks\n" +
"Immunity to Electrified and you resist all electrical projectile and enemy damage\n" +
"Enemy bullets do half damage to you and are reflected back at the enemy for 800% their original damage");
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 16));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
public override void SetDefaults()
{
Item.width = 42;
Item.height = 56;
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.transformer = true;
modPlayer.aSpark = true;
}
}
}